Whoops \ Exception \ ErrorException (E_USER_DEPRECATED)
Function get_the_excerpt was called with an argument that is <strong>deprecated</strong> since version 2.3.0 with no alternative available. Whoops\Exception\ErrorException thrown with message "Function get_the_excerpt was called with an argument that is <strong>deprecated</strong> since version 2.3.0 with no alternative available." Stacktrace: #26 Whoops\Exception\ErrorException in /nas/content/live/comsol/wp-includes/functions.php:5747 #25 trigger_error in /nas/content/live/comsol/wp-includes/functions.php:5747 #24 _deprecated_argument in /nas/content/live/comsol/wp-includes/post-template.php:413 #23 get_the_excerpt in /nas/content/live/comsol/wp-content/themes/community-solutions/config/Wordpress/Theme.php:71 #22 Config\Wordpress\Theme:fillEmptyMetaDescription in /nas/content/live/comsol/wp-includes/class-wp-hook.php:312 #21 WP_Hook:apply_filters in /nas/content/live/comsol/wp-includes/plugin.php:205 #20 apply_filters in /nas/content/live/comsol/wp-content/plugins/wordpress-seo/src/presenters/meta-description-presenter.php:60 #19 Yoast\WP\SEO\Presenters\Meta_Description_Presenter:get in /nas/content/live/comsol/wp-content/plugins/wordpress-seo/src/presenters/abstract-indexable-tag-presenter.php:37 #18 Yoast\WP\SEO\Presenters\Abstract_Indexable_Tag_Presenter:present in /nas/content/live/comsol/wp-content/plugins/wordpress-seo/src/presenters/meta-description-presenter.php:25 #17 Yoast\WP\SEO\Presenters\Meta_Description_Presenter:present in /nas/content/live/comsol/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php:409 #16 Yoast\WP\SEO\Integrations\Front_End_Integration:present_head in /nas/content/live/comsol/wp-includes/class-wp-hook.php:310 #15 WP_Hook:apply_filters in /nas/content/live/comsol/wp-includes/class-wp-hook.php:334 #14 WP_Hook:do_action in /nas/content/live/comsol/wp-includes/plugin.php:517 #13 do_action in /nas/content/live/comsol/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php:383 #12 Yoast\WP\SEO\Integrations\Front_End_Integration:call_wpseo_head in /nas/content/live/comsol/wp-includes/class-wp-hook.php:310 #11 WP_Hook:apply_filters in /nas/content/live/comsol/wp-includes/class-wp-hook.php:334 #10 WP_Hook:do_action in /nas/content/live/comsol/wp-includes/plugin.php:517 #9 do_action in /nas/content/live/comsol/wp-includes/general-template.php:3053 #8 wp_head in /nas/content/live/comsol/wp-content/themes/community-solutions/header.php:44 #7 require_once in /nas/content/live/comsol/wp-includes/template.php:785 #6 load_template in /nas/content/live/comsol/wp-includes/template.php:720 #5 locate_template in /nas/content/live/comsol/wp-includes/general-template.php:48 #4 get_header in /nas/content/live/comsol/wp-content/themes/community-solutions/index.php:5 #3 include in /nas/content/live/comsol/wp-content/themes/community-solutions/tag.php:7 #2 include in /nas/content/live/comsol/wp-includes/template-loader.php:106 #1 require_once in /nas/content/live/comsol/wp-blog-header.php:19 #0 require in /nas/content/live/comsol/index.php:17
Stack frames (27)
26
Whoops
\
Exception
\
ErrorException
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
functions.php
5747
25
trigger_error
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
functions.php
5747
24
_deprecated_argument
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
post-template.php
413
23
get_the_excerpt
/
config
/
Wordpress
/
Theme.php
71
22
Config
\
Wordpress
\
Theme
fillEmptyMetaDescription
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
class-wp-hook.php
312
21
WP_Hook
apply_filters
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
plugin.php
205
20
apply_filters
/
nas
/
content
/
live
/
comsol
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
presenters
/
meta-description-presenter.php
60
19
Yoast
\
WP
\
SEO
\
Presenters
\
Meta_Description_Presenter
get
/
nas
/
content
/
live
/
comsol
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
presenters
/
abstract-indexable-tag-presenter.php
37
18
Yoast
\
WP
\
SEO
\
Presenters
\
Abstract_Indexable_Tag_Presenter
present
/
nas
/
content
/
live
/
comsol
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
presenters
/
meta-description-presenter.php
25
17
Yoast
\
WP
\
SEO
\
Presenters
\
Meta_Description_Presenter
present
/
nas
/
content
/
live
/
comsol
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
integrations
/
front-end-integration.php
409
16
Yoast
\
WP
\
SEO
\
Integrations
\
Front_End_Integration
present_head
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
class-wp-hook.php
310
15
WP_Hook
apply_filters
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
class-wp-hook.php
334
14
WP_Hook
do_action
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
plugin.php
517
13
do_action
/
nas
/
content
/
live
/
comsol
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
integrations
/
front-end-integration.php
383
12
Yoast
\
WP
\
SEO
\
Integrations
\
Front_End_Integration
call_wpseo_head
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
class-wp-hook.php
310
11
WP_Hook
apply_filters
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
class-wp-hook.php
334
10
WP_Hook
do_action
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
plugin.php
517
9
do_action
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
general-template.php
3053
8
wp_head
/
header.php
44
7
require_once
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
template.php
785
6
load_template
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
template.php
720
5
locate_template
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
general-template.php
48
4
get_header
/
index.php
5
3
include
/
tag.php
7
2
include
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
template-loader.php
106
1
require_once
/
nas
/
content
/
live
/
comsol
/
wp-blog-header.php
19
0
require
/
nas
/
content
/
live
/
comsol
/
index.php
17
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
functions.php
            if ( $message ) {
                trigger_error(
                    sprintf(
                        /* translators: 1: PHP function name, 2: Version number, 3: Optional message regarding the change. */
                        __( 'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s' ),
                        $function_name,
                        $version,
                        $message
                    ),
                    E_USER_DEPRECATED
                );
            } else {
                trigger_error(
                    sprintf(
                        /* translators: 1: PHP function name, 2: Version number. */
                        __( 'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
                        $function_name,
                        $version
                    ),
                    E_USER_DEPRECATED
                );
            }
        } else {
            if ( $message ) {
                trigger_error(
                    sprintf(
                        'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s',
                        $function_name,
                        $version,
                        $message
                    ),
                    E_USER_DEPRECATED
                );
            } else {
                trigger_error(
                    sprintf(
                        'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.',
                        $function_name,
                        $version
                    ),
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
functions.php
            if ( $message ) {
                trigger_error(
                    sprintf(
                        /* translators: 1: PHP function name, 2: Version number, 3: Optional message regarding the change. */
                        __( 'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s' ),
                        $function_name,
                        $version,
                        $message
                    ),
                    E_USER_DEPRECATED
                );
            } else {
                trigger_error(
                    sprintf(
                        /* translators: 1: PHP function name, 2: Version number. */
                        __( 'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
                        $function_name,
                        $version
                    ),
                    E_USER_DEPRECATED
                );
            }
        } else {
            if ( $message ) {
                trigger_error(
                    sprintf(
                        'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s',
                        $function_name,
                        $version,
                        $message
                    ),
                    E_USER_DEPRECATED
                );
            } else {
                trigger_error(
                    sprintf(
                        'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.',
                        $function_name,
                        $version
                    ),
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
post-template.php
     *
     * @see get_the_excerpt()
     *
     * @param string $post_excerpt The post excerpt.
     */
    echo apply_filters( 'the_excerpt', get_the_excerpt() );
}
 
/**
 * Retrieves the post excerpt.
 *
 * @since 0.71
 * @since 4.5.0 Introduced the `$post` parameter.
 *
 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
 * @return string Post excerpt.
 */
function get_the_excerpt( $post = null ) {
    if ( is_bool( $post ) ) {
        _deprecated_argument( __FUNCTION__, '2.3.0' );
    }
 
    $post = get_post( $post );
    if ( empty( $post ) ) {
        return '';
    }
 
    if ( post_password_required( $post ) ) {
        return __( 'There is no excerpt because this is a protected post.' );
    }
 
    /**
     * Filters the retrieved post excerpt.
     *
     * @since 1.2.0
     * @since 4.5.0 Introduced the `$post` parameter.
     *
     * @param string  $post_excerpt The post excerpt.
     * @param WP_Post $post         Post object.
     */
/
nas
/
content
/
live
/
comsol
/
wp-content
/
themes
/
community-solutions
/
config
/
Wordpress
/
Theme.php
        add_action('wp_footer', 'wp_enqueue_scripts', 5);
        add_action('wp_footer', 'wp_print_head_scripts', 5);
    }
 
    public function addRelPreloadTagToEnqueueStyles($html, $handle) {
        $styles = ['app', 'wp-block-library', 'contact-form-7', 'cf7cf-style'];
        foreach ($styles as $singleStyle) {
            if ($singleStyle === $handle) {
                $html = preg_replace("/id='" . $singleStyle . "-css'/", " id='" . $singleStyle . "-css' rel='preload' as='style' ", $html);
            }
        }
        return $html;
    }
 
    public function fillEmptyMetaDescription($desc) {
        // Only if Yoast Meta Description is empty.
        if (
            strlen( get_post_meta(get_the_id(), '_yoast_wpseo_metadesc', true) ) < 1
        ) {
            $desc = $this->getTheExcerptWithCharactersLimit(get_the_excerpt(get_the_id()), 150);
        }
    return $desc;
    }
 
    public function getTheExcerptWithCharactersLimit($text, $length) {
        // Don't cut if too short
        if (strlen($text) < $length + 10) {
            return $text;
        }
        // Find next space after desired length
        $break_pos = strpos($text, ' ', $length);
        $visible = substr($text, 0, $break_pos);
        return balanceTags($visible) . " …";
    }
 
    public function excludeCareersSubPagesFromIndexing() {
        if (
            is_page()
            && isset($_SERVER['REQUEST_URI'])
        ) {
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
class-wp-hook.php
 
        $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.
     */
    public function do_action( $args ) {
/
nas
/
content
/
live
/
comsol
/
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`.
/
nas
/
content
/
live
/
comsol
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
presenters
/
meta-description-presenter.php
 
        return '';
    }
 
    /**
     * Run the meta description content through replace vars, the `wpseo_metadesc` filter and sanitization.
     *
     * @return string The filtered meta description.
     */
    public function get() {
        $meta_description = $this->replace_vars( $this->presentation->meta_description );
 
        /**
         * Filter: 'wpseo_metadesc' - Allow changing the Yoast SEO meta description sentence.
         *
         * @api string $meta_description The description sentence.
         *
         * @param Indexable_Presentation $presentation The presentation of an indexable.
         */
        $meta_description = \apply_filters( 'wpseo_metadesc', $meta_description, $this->presentation );
        $meta_description = $this->helpers->string->strip_all_tags( \stripslashes( $meta_description ) );
        return \trim( $meta_description );
    }
}
 
/
nas
/
content
/
live
/
comsol
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
presenters
/
abstract-indexable-tag-presenter.php
     * The tag format including placeholders.
     *
     * @var string
     */
    protected $tag_format = self::DEFAULT_TAG_FORMAT;
 
    /**
     * The method of escaping to use.
     *
     * @var string
     */
    protected $escaping = 'attribute';
 
    /**
     * Returns a tag in the head.
     *
     * @return string The tag.
     */
    public function present() {
        $value = $this->get();
 
        if ( ! \is_string( $value ) || $value === '' ) {
            return '';
        }
 
        /**
         * There may be some classes that are derived from this class that do not use the $key property
         * in their $tag_format string. In that case the key property will simply not be used.
         */
        return \sprintf(
            $this->tag_format,
            $this->escape_value( $value ),
            $this->key,
            \is_admin_bar_showing() ? ' class="yoast-seo-meta-tag"' : ''
        );
    }
 
    /**
     * Escaped the output.
     *
/
nas
/
content
/
live
/
comsol
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
presenters
/
meta-description-presenter.php
 
/**
 * Presenter class for the meta description.
 */
class Meta_Description_Presenter extends Abstract_Indexable_Tag_Presenter {
 
    /**
     * The tag key name.
     *
     * @var string
     */
    protected $key = 'description';
 
    /**
     * Returns the meta description for a post.
     *
     * @return string The meta description tag.
     */
    public function present() {
        $output = parent::present();
 
        if ( ! empty( $output ) ) {
            return $output;
        }
 
        if ( \current_user_can( 'wpseo_manage_options' ) ) {
            return '<!-- ' .
                \sprintf(
                    /* translators: %1$s resolves to Yoast SEO, %2$s resolves to the Settings submenu item. */
                    \esc_html__( 'Admin only notice: this page does not show a meta description because it does not have one, either write it for this page specifically or go into the [%1$s - %2$s] menu and set up a template.', 'wordpress-seo' ),
                    \esc_html__( 'Yoast SEO', 'wordpress-seo' ),
                    \esc_html__( 'Settings', 'wordpress-seo' )
                ) .
                ' -->';
        }
 
        return '';
    }
 
    /**
/
nas
/
content
/
live
/
comsol
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
integrations
/
front-end-integration.php
     * Echoes all applicable presenters for a page.
     */
    public function present_head() {
        $context    = $this->context_memoizer->for_current_page();
        $presenters = $this->get_presenters( $context->page_type, $context );
 
        /**
         * Filter 'wpseo_frontend_presentation' - Allow filtering the presentation used to output our meta values.
         *
         * @api Indexable_Presention The indexable presentation.
         */
        $presentation = \apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context );
 
        echo \PHP_EOL;
        foreach ( $presenters as $presenter ) {
            $presenter->presentation = $presentation;
            $presenter->helpers      = $this->helpers;
            $presenter->replace_vars = $this->replace_vars;
 
            $output = $presenter->present();
            if ( ! empty( $output ) ) {
                // phpcs:ignore WordPress.Security.EscapeOutput -- Presenters are responsible for correctly escaping their output.
                echo "\t" . $output . \PHP_EOL;
            }
        }
        echo \PHP_EOL . \PHP_EOL;
    }
 
    /**
     * Returns all presenters for this page.
     *
     * @param string                 $page_type The page type.
     * @param Meta_Tags_Context|null $context   The meta tags context for the current page.
     *
     * @return Abstract_Indexable_Presenter[] The presenters.
     */
    public function get_presenters( $page_type, $context = null ) {
        if ( \is_null( $context ) ) {
            $context = $this->context_memoizer->for_current_page();
        }
/
nas
/
content
/
live
/
comsol
/
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.
/
nas
/
content
/
live
/
comsol
/
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 ] );
/
nas
/
content
/
live
/
comsol
/
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 ) {
/
nas
/
content
/
live
/
comsol
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
integrations
/
front-end-integration.php
        if ( $this->request->is_rest_request() ) {
            return $presenters;
        }
 
        return \array_diff( $presenters, [ 'Yoast\\WP\\SEO\\Presenters\\Robots_Presenter' ] );
    }
 
    /**
     * Presents the head in the front-end. Resets wp_query if it's not the main query.
     *
     * @codeCoverageIgnore It just calls a WordPress function.
     */
    public function call_wpseo_head() {
        global $wp_query;
 
        $old_wp_query = $wp_query;
        // phpcs:ignore WordPress.WP.DiscouragedFunctions.wp_reset_query_wp_reset_query -- Reason: The recommended function, wp_reset_postdata, doesn't reset wp_query.
        \wp_reset_query();
 
        \do_action( 'wpseo_head' );
 
        // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Reason: we have to restore the query.
        $GLOBALS['wp_query'] = $old_wp_query;
    }
 
    /**
     * Echoes all applicable presenters for a page.
     */
    public function present_head() {
        $context    = $this->context_memoizer->for_current_page();
        $presenters = $this->get_presenters( $context->page_type, $context );
 
        /**
         * Filter 'wpseo_frontend_presentation' - Allow filtering the presentation used to output our meta values.
         *
         * @api Indexable_Presention The indexable presentation.
         */
        $presentation = \apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context );
 
        echo \PHP_EOL;
/
nas
/
content
/
live
/
comsol
/
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.
/
nas
/
content
/
live
/
comsol
/
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 ] );
/
nas
/
content
/
live
/
comsol
/
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 ) {
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
general-template.php
     * @param string $before           The HTML to output before the date.
     * @param string $after            The HTML to output after the date.
     */
    echo apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
}
 
/**
 * Fires the wp_head action.
 *
 * See {@see 'wp_head'}.
 *
 * @since 1.2.0
 */
function wp_head() {
    /**
     * Prints scripts or data in the head tag on the front end.
     *
     * @since 1.5.0
     */
    do_action( 'wp_head' );
}
 
/**
 * Fires the wp_footer action.
 *
 * See {@see 'wp_footer'}.
 *
 * @since 1.5.1
 */
function wp_footer() {
    /**
     * Prints scripts or data before the closing body tag on the front end.
     *
     * @since 1.5.1
     */
    do_action( 'wp_footer' );
}
 
/**
 * Fires the wp_body_open action.
/
nas
/
content
/
live
/
comsol
/
wp-content
/
themes
/
community-solutions
/
header.php
           /* Smartphone Portrait and Landscape */
               @media only screen
               and (min-device-width : 320px)
               and (max-device-width : 480px){ .mobileShow { display: inline !important;}}
   </style>
    <?php
    // Example preloading fonts
    /*
    <link rel="preload" as="font" href="<?php echo get_template_directory_uri(); ?>/assets/fonts/FuturaCom-Bold.woff2"
    type="font/woff2" crossorigin />
    <link rel="preload" as="font" href="<?php echo get_template_directory_uri(); ?>/assets/fonts/FuturaCom-Book.woff2"
        type="font/woff2" crossorigin />
    <link rel="preload" as="font" href="<?php echo get_template_directory_uri(); ?>/assets/fonts/FuturaCom-Medium.woff2"
        type="font/woff2" crossorigin />
    */
    ?>
    
    
 
    <?php wp_head(); ?>
    <!-- Google Tag Manager -->
    <!-- <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-5TV9QCV');</script> -->
    <!-- End Google Tag Manager -->
    <script type="text/javascript">
    // Global variable to pass backend vars to javascript
    var websiteData = {};
    websiteData.urlWebsite = '<?php echo get_site_url(); ?>';
    websiteData.urlTheme = '<?php echo get_template_directory_uri(); ?>';
    websiteData.googleMapsApi = '<?php echo GOOGLE_MAPS_API; ?>';
    websiteData.userIP =
        '<?php echo (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];  ?>';
    websiteData.uriIcon = '<?php echo ICON_ASSETS; ?>';
    websiteData.uriImage = '<?php echo IMAGE_ASSETS; ?>';
    websiteData.fontsuri = '<?php echo CS_FONTS_URI; ?>';
    </script>
    
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
template.php
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    /**
     * Fires before a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
 
    if ( $load_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }
 
    /**
     * Fires after a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
 
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
template.php
function locate_template( $template_names, $load = false, $load_once = true, $args = array() ) {
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( ! $template_name ) {
            continue;
        }
        if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {
            $located = STYLESHEETPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {
            $located = TEMPLATEPATH . '/' . $template_name;
            break;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
            break;
        }
    }
 
    if ( $load && '' !== $located ) {
        load_template( $located, $load_once, $args );
    }
 
    return $located;
}
 
/**
 * Requires the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @global array      $posts
 * @global WP_Post    $post          Global post object.
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query      WordPress Query object.
 * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
general-template.php
     * Fires before the header template file is loaded.
     *
     * @since 2.1.0
     * @since 2.8.0 The `$name` parameter was added.
     * @since 5.5.0 The `$args` parameter was added.
     *
     * @param string|null $name Name of the specific header file to use. Null for the default header.
     * @param array       $args Additional arguments passed to the header template.
     */
    do_action( 'get_header', $name, $args );
 
    $templates = array();
    $name      = (string) $name;
    if ( '' !== $name ) {
        $templates[] = "header-{$name}.php";
    }
 
    $templates[] = 'header.php';
 
    if ( ! locate_template( $templates, true, true, $args ) ) {
        return false;
    }
}
 
/**
 * Loads footer template.
 *
 * Includes the footer template for a theme or if a name is specified then a
 * specialized footer will be included.
 *
 * For the parameter, if the file is called "footer-special.php" then specify
 * "special".
 *
 * @since 1.5.0
 * @since 5.5.0 A return value was added.
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @param string $name The name of the specialized footer.
 * @param array  $args Optional. Additional arguments passed to the footer template.
 *                     Default empty array.
/
nas
/
content
/
live
/
comsol
/
wp-content
/
themes
/
community-solutions
/
index.php
<?php
use Frank\PageRenderer\PageRenderer;
 
// Get the default wordpress header
get_header();
 
$renderer = new PageRenderer();
 
$renderer->setSingular((is_single() || is_page()));
 
if (have_posts()) {
    while (have_posts()) {
        the_post();
 
        $renderer->addPost($post);
    }
}
 
$renderer->render();
 
get_footer();
 
?>
 
/
nas
/
content
/
live
/
comsol
/
wp-content
/
themes
/
community-solutions
/
tag.php
<?php
/**
* Define the template renderer to use for the archive
*/
define('APP_ARCHIVE_TEMPLATE_RENDERER', 'App\TemplateRenderer\TemplateRenderer_tag_default');
 
include __DIR__ . '/index.php';
?>
 
/
nas
/
content
/
live
/
comsol
/
wp-includes
/
template-loader.php
            }
 
            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;
}
 
/
nas
/
content
/
live
/
comsol
/
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';
 
}
 
/
nas
/
content
/
live
/
comsol
/
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:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /our-stories/tag/wage-subsidy/
REDIRECT_HAVE_ORIGINAL_USER_AGENT claudebot
REDIRECT_HTTPS on
REDIRECT_IS_WPE 1
REDIRECT_WPE_CAN_WRITE_DISK 0
REDIRECT_WPENGINE_PHPSESSIONS on
REDIRECT_WPE_HEARTBEAT_AUTOSAVE_ONLY on
REDIRECT_WPENGINE_FORCE_STRONG_PASSWORDS on
REDIRECT_WPENGINE_CLEAR_EXPIRED_COOKIES off
REDIRECT_WPENGINE_ACCOUNT comsol
REDIRECT_WPENGINE_SESSION_LOCKING on
REDIRECT_STATUS 200
HAVE_ORIGINAL_USER_AGENT claudebot
HTTPS on
IS_WPE 1
WPE_CAN_WRITE_DISK 0
WPENGINE_PHPSESSIONS on
WPE_HEARTBEAT_AUTOSAVE_ONLY on
WPENGINE_FORCE_STRONG_PASSWORDS on
WPENGINE_CLEAR_EXPIRED_COOKIES off
WPENGINE_ACCOUNT comsol
WPENGINE_SESSION_LOCKING on
HTTP_HOST communitysolutions.org.au
HTTP_CONNECTION close
HTTP_X_IS_BOT 1
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_HOST communitysolutions.org.au
HTTP_X_WPE_SSL 1
HTTP_X_WPE_INSTALL_NAME comsol
HTTP_WPE_READONLY on
HTTP_CF_CONNECTING_IP 3.239.162.98, 3.239.162.98
HTTP_X_WPE_REQUEST_ID a3e78f15dafc0539b2378a467429dac9
HTTP_X_WPE_LOCAL_SSL 1
HTTP_X_FORWARDED_PROTO https
HTTP_ACCEPT */*
HTTP_X_WORDPRESS_TYPE DEFAULT
HTTP_WPE_UPLOAD_MAX_FILESIZE 50M
HTTP_WPE_POST_MAX_SIZE 100M
HTTP_VIA 1.1 pod-120508:varnish:106 (Varnish/7.4)
HTTP_X_UA_ORIGINAL claudebot
HTTP_RAWHOST communitysolutions.org.au
HTTP_X_BOT_CACHE YES
HTTP_X_CACHE_GROUP bot
HTTP_ACCEPT_ENCODING gzip
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE
SERVER_NAME communitysolutions.org.au
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 3.239.162.98
DOCUMENT_ROOT /nas/content/live/comsol
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /nas/content/live/comsol
SERVER_ADMIN [no address given]
SCRIPT_FILENAME /nas/content/live/comsol/index.php
REMOTE_PORT 30042
REDIRECT_URL /our-stories/tag/wage-subsidy/
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711690614.32
REQUEST_TIME 1711690614
Key Value
APACHE2_OPCACHE_MAX_FILE_SIZE_BYTES 614400
APACHE2_OPCACHE_MEMORY_CONSUMPTION 1792
HOSTNAME pod-120508:apache2_74:v0.3.4
SHLVL 0
APACHE_RUN_DIR /var/run/apache2
APACHE_PID_FILE /var/run/apache2/apache2.pid
APACHE2_OPCACHE_REVALIDATE_FREQ 10
_ /usr/sbin/apache2ctl
APACHE2_OPCACHE_HUGE_CODE_PAGES 1
APACHE2_LISTEN_PORT_RW 6778
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
APACHE_LOCK_DIR /var/lock/apache2
APACHE2_OPCACHE_MAX_WASTED_PERCENTAGE 5
LANG C
APACHE2_OPCACHE_MAX_ACCELERATED_FILES 1000000
APACHE_RUN_USER www-data
APACHE_RUN_GROUP www-data
APACHE2_LISTEN_PORT 6779
APACHE_LOG_DIR /var/log/apache2
PWD /
BASE_VERSION 7.4-zend
WPENGINE_ACCOUNT comsol
WPENGINE_PHPSESSIONS on
WPENGINE_DB_SESSIONS off
0. Whoops\Handler\PrettyPageHandler