X7ROOT File Manager
Current Path:
/var/softaculous/sitepad/editor/site-inc
var
/
softaculous
/
sitepad
/
editor
/
site-inc
/
ðŸ“
..
ðŸ“
ID3
ðŸ“
IXR
ðŸ“
PHPMailer
ðŸ“
Requests
ðŸ“
SimplePie
ðŸ“
Text
📄
admin-bar.php
(29.03 KB)
📄
atomlib.php
(11.56 KB)
📄
author-template.php
(16.22 KB)
📄
blocks.php
(12.43 KB)
📄
bookmark-template.php
(11.64 KB)
📄
bookmark.php
(13.55 KB)
📄
bootstrap.php
(4.11 KB)
📄
cache.php
(21.35 KB)
📄
canonical.php
(27.83 KB)
📄
capabilities.php
(28.84 KB)
📄
category-template.php
(50.8 KB)
📄
category.php
(12.41 KB)
ðŸ“
certificates
📄
class-IXR.php
(2.51 KB)
📄
class-feed.php
(523 B)
📄
class-http.php
(36.22 KB)
📄
class-json.php
(39.53 KB)
📄
class-oembed.php
(30.73 KB)
📄
class-phpass.php
(7.15 KB)
📄
class-phpmailer.php
(668 B)
📄
class-pop3.php
(20.43 KB)
📄
class-requests.php
(29.09 KB)
📄
class-simplepie.php
(87.17 KB)
📄
class-smtp.php
(461 B)
📄
class-walker-category-dropdown.php
(2.07 KB)
📄
class-walker-category.php
(6.62 KB)
📄
class-walker-comment.php
(13.33 KB)
📄
class-walker-nav-menu.php
(8.38 KB)
📄
class-walker-page-dropdown.php
(2.24 KB)
📄
class-walker-page.php
(6.78 KB)
📄
class-wp-admin-bar.php
(16.08 KB)
📄
class-wp-ajax-response.php
(5.01 KB)
📄
class-wp-block-parser.php
(14.86 KB)
📄
class-wp-block-type-registry.php
(4.63 KB)
📄
class-wp-block-type.php
(4.7 KB)
📄
class-wp-comment-query.php
(42.21 KB)
📄
class-wp-comment.php
(8.75 KB)
📄
class-wp-customize-control.php
(24.49 KB)
📄
class-wp-customize-manager.php
(195.47 KB)
📄
class-wp-customize-nav-menus.php
(53.08 KB)
📄
class-wp-customize-panel.php
(9.42 KB)
📄
class-wp-customize-section.php
(9.99 KB)
📄
class-wp-customize-setting.php
(27.59 KB)
📄
class-wp-dependency.php
(2.28 KB)
📄
class-wp-editor.php
(66.27 KB)
📄
class-wp-embed.php
(14.38 KB)
📄
class-wp-error.php
(4.81 KB)
📄
class-wp-feed-cache-transient.php
(2.5 KB)
📄
class-wp-feed-cache.php
(749 B)
📄
class-wp-hook.php
(13.77 KB)
📄
class-wp-http-cookie.php
(6.44 KB)
📄
class-wp-http-curl.php
(11.64 KB)
📄
class-wp-http-encoding.php
(6.35 KB)
📄
class-wp-http-ixr-client.php
(3.25 KB)
📄
class-wp-http-proxy.php
(5.92 KB)
📄
class-wp-http-requests-hooks.php
(1.83 KB)
📄
class-wp-http-requests-response.php
(4.19 KB)
📄
class-wp-http-response.php
(2.8 KB)
📄
class-wp-http-streams.php
(15.02 KB)
📄
class-wp-image-editor-gd.php
(13.18 KB)
📄
class-wp-image-editor-imagick.php
(21.27 KB)
📄
class-wp-image-editor.php
(11.49 KB)
📄
class-wp-list-util.php
(6.25 KB)
📄
class-wp-locale-switcher.php
(4.91 KB)
📄
class-wp-locale.php
(14.26 KB)
📄
class-wp-matchesmapregex.php
(1.76 KB)
📄
class-wp-meta-query.php
(22.86 KB)
📄
class-wp-metadata-lazyloader.php
(5.26 KB)
📄
class-wp-network-query.php
(16.79 KB)
📄
class-wp-network.php
(11.93 KB)
📄
class-wp-oembed-controller.php
(5.88 KB)
📄
class-wp-post-type.php
(17.81 KB)
📄
class-wp-post.php
(6.28 KB)
📄
class-wp-query.php
(127.67 KB)
📄
class-wp-rewrite.php
(58.42 KB)
📄
class-wp-role.php
(2.6 KB)
📄
class-wp-roles.php
(8.13 KB)
📄
class-wp-session-tokens.php
(7.25 KB)
📄
class-wp-simplepie-file.php
(2.27 KB)
📄
class-wp-simplepie-sanitize-kses.php
(1.73 KB)
📄
class-wp-site-query.php
(26.78 KB)
📄
class-wp-site.php
(7.13 KB)
📄
class-wp-tax-query.php
(18.81 KB)
📄
class-wp-taxonomy.php
(10.41 KB)
📄
class-wp-term-query.php
(33.84 KB)
📄
class-wp-term.php
(5.14 KB)
📄
class-wp-text-diff-renderer-inline.php
(716 B)
📄
class-wp-text-diff-renderer-table.php
(16.06 KB)
📄
class-wp-theme.php
(48.09 KB)
📄
class-wp-user-meta-session-tokens.php
(2.92 KB)
📄
class-wp-user-query.php
(30.49 KB)
📄
class-wp-user.php
(20.91 KB)
📄
class-wp-walker.php
(12.39 KB)
📄
class-wp-widget-factory.php
(3.69 KB)
📄
class-wp-widget.php
(17.41 KB)
📄
class-wp-xmlrpc-server.php
(202.08 KB)
📄
class-wp.php
(24.18 KB)
📄
class.wp-dependencies.php
(11.24 KB)
📄
class.wp-scripts.php
(16.79 KB)
📄
class.wp-styles.php
(9.61 KB)
📄
comment-template.php
(87.64 KB)
📄
comment.php
(111.72 KB)
📄
compat.php
(15.99 KB)
📄
cron.php
(30.82 KB)
ðŸ“
css
ðŸ“
customize
📄
date.php
(34.34 KB)
📄
default-constants.php
(9.61 KB)
📄
default-filters.php
(24.68 KB)
📄
default-widgets.php
(2.13 KB)
📄
embed.php
(44.04 KB)
📄
feed-atom-comments.php
(5.33 KB)
📄
feed-atom.php
(3.09 KB)
📄
feed-rdf.php
(2.67 KB)
📄
feed-rss.php
(1.25 KB)
📄
feed-rss2-comments.php
(4.09 KB)
📄
feed-rss2.php
(3.77 KB)
📄
feed.php
(19.29 KB)
ðŸ“
fonts
📄
formatting.php
(278.69 KB)
📄
functions.php
(207.2 KB)
📄
functions.wp-scripts.php
(12.53 KB)
📄
functions.wp-styles.php
(8.03 KB)
📄
general-template.php
(138.46 KB)
📄
http.php
(21.9 KB)
ðŸ“
images
ðŸ“
js
📄
kses.php
(55.74 KB)
📄
l10n.php
(50.58 KB)
📄
link-template.php
(135.4 KB)
📄
load.php
(36.4 KB)
📄
media-template.php
(46.33 KB)
📄
media.php
(141.33 KB)
📄
meta.php
(44.98 KB)
📄
mime.php
(39.54 KB)
📄
nav-menu-template.php
(21.2 KB)
📄
nav-menu.php
(39.57 KB)
📄
open_basedir.php
(21 B)
📄
option.php
(67.91 KB)
📄
pluggable.php
(97.52 KB)
📄
plugin.php
(31.37 KB)
ðŸ“
pomo
📄
post-formats.php
(6.86 KB)
📄
post-template.php
(60.07 KB)
📄
post-thumbnail-template.php
(8.75 KB)
📄
post.php
(227.37 KB)
📄
query.php
(31.24 KB)
ðŸ“
random_compat
ðŸ“
rest-api
📄
rest-api.php
(40.67 KB)
📄
revision.php
(21.08 KB)
📄
rewrite.php
(17.27 KB)
📄
rss.php
(22.66 KB)
📄
script-loader.php
(98.75 KB)
📄
shortcodes.php
(20.25 KB)
📄
sitepad_functions.php
(19.26 KB)
📄
sitepad_functions2.php
(21.99 KB)
📄
spl-autoload-compat.php
(2.51 KB)
📄
taxonomy.php
(152.95 KB)
📄
template-loader.php
(2.55 KB)
📄
template.php
(19.77 KB)
ðŸ“
theme-compat
📄
theme.php
(99.09 KB)
📄
update.php
(24.81 KB)
📄
user.php
(120.69 KB)
📄
vars.php
(5.59 KB)
📄
version.php
(2.03 KB)
ðŸ“
widgets
📄
widgets.php
(55.82 KB)
📄
wlwmanifest.xml
(1.03 KB)
📄
wp-db.php
(99.29 KB)
📄
wp-diff.php
(662 B)
Editing: class-wp-hook.php
<?php /** * Plugin API: WP_Hook class * * @package WordPress * @subpackage Plugin * @since 4.7.0 */ /** * Core class used to implement action and filter hook functionality. * * @since 4.7.0 * * @see Iterator * @see ArrayAccess */ final class WP_Hook implements Iterator, ArrayAccess { /** * Hook callbacks. * * @since 4.7.0 * @var array */ public $callbacks = array(); /** * The priority keys of actively running iterations of a hook. * * @since 4.7.0 * @var array */ private $iterations = array(); /** * The current priority of actively running iterations of a hook. * * @since 4.7.0 * @var array */ private $current_priority = array(); /** * Number of levels this hook can be recursively called. * * @since 4.7.0 * @var int */ private $nesting_level = 0; /** * Flag for if we're current doing an action, rather than a filter. * * @since 4.7.0 * @var bool */ private $doing_action = false; /** * Hooks a function or method to a specific filter action. * * @since 4.7.0 * * @param string $tag The name of the filter to hook the $function_to_add callback to. * @param callable $function_to_add The callback to be run when the filter is applied. * @param int $priority The order in which the functions associated with a * particular action are executed. Lower numbers correspond with * earlier execution, and functions with the same priority are executed * in the order in which they were added to the action. * @param int $accepted_args The number of arguments the function accepts. */ public function add_filter( $tag, $function_to_add, $priority, $accepted_args ) { $idx = _wp_filter_build_unique_id( $tag, $function_to_add, $priority ); $priority_existed = isset( $this->callbacks[ $priority ] ); $this->callbacks[ $priority ][ $idx ] = array( 'function' => $function_to_add, 'accepted_args' => $accepted_args, ); // if we're adding a new priority to the list, put them back in sorted order if ( ! $priority_existed && count( $this->callbacks ) > 1 ) { ksort( $this->callbacks, SORT_NUMERIC ); } if ( $this->nesting_level > 0 ) { $this->resort_active_iterations( $priority, $priority_existed ); } } /** * Handles reseting callback priority keys mid-iteration. * * @since 4.7.0 * * @param bool|int $new_priority Optional. The priority of the new filter being added. Default false, * for no priority being added. * @param bool $priority_existed Optional. Flag for whether the priority already existed before the new * filter was added. Default false. */ private function resort_active_iterations( $new_priority = false, $priority_existed = false ) { $new_priorities = array_keys( $this->callbacks ); // If there are no remaining hooks, clear out all running iterations. if ( ! $new_priorities ) { foreach ( $this->iterations as $index => $iteration ) { $this->iterations[ $index ] = $new_priorities; } return; } $min = min( $new_priorities ); foreach ( $this->iterations as $index => &$iteration ) { $current = current( $iteration ); // If we're already at the end of this iteration, just leave the array pointer where it is. if ( false === $current ) { continue; } $iteration = $new_priorities; if ( $current < $min ) { array_unshift( $iteration, $current ); continue; } while ( current( $iteration ) < $current ) { if ( false === next( $iteration ) ) { break; } } // If we have a new priority that didn't exist, but ::apply_filters() or ::do_action() thinks it's the current priority... if ( $new_priority === $this->current_priority[ $index ] && ! $priority_existed ) { /* * ... and the new priority is the same as what $this->iterations thinks is the previous * priority, we need to move back to it. */ if ( false === current( $iteration ) ) { // If we've already moved off the end of the array, go back to the last element. $prev = end( $iteration ); } else { // Otherwise, just go back to the previous element. $prev = prev( $iteration ); } if ( false === $prev ) { // Start of the array. Reset, and go about our day. reset( $iteration ); } elseif ( $new_priority !== $prev ) { // Previous wasn't the same. Move forward again. next( $iteration ); } } } unset( $iteration ); } /** * Unhooks a function or method from a specific filter action. * * @since 4.7.0 * * @param string $tag The filter hook to which the function to be removed is hooked. Used * for building the callback ID when SPL is not available. * @param callable $function_to_remove The callback to be removed from running when the filter is applied. * @param int $priority The exact priority used when adding the original filter callback. * @return bool Whether the callback existed before it was removed. */ public function remove_filter( $tag, $function_to_remove, $priority ) { $function_key = _wp_filter_build_unique_id( $tag, $function_to_remove, $priority ); $exists = isset( $this->callbacks[ $priority ][ $function_key ] ); if ( $exists ) { unset( $this->callbacks[ $priority ][ $function_key ] ); if ( ! $this->callbacks[ $priority ] ) { unset( $this->callbacks[ $priority ] ); if ( $this->nesting_level > 0 ) { $this->resort_active_iterations(); } } } return $exists; } /** * Checks if a specific action has been registered for this hook. * * @since 4.7.0 * * @param string $tag Optional. The name of the filter hook. Used for building * the callback ID when SPL is not available. Default empty. * @param callable|bool $function_to_check Optional. The callback to check for. Default false. * @return bool|int The priority of that hook is returned, or false if the function is not attached. */ public function has_filter( $tag = '', $function_to_check = false ) { if ( false === $function_to_check ) { return $this->has_filters(); } $function_key = _wp_filter_build_unique_id( $tag, $function_to_check, false ); if ( ! $function_key ) { return false; } foreach ( $this->callbacks as $priority => $callbacks ) { if ( isset( $callbacks[ $function_key ] ) ) { return $priority; } } return false; } /** * Checks if any callbacks have been registered for this hook. * * @since 4.7.0 * * @return bool True if callbacks have been registered for the current hook, otherwise false. */ public function has_filters() { foreach ( $this->callbacks as $callbacks ) { if ( $callbacks ) { return true; } } return false; } /** * Removes all callbacks from the current filter. * * @since 4.7.0 * * @param int|bool $priority Optional. The priority number to remove. Default false. */ public function remove_all_filters( $priority = false ) { if ( ! $this->callbacks ) { return; } if ( false === $priority ) { $this->callbacks = array(); } elseif ( isset( $this->callbacks[ $priority ] ) ) { unset( $this->callbacks[ $priority ] ); } if ( $this->nesting_level > 0 ) { $this->resort_active_iterations(); } } /** * Calls the callback functions added to a filter hook. * * @since 4.7.0 * * @param mixed $value The value to filter. * @param array $args Arguments to pass to callbacks. * @return mixed The filtered value after all hooked functions are applied to it. */ public function apply_filters( $value, $args ) { if ( ! $this->callbacks ) { return $value; } $nesting_level = $this->nesting_level++; $this->iterations[ $nesting_level ] = array_keys( $this->callbacks ); $num_args = count( $args ); do { $this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] ); foreach ( $this->callbacks[ $priority ] as $the_ ) { if ( ! $this->doing_action ) { $args[0] = $value; } // Avoid the array_slice if possible. if ( $the_['accepted_args'] == 0 ) { $value = call_user_func_array( $the_['function'], array() ); } elseif ( $the_['accepted_args'] >= $num_args ) { $value = call_user_func_array( $the_['function'], $args ); } else { $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) ); } } } while ( false !== next( $this->iterations[ $nesting_level ] ) ); unset( $this->iterations[ $nesting_level ] ); unset( $this->current_priority[ $nesting_level ] ); $this->nesting_level--; return $value; } /** * Executes the callback functions hooked on a specific action hook. * * @since 4.7.0 * * @param mixed $args Arguments to pass to the hook callbacks. */ public function do_action( $args ) { $this->doing_action = true; $this->apply_filters( '', $args ); // If there are recursive calls to the current action, we haven't finished it until we get to the last one. if ( ! $this->nesting_level ) { $this->doing_action = false; } } /** * Processes the functions hooked into the 'all' hook. * * @since 4.7.0 * * @param array $args Arguments to pass to the hook callbacks. Passed by reference. */ public function do_all_hook( &$args ) { $nesting_level = $this->nesting_level++; $this->iterations[ $nesting_level ] = array_keys( $this->callbacks ); do { $priority = current( $this->iterations[ $nesting_level ] ); foreach ( $this->callbacks[ $priority ] as $the_ ) { call_user_func_array( $the_['function'], $args ); } } while ( false !== next( $this->iterations[ $nesting_level ] ) ); unset( $this->iterations[ $nesting_level ] ); $this->nesting_level--; } /** * Return the current priority level of the currently running iteration of the hook. * * @since 4.7.0 * * @return int|false If the hook is running, return the current priority level. If it isn't running, return false. */ public function current_priority() { if ( false === current( $this->iterations ) ) { return false; } return current( current( $this->iterations ) ); } /** * Normalizes filters set up before WordPress has initialized to WP_Hook objects. * * @since 4.7.0 * * @param array $filters Filters to normalize. * @return WP_Hook[] Array of normalized filters. */ public static function build_preinitialized_hooks( $filters ) { /** @var WP_Hook[] $normalized */ $normalized = array(); foreach ( $filters as $tag => $callback_groups ) { if ( is_object( $callback_groups ) && $callback_groups instanceof WP_Hook ) { $normalized[ $tag ] = $callback_groups; continue; } $hook = new WP_Hook(); // Loop through callback groups. foreach ( $callback_groups as $priority => $callbacks ) { // Loop through callbacks. foreach ( $callbacks as $cb ) { $hook->add_filter( $tag, $cb['function'], $priority, $cb['accepted_args'] ); } } $normalized[ $tag ] = $hook; } return $normalized; } /** * Determines whether an offset value exists. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/arrayaccess.offsetexists.php * * @param mixed $offset An offset to check for. * @return bool True if the offset exists, false otherwise. */ public function offsetExists( $offset ) { return isset( $this->callbacks[ $offset ] ); } /** * Retrieves a value at a specified offset. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/arrayaccess.offsetget.php * * @param mixed $offset The offset to retrieve. * @return mixed If set, the value at the specified offset, null otherwise. */ public function offsetGet( $offset ) { return isset( $this->callbacks[ $offset ] ) ? $this->callbacks[ $offset ] : null; } /** * Sets a value at a specified offset. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/arrayaccess.offsetset.php * * @param mixed $offset The offset to assign the value to. * @param mixed $value The value to set. */ public function offsetSet( $offset, $value ) { if ( is_null( $offset ) ) { $this->callbacks[] = $value; } else { $this->callbacks[ $offset ] = $value; } } /** * Unsets a specified offset. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/arrayaccess.offsetunset.php * * @param mixed $offset The offset to unset. */ public function offsetUnset( $offset ) { unset( $this->callbacks[ $offset ] ); } /** * Returns the current element. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/iterator.current.php * * @return array Of callbacks at current priority. */ public function current() { return current( $this->callbacks ); } /** * Moves forward to the next element. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/iterator.next.php * * @return array Of callbacks at next priority. */ public function next() { return next( $this->callbacks ); } /** * Returns the key of the current element. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/iterator.key.php * * @return mixed Returns current priority on success, or NULL on failure */ public function key() { return key( $this->callbacks ); } /** * Checks if current position is valid. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/iterator.valid.php * * @return boolean */ public function valid() { return key( $this->callbacks ) !== null; } /** * Rewinds the Iterator to the first element. * * @since 4.7.0 * * @link https://secure.php.net/manual/en/iterator.rewind.php */ public function rewind() { reset( $this->callbacks ); } }
Upload File
Create Folder