Whoops \ Exception \ ErrorException (E_NOTICE)
file_get_contents(): read of 8192 bytes failed with errno=21 Is a directory Whoops\Exception\ErrorException thrown with message "file_get_contents(): read of 8192 bytes failed with errno=21 Is a directory" Stacktrace: #21 Whoops\Exception\ErrorException in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/functions.php:4570 #20 file_get_contents in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/functions.php:4570 #19 wp_json_file_decode in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/class-wp-theme-json-resolver.php:110 #18 WP_Theme_JSON_Resolver:read_json_file in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/class-wp-theme-json-resolver.php:244 #17 WP_Theme_JSON_Resolver:get_theme_data in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/class-wp-theme-json-resolver.php:591 #16 WP_Theme_JSON_Resolver:get_merged_data in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/global-styles-and-settings.php:182 #15 wp_get_global_stylesheet in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/script-loader.php:2467 #14 wp_enqueue_global_styles in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/class-wp-hook.php:310 #13 WP_Hook:apply_filters in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/class-wp-hook.php:334 #12 WP_Hook:do_action in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/plugin.php:517 #11 do_action in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/script-loader.php:2225 #10 wp_enqueue_scripts in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/class-wp-hook.php:310 #9 WP_Hook:apply_filters in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/class-wp-hook.php:334 #8 WP_Hook:do_action in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/plugin.php:517 #7 do_action in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-content/themes/staplestuitiongrants-theme/app/filters.php:52 #6 App\{closure} in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-content/themes/staplestuitiongrants-theme/vendor/illuminate/support/Collection.php:397 #5 Illuminate\Support\Collection:each in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-content/themes/staplestuitiongrants-theme/app/filters.php:58 #4 App\{closure} in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/class-wp-hook.php:310 #3 WP_Hook:apply_filters in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/plugin.php:205 #2 apply_filters in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-includes/template-loader.php:104 #1 require_once in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/wp-blog-header.php:19 #0 require in /home/customer/www/vn-staging.com/public_html/client/staplestuitiongrants/index.php:17
Stack frames (22)
21
Whoops
\
Exception
\
ErrorException
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
functions.php
4570
20
file_get_contents
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
functions.php
4570
19
wp_json_file_decode
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-theme-json-resolver.php
110
18
WP_Theme_JSON_Resolver
read_json_file
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-theme-json-resolver.php
244
17
WP_Theme_JSON_Resolver
get_theme_data
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-theme-json-resolver.php
591
16
WP_Theme_JSON_Resolver
get_merged_data
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
global-styles-and-settings.php
182
15
wp_get_global_stylesheet
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
script-loader.php
2467
14
wp_enqueue_global_styles
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-hook.php
310
13
WP_Hook
apply_filters
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-hook.php
334
12
WP_Hook
do_action
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
plugin.php
517
11
do_action
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
script-loader.php
2225
10
wp_enqueue_scripts
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-hook.php
310
9
WP_Hook
apply_filters
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-hook.php
334
8
WP_Hook
do_action
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
plugin.php
517
7
do_action
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-content
/
themes
/
staplestuitiongrants-theme
/
app
/
filters.php
52
6
App
\
{closure}
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-content
/
themes
/
staplestuitiongrants-theme
/
vendor
/
illuminate
/
support
/
Collection.php
397
5
Illuminate
\
Support
\
Collection
each
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-content
/
themes
/
staplestuitiongrants-theme
/
app
/
filters.php
58
4
App
\
{closure}
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-hook.php
310
3
WP_Hook
apply_filters
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
plugin.php
205
2
apply_filters
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
template-loader.php
104
1
require_once
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-blog-header.php
19
0
require
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
index.php
17
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
functions.php
 * @return mixed Returns the value encoded in JSON in appropriate PHP type.
 *               `null` is returned if the file is not found, or its content can't be decoded.
 */
function wp_json_file_decode( $filename, $options = array() ) {
    $result   = null;
    $filename = wp_normalize_path( realpath( $filename ) );
 
    if ( ! $filename ) {
        trigger_error(
            sprintf(
                /* translators: %s: Path to the JSON file. */
                __( "File %s doesn't exist!" ),
                $filename
            )
        );
        return $result;
    }
 
    $options      = wp_parse_args( $options, array( 'associative' => false ) );
    $decoded_file = json_decode( file_get_contents( $filename ), $options['associative'] );
 
    if ( JSON_ERROR_NONE !== json_last_error() ) {
        trigger_error(
            sprintf(
                /* translators: 1: Path to the JSON file, 2: Error message. */
                __( 'Error when decoding a JSON file at path %1$s: %2$s' ),
                $filename,
                json_last_error_msg()
            )
        );
        return $result;
    }
 
    return $decoded_file;
}
 
/**
 * Retrieves the WordPress home page URL.
 *
 * If the constant named 'WP_HOME' exists, then it will be used and returned
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
functions.php
 * @return mixed Returns the value encoded in JSON in appropriate PHP type.
 *               `null` is returned if the file is not found, or its content can't be decoded.
 */
function wp_json_file_decode( $filename, $options = array() ) {
    $result   = null;
    $filename = wp_normalize_path( realpath( $filename ) );
 
    if ( ! $filename ) {
        trigger_error(
            sprintf(
                /* translators: %s: Path to the JSON file. */
                __( "File %s doesn't exist!" ),
                $filename
            )
        );
        return $result;
    }
 
    $options      = wp_parse_args( $options, array( 'associative' => false ) );
    $decoded_file = json_decode( file_get_contents( $filename ), $options['associative'] );
 
    if ( JSON_ERROR_NONE !== json_last_error() ) {
        trigger_error(
            sprintf(
                /* translators: 1: Path to the JSON file, 2: Error message. */
                __( 'Error when decoding a JSON file at path %1$s: %2$s' ),
                $filename,
                json_last_error_msg()
            )
        );
        return $result;
    }
 
    return $decoded_file;
}
 
/**
 * Retrieves the WordPress home page URL.
 *
 * If the constant named 'WP_HOME' exists, then it will be used and returned
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-theme-json-resolver.php
     */
    protected static $theme_json_file_cache = array();
 
    /**
     * Processes a file that adheres to the theme.json schema
     * and returns an array with its contents, or a void array if none found.
     *
     * @since 5.8.0
     * @since 6.1.0 Added caching.
     *
     * @param string $file_path Path to file. Empty if no file.
     * @return array Contents that adhere to the theme.json schema.
     */
    protected static function read_json_file( $file_path ) {
        if ( $file_path ) {
            if ( array_key_exists( $file_path, static::$theme_json_file_cache ) ) {
                return static::$theme_json_file_cache[ $file_path ];
            }
 
            $decoded_file = wp_json_file_decode( $file_path, array( 'associative' => true ) );
            if ( is_array( $decoded_file ) ) {
                static::$theme_json_file_cache[ $file_path ] = $decoded_file;
                return static::$theme_json_file_cache[ $file_path ];
            }
        }
 
        return array();
    }
 
    /**
     * Returns a data structure used in theme.json translation.
     *
     * @since 5.8.0
     * @deprecated 5.9.0
     *
     * @return array An array of theme.json fields that are translatable and the keys that are translatable.
     */
    public static function get_fields_to_translate() {
        _deprecated_function( __METHOD__, '5.9.0' );
        return array();
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-theme-json-resolver.php
     * @param array $deprecated Deprecated. Not used.
     * @param array $options {
     *     Options arguments.
     *
     *     @type bool $with_supports Whether to include theme supports in the data. Default true.
     * }
     * @return WP_Theme_JSON Entity that holds theme data.
     */
    public static function get_theme_data( $deprecated = array(), $options = array() ) {
        if ( ! empty( $deprecated ) ) {
            _deprecated_argument( __METHOD__, '5.9.0' );
        }
 
        $options = wp_parse_args( $options, array( 'with_supports' => true ) );
 
        if ( null === static::$theme || ! static::has_same_registered_blocks( 'theme' ) ) {
            $wp_theme        = wp_get_theme();
            $theme_json_file = $wp_theme->get_file_path( 'theme.json' );
            if ( is_readable( $theme_json_file ) ) {
                $theme_json_data = static::read_json_file( $theme_json_file );
                $theme_json_data = static::translate( $theme_json_data, $wp_theme->get( 'TextDomain' ) );
            } else {
                $theme_json_data = array();
            }
 
            /**
             * Filters the data provided by the theme for global styles and settings.
             *
             * @since 6.1.0
             *
             * @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
             */
            $theme_json      = apply_filters( 'wp_theme_json_data_theme', new WP_Theme_JSON_Data( $theme_json_data, 'theme' ) );
            $theme_json_data = $theme_json->get_data();
            static::$theme   = new WP_Theme_JSON( $theme_json_data );
 
            if ( $wp_theme->parent() ) {
                // Get parent theme.json.
                $parent_theme_json_file = $wp_theme->parent()->get_file_path( 'theme.json' );
                if ( $theme_json_file !== $parent_theme_json_file && is_readable( $parent_theme_json_file ) ) {
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-theme-json-resolver.php
     * @return WP_Theme_JSON
     */
    public static function get_merged_data( $origin = 'custom' ) {
        if ( is_array( $origin ) ) {
            _deprecated_argument( __FUNCTION__, '5.9.0' );
        }
 
        $result = new WP_Theme_JSON();
        $result->merge( static::get_core_data() );
        if ( 'default' === $origin ) {
            $result->set_spacing_sizes();
            return $result;
        }
 
        $result->merge( static::get_block_data() );
        if ( 'blocks' === $origin ) {
            return $result;
        }
 
        $result->merge( static::get_theme_data() );
        if ( 'theme' === $origin ) {
            $result->set_spacing_sizes();
            return $result;
        }
 
        $result->merge( static::get_user_data() );
        $result->set_spacing_sizes();
 
        return $result;
    }
 
    /**
     * Returns the ID of the custom post type
     * that stores user data.
     *
     * @since 5.9.0
     *
     * @return integer|null
     */
    public static function get_user_global_styles_post_id() {
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
global-styles-and-settings.php
     * that can use dynamic data (modify the stylesheet depending on some option,
     * settings depending on user permissions, etc.).
     * See some of the existing hooks to modify theme.json behavior:
     * @see https://make.wordpress.org/core/2022/10/10/filters-for-theme-json-data/
     *
     * A different alternative considered was to invalidate the cache upon certain
     * events such as options add/update/delete, user meta, etc.
     * It was judged not enough, hence this approach.
     * @see https://github.com/WordPress/gutenberg/pull/45372
     */
    $cache_group = 'theme_json';
    $cache_key   = 'wp_get_global_stylesheet';
    if ( $can_use_cached ) {
        $cached = wp_cache_get( $cache_key, $cache_group );
        if ( $cached ) {
            return $cached;
        }
    }
 
    $tree = WP_Theme_JSON_Resolver::get_merged_data();
 
    $supports_theme_json = wp_theme_has_theme_json();
    if ( empty( $types ) && ! $supports_theme_json ) {
        $types = array( 'variables', 'presets', 'base-layout-styles' );
    } elseif ( empty( $types ) ) {
        $types = array( 'variables', 'styles', 'presets' );
    }
 
    /*
     * If variables are part of the stylesheet, then add them.
     * This is so themes without a theme.json still work as before 5.9:
     * they can override the default presets.
     * See https://core.trac.wordpress.org/ticket/54782
     */
    $styles_variables = '';
    if ( in_array( 'variables', $types, true ) ) {
        /*
         * Only use the default, theme, and custom origins. Why?
         * Because styles for `blocks` origin are added at a later phase
         * (i.e. in the render cycle). Here, only the ones in use are rendered.
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
script-loader.php
     * The footer should only be used to print global styles for classic themes with separate core assets enabled.
     *
     * See https://core.trac.wordpress.org/ticket/53494.
     */
    if (
        ( $is_block_theme && doing_action( 'wp_footer' ) ) ||
        ( $is_classic_theme && doing_action( 'wp_footer' ) && ! $separate_assets ) ||
        ( $is_classic_theme && doing_action( 'wp_enqueue_scripts' ) && $separate_assets )
    ) {
        return;
    }
 
    /*
     * If loading the CSS for each block separately, then load the theme.json CSS conditionally.
     * This removes the CSS from the global-styles stylesheet and adds it to the inline CSS for each block.
     * This filter must be registered before calling wp_get_global_stylesheet();
     */
    add_filter( 'wp_theme_json_get_style_nodes', 'wp_filter_out_block_nodes' );
 
    $stylesheet = wp_get_global_stylesheet();
 
    if ( empty( $stylesheet ) ) {
        return;
    }
 
    wp_register_style( 'global-styles', false );
    wp_add_inline_style( 'global-styles', $stylesheet );
    wp_enqueue_style( 'global-styles' );
 
    // Add each block as an inline css.
    wp_add_global_styles_for_blocks();
}
 
/**
 * Enqueues the global styles custom css defined via theme.json.
 *
 * @since 6.2.0
 */
function wp_enqueue_global_styles_custom_css() {
    if ( ! wp_is_block_theme() ) {
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } 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;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    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 ] );
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
plugin.php
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $hook_name ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Calls the callback functions that have been added to an action hook, specifying arguments in an array.
 *
 * @since 2.1.0
 *
 * @see do_action() This function is identical, but the arguments passed to the
 *                  functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_actions        Stores the number of times each action was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the action to be executed.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 */
function do_action_ref_array( $hook_name, $args ) {
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
script-loader.php
     * @since 2.8.0
     */
    do_action( 'wp_print_footer_scripts' );
}
 
/**
 * Wrapper for do_action( 'wp_enqueue_scripts' ).
 *
 * Allows plugins to queue scripts for the front end using wp_enqueue_script().
 * Runs first in wp_head() where all is_home(), is_page(), etc. functions are available.
 *
 * @since 2.8.0
 */
function wp_enqueue_scripts() {
    /**
     * Fires when scripts and styles are enqueued.
     *
     * @since 2.8.0
     */
    do_action( 'wp_enqueue_scripts' );
}
 
/**
 * Prints the styles queue in the HTML head on admin pages.
 *
 * @since 2.8.0
 *
 * @global bool $concatenate_scripts
 *
 * @return array
 */
function print_admin_styles() {
    global $concatenate_scripts;
 
    $wp_styles = wp_styles();
 
    script_concat_settings();
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_items( false );
 
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } 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;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    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 ] );
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
plugin.php
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $hook_name ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Calls the callback functions that have been added to an action hook, specifying arguments in an array.
 *
 * @since 2.1.0
 *
 * @see do_action() This function is identical, but the arguments passed to the
 *                  functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_actions        Stores the number of times each action was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the action to be executed.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 */
function do_action_ref_array( $hook_name, $args ) {
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-content
/
themes
/
staplestuitiongrants-theme
/
app
/
filters.php
    return ' …';
});
 
/**
 * Template Hierarchy should search for .blade.php files
 */
collect([
    'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', 'home',
    'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment', 'embed'
])->map(function ($type) {
    add_filter("{$type}_template_hierarchy", __NAMESPACE__.'\\filter_templates');
});
 
/**
 * Render page using Blade
 */
add_filter('template_include', function ($template) {
    collect(['get_header', 'wp_head'])->each(function ($tag) {
        ob_start();
        do_action($tag);
        $output = ob_get_clean();
        remove_all_actions($tag);
        add_action($tag, function () use ($output) {
            echo $output;
        });
    });
    $data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
        return apply_filters("sage/template/{$class}/data", $data, $template);
    }, []);
    if ($template) {
        echo template($template, $data);
        return get_stylesheet_directory().'/index.php';
    }
    return $template;
}, PHP_INT_MAX);
 
/**
 * Render comments.blade.php
 */
add_filter('comments_template', function ($comments_template) {
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-content
/
themes
/
staplestuitiongrants-theme
/
vendor
/
illuminate
/
support
/
Collection.php
     *
     * @param  mixed   $items
     * @param  callable  $callback
     * @return static
     */
    public function diffKeysUsing($items, callable $callback)
    {
        return new static(array_diff_ukey($this->items, $this->getArrayableItems($items), $callback));
    }
 
    /**
     * Execute a callback over each item.
     *
     * @param  callable  $callback
     * @return $this
     */
    public function each(callable $callback)
    {
        foreach ($this->items as $key => $item) {
            if ($callback($item, $key) === false) {
                break;
            }
        }
 
        return $this;
    }
 
    /**
     * Execute a callback over each nested chunk of items.
     *
     * @param  callable  $callback
     * @return static
     */
    public function eachSpread(callable $callback)
    {
        return $this->each(function ($chunk, $key) use ($callback) {
            $chunk[] = $key;
 
            return $callback(...$chunk);
        });
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-content
/
themes
/
staplestuitiongrants-theme
/
app
/
filters.php
collect([
    'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', 'home',
    'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment', 'embed'
])->map(function ($type) {
    add_filter("{$type}_template_hierarchy", __NAMESPACE__.'\\filter_templates');
});
 
/**
 * Render page using Blade
 */
add_filter('template_include', function ($template) {
    collect(['get_header', 'wp_head'])->each(function ($tag) {
        ob_start();
        do_action($tag);
        $output = ob_get_clean();
        remove_all_actions($tag);
        add_action($tag, function () use ($output) {
            echo $output;
        });
    });
    $data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
        return apply_filters("sage/template/{$class}/data", $data, $template);
    }, []);
    if ($template) {
        echo template($template, $data);
        return get_stylesheet_directory().'/index.php';
    }
    return $template;
}, PHP_INT_MAX);
 
/**
 * Render comments.blade.php
 */
add_filter('comments_template', function ($comments_template) {
    $comments_template = str_replace(
        [get_stylesheet_directory(), get_template_directory()],
        '',
        $comments_template
    );
 
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } 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;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
plugin.php
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 *                      functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_filters        Stores the number of times each filter was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-includes
/
template-loader.php
            if ( 'is_attachment' === $tag ) {
                remove_filter( 'the_content', 'prepend_attachment' );
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
/
home
/
customer
/
www
/
vn-staging.com
/
public_html
/
client
/
staplestuitiongrants
/
index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 

Environment & details:

Key Value
query_vars Array ( [post_type] => award [starts_with] => n [nopaging] => 1 )
query_string post_type=award&starts_with=n&nopaging=1
request awards
matched_rule awards/?$
matched_query post_type=award
did_permalink 1
Key Value
query Array ( [post_type] => award [starts_with] => n [nopaging] => 1 )
query_vars Array ( [post_type] => award [starts_with] => n [nopaging] => 1 [meta_key] => sort_term [orderby] => meta_value [order] => ASC [cache_results] => 1 [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [posts_per_page] => 10 [comments_per_page] => 50 )
tax_query WP_Tax_Query Object ( [queries] => Array ( ) [relation] => AND [table_aliases:protected] => Array ( ) [queried_terms] => Array ( ) [primary_table] => wp_posts [primary_id_column] => ID )
meta_query WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [key] => sort_term ) [relation] => OR ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta ) [clauses:protected] => Array ( [wp_postmeta] => Array ( [key] => sort_term [compare] => = [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) ) [has_or_relation:protected] => )
queried_object WP_Post_Type Object ( [name] => award [label] => Awards [labels] => stdClass Object ( [name] => Awards [singular_name] => Award [add_new] => Add New [add_new_item] => Add New Award [edit_item] => Edit Award [new_item] => New Award [view_item] => View Award [view_items] => View Awards [search_items] => Search Awards [not_found] => No awards found. [not_found_in_trash] => No awards found in trash. [parent_item_colon] => Parent Award: [all_items] => All Awards [archives] => Award Archives [attributes] => Award Attributes [insert_into_item] => Insert into award [uploaded_to_this_item] => Uploaded to this award [featured_image] => Featured image [set_featured_image] => Set featured image [remove_featured_image] => Remove featured image [use_featured_image] => Use as featured image [filter_items_list] => Filter awards list [filter_by_date] => Filter by date [items_list_navigation] => Awards list navigation [items_list] => Awards list [item_published] => Award published. [item_published_privately] => Award published privately. [item_reverted_to_draft] => Award reverted to draft. [item_trashed] => Post trashed. [item_scheduled] => Award scheduled. [item_updated] => Award updated. [item_link] => Post Link [item_link_description] => A link to a post. [menu_name] => Awards [name_admin_bar] => Award ) [description] => [public] => 1 [hierarchical] => [exclude_from_search] => [publicly_queryable] => 1 [show_ui] => 1 [show_in_menu] => 1 [show_in_nav_menus] => 1 [show_in_admin_bar] => 1 [menu_position] => 5.1 [menu_icon] => dashicons-awards [capability_type] => page [map_meta_cap] => 1 [register_meta_box_cb] => [taxonomies] => Array ( ) [has_archive] => 1 [query_var] => award [can_export] => 1 [delete_with_user] => [template] => Array ( ) [template_lock] => [_builtin] => [_edit_link] => post.php?post=%d [cap] => stdClass Object ( [edit_post] => edit_page [read_post] => read_page [delete_post] => delete_page [edit_posts] => edit_pages [edit_others_posts] => edit_others_pages [delete_posts] => delete_pages [publish_posts] => publish_pages [read_private_posts] => read_private_pages [read] => read [delete_private_posts] => delete_private_pages [delete_published_posts] => delete_published_pages [delete_others_posts] => delete_others_pages [edit_private_posts] => edit_private_pages [edit_published_posts] => edit_published_pages [create_posts] => edit_pages ) [rewrite] => Array ( [slug] => awards [with_front] => [pages] => 1 [feeds] => 1 [ep_mask] => 1 ) [show_in_rest] => [rest_base] => [rest_namespace] => [rest_controller_class] => [rest_controller] => [site_filters] => [site_sortables] => [show_in_feed] => [archive] => Array ( [nopaging] => 1 ) [featured_image] => [admin_cols] => Array ( [featured_image] => Array ( [title] => Album Cover [featured_image] => thumbnail [width] => 80 [height] => 80 ) [release_date] => Array ( [title] => Release Date [meta_key] => release_date [date_format] => F d, Y ) ) )
request SELECT wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1 AND ( wp_postmeta.meta_key = 'sort_term' ) AND ((wp_posts.post_type = 'award' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled'))) AND ID IN (SELECT post_id FROM wp_postmeta WHERE meta_key = 'sort_term' AND meta_value LIKE 'n{dc64451c2ee0af2210aaccac74ba19601247c3a0c731443ae6b8d2a534d0da45}') GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value ASC
current_post -1
before_loop 1
current_comment -1
is_archive 1
is_post_type_archive 1
empty
Key Value
starts_with n
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /client/staplestuitiongrants/awards/?starts_with=n
PATH /usr/local/bin:/usr/bin:/bin
DOCUMENT_ROOT /home/u573-p5mcwqzlgutc/www/vn-staging.com/public_html
REDIRECT_STATUS 200
HTTPS on
UNIQUE_ID ZRD10dbTQb5j82q8_wjXdAAAAAI
SCRIPT_URL /client/staplestuitiongrants/awards/
SCRIPT_URI https://vn-staging.com/client/staplestuitiongrants/awards/
HTTP_AUTHORIZATION
PHPHANDLER /usr/local/php74/bin/php
HTTP_X_PORT 56638
HTTP_X_REAL_IP 3.236.237.61
HTTP_X_FORWARDED_PROTO https
HTTP_HOST vn-staging.com
HTTP_X_ACCEPT_ENCODING br,gzip
HTTP_CONNECTION close
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
SERVER_NAME vn-staging.com
SERVER_ADDR 35.215.107.148
SERVER_PORT 443
REMOTE_ADDR 3.236.237.61
SERVER_ADMIN webmaster
SCRIPT_FILENAME /home/u573-p5mcwqzlgutc/www/vn-staging.com/public_html/client/staplestuitiongrants/index.php
REMOTE_PORT 12148
REDIRECT_URL /client/staplestuitiongrants/awards/
REDIRECT_QUERY_STRING starts_with=n
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING starts_with=n
SCRIPT_NAME /client/staplestuitiongrants/index.php
PHP_DEFAULT_SOCKET_TIMEOUT 40
PHP_MAX_EXECUTION_TIME 120
PHP_MAX_INPUT_TIME 120
PHP_MEMORY_LIMIT 768M
PHP_POST_MAX_SIZE 256M
PHP_UPLOAD_MAX_FILESIZE 256M
PHP_SELF /client/staplestuitiongrants/index.php
REQUEST_TIME_FLOAT 1695610321.8717
REQUEST_TIME 1695610321
empty
0. Whoops\Handler\PrettyPageHandler
1. Rarst\wps\Admin_Ajax_Handler
2. Rarst\wps\Rest_Api_Handler