403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/real-media-library/inc/metadata/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/real-media-library/inc/metadata/CommonTrait.php
<?php

namespace MatthiasWeb\RealMediaLibrary\metadata;

// @codeCoverageIgnoreStart
\defined('ABSPATH') or die('No script kiddies please!');
// Avoid direct file request
// @codeCoverageIgnoreEnd
/**
 * Trait common folder meta and user settings helper methods.
 *
 * @since 4.0.8
 */
trait CommonTrait
{
    /**
     * Reload the current selected folder after the metadata is successfully saved.
     *
     * @param string[] $response
     */
    private function reloadAfterSave(&$response)
    {
        if (!isset($response['data']['reload']) || $response['data']['reload'] === \false) {
            $response['data']['reload'] = \true;
        }
    }
    /**
     * Reload the current document if the `body` has a given class. This allows you e.g. to
     * only reload in Media Library view instead of while editing a post.
     *
     * @param string[] $response
     * @param string $class
     */
    private function hardReloadAfterSaveIfBodyHasClass(&$response, $class)
    {
        if (!isset($response['data']['hardReloadIfBodyHasClass']) || $response['data']['hardReloadIfBodyHasClass'] === \false) {
            $response['data']['hardReloadIfBodyHasClass'] = $class;
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit