Error
Class 'PP_One_Page_Checkout' not found Error thrown with message "Class 'PP_One_Page_Checkout' not found" Stacktrace: #36 Error in /var/www/staging/releases/20200416085901/public/content/plugins/woocommerce-memberships/includes/integrations/one-page-checkout/class-wc-memberships-integration-one-page-checkout.php:83 #35 WC_Memberships_Integration_One_Page_Checkout:maybe_force_registration in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/class-wp-hook.php:287 #34 WP_Hook:apply_filters in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/plugin.php:206 #33 apply_filters in /var/www/staging/releases/20200416085901/public/content/plugins/woocommerce/includes/class-wc-frontend-scripts.php:605 #32 WC_Frontend_Scripts:get_script_data in /var/www/staging/releases/20200416085901/public/content/plugins/woocommerce/includes/class-wc-frontend-scripts.php:444 #31 WC_Frontend_Scripts:localize_script in /var/www/staging/releases/20200416085901/public/content/plugins/woocommerce/includes/class-wc-frontend-scripts.php:613 #30 WC_Frontend_Scripts:localize_printed_scripts in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/class-wp-hook.php:287 #29 WP_Hook:apply_filters in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/class-wp-hook.php:311 #28 WP_Hook:do_action in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/plugin.php:478 #27 do_action in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/script-loader.php:1950 #26 wp_print_head_scripts in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/class-wp-hook.php:287 #25 WP_Hook:apply_filters in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/class-wp-hook.php:311 #24 WP_Hook:do_action in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/plugin.php:478 #23 do_action in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/general-template.php:3006 #22 wp_head in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Twig.php:309 #21 call_user_func_array in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Twig.php:309 #20 Timber\Twig:exec_function in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php:497 #19 __TwigTemplate_798c1fbf2518f94658d696e4219d475e51af35ff45f2c81cc613d1e58ec35598:doDisplay in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php:455 #18 Twig\Template:displayWithErrorHandling in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php:422 #17 Twig\Template:display in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php:497 #16 __TwigTemplate_76d6b7849d56359a25745c2d1f56c1704024b375e6c7f0c43ce158e98be0e74f:block_html_head_container in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php:216 #15 Twig\Template:displayBlock in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php:497 #14 __TwigTemplate_76d6b7849d56359a25745c2d1f56c1704024b375e6c7f0c43ce158e98be0e74f:doDisplay in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php:455 #13 Twig\Template:displayWithErrorHandling in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php:422 #12 Twig\Template:display in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php:497 #11 __TwigTemplate_1724d35eac5d5c076eec576e98f5afb865ce21e0ee8384456e7714cbbf3c533c:doDisplay in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php:455 #10 Twig\Template:displayWithErrorHandling in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php:422 #9 Twig\Template:display in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php:434 #8 Twig\Template:render in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/TemplateWrapper.php:47 #7 Twig\TemplateWrapper:render in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Loader.php:75 #6 Timber\Loader:render in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Timber.php:333 #5 Timber\Timber:compile in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Timber.php:377 #4 Timber\Timber:fetch in /var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Timber.php:404 #3 Timber\Timber:render in /var/www/staging/releases/20200416085901/public/content/themes/in-theme/page.php:30 #2 include in /var/www/staging/releases/20200416085901/public/wordpress/wp-includes/template-loader.php:106 #1 require_once in /var/www/staging/releases/20200416085901/public/wordpress/wp-blog-header.php:19 #0 require in /var/www/staging/releases/20200416085901/public/index.php:15
36
Error
/public/content/plugins/woocommerce-memberships/includes/integrations/one-page-checkout/class-wc-memberships-integration-one-page-checkout.php83
35
WC_Memberships_Integration_One_Page_Checkout maybe_force_registration
/public/wordpress/wp-includes/class-wp-hook.php287
34
WP_Hook apply_filters
/public/wordpress/wp-includes/plugin.php206
33
apply_filters
/public/content/plugins/woocommerce/includes/class-wc-frontend-scripts.php605
32
WC_Frontend_Scripts get_script_data
/public/content/plugins/woocommerce/includes/class-wc-frontend-scripts.php444
31
WC_Frontend_Scripts localize_script
/public/content/plugins/woocommerce/includes/class-wc-frontend-scripts.php613
30
WC_Frontend_Scripts localize_printed_scripts
/public/wordpress/wp-includes/class-wp-hook.php287
29
WP_Hook apply_filters
/public/wordpress/wp-includes/class-wp-hook.php311
28
WP_Hook do_action
/public/wordpress/wp-includes/plugin.php478
27
do_action
/public/wordpress/wp-includes/script-loader.php1950
26
wp_print_head_scripts
/public/wordpress/wp-includes/class-wp-hook.php287
25
WP_Hook apply_filters
/public/wordpress/wp-includes/class-wp-hook.php311
24
WP_Hook do_action
/public/wordpress/wp-includes/plugin.php478
23
do_action
/public/wordpress/wp-includes/general-template.php3006
22
wp_head
/public/content/plugins/timber-library/lib/Twig.php309
21
call_user_func_array
/public/content/plugins/timber-library/lib/Twig.php309
20
Timber\Twig exec_function
/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php497
19
__TwigTemplate_798c1fbf2518f94658d696e4219d475e51af35ff45f2c81cc613d1e58ec35598 doDisplay
/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php455
18
Twig\Template displayWithErrorHandling
/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php422
17
Twig\Template display
/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php497
16
__TwigTemplate_76d6b7849d56359a25745c2d1f56c1704024b375e6c7f0c43ce158e98be0e74f block_html_head_container
/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php216
15
Twig\Template displayBlock
/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php497
14
__TwigTemplate_76d6b7849d56359a25745c2d1f56c1704024b375e6c7f0c43ce158e98be0e74f doDisplay
/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php455
13
Twig\Template displayWithErrorHandling
/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php422
12
Twig\Template display
/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php497
11
__TwigTemplate_1724d35eac5d5c076eec576e98f5afb865ce21e0ee8384456e7714cbbf3c533c doDisplay
/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php455
10
Twig\Template displayWithErrorHandling
/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php422
9
Twig\Template display
/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php434
8
Twig\Template render
/public/content/plugins/timber-library/vendor/twig/twig/src/TemplateWrapper.php47
7
Twig\TemplateWrapper render
/public/content/plugins/timber-library/lib/Loader.php75
6
Timber\Loader render
/public/content/plugins/timber-library/lib/Timber.php333
5
Timber\Timber compile
/public/content/plugins/timber-library/lib/Timber.php377
4
Timber\Timber fetch
/public/content/plugins/timber-library/lib/Timber.php404
3
Timber\Timber render
/public/content/themes/in-theme/page.php30
2
include
/public/wordpress/wp-includes/template-loader.php106
1
require_once
/public/wordpress/wp-blog-header.php19
0
require
/public/index.php15
/var/www/staging/releases/20200416085901/public/content/plugins/woocommerce-memberships/includes/integrations/one-page-checkout/class-wc-memberships-integration-one-page-checkout.php
     *
     * @since 1.10.6
     *
     * @param array $params WooCommerce script parameters
     * @param string $handle current screen (WC 3.3+)
     * @return array
     */
    public function maybe_force_registration( $params, $handle = '' ) {
 
        if ( $frontend = wc_memberships()->get_frontend_instance() ) {
 
            $filter = current_filter();
 
            if (      in_array( $filter, array( 'woocommerce_params', 'wc_checkout_params' ), true )
                 || ( in_array( $handle, array( 'woocommerce', 'wc-checkout' ), true ) && 'woocommerce_get_script_data' === $filter ) ) {
 
                $checkout = $frontend->get_checkout_instance();
 
                if (    $checkout
                     && \PP_One_Page_Checkout::is_any_form_of_opc_page()
                     && $checkout->force_registration() ) {
 
                    $params['wcopc_option_guest_checkout'] = 'no';
                    $params['option_guest_checkout']       = 'no';
                }
            }
        }
 
        return $params;
    }
 
 
}
 
/var/www/staging/releases/20200416085901/public/wordpress/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $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.
/var/www/staging/releases/20200416085901/public/wordpress/wp-includes/plugin.php
    if ( isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
        _wp_call_all_hook( $args );
    }
 
    if ( ! isset( $wp_filter[ $tag ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
    }
 
    // Don't pass the tag name to WP_Hook.
    array_shift( $args );
 
    $filtered = $wp_filter[ $tag ]->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 `$tag` are supplied using an array.
 *
 * @global array $wp_filter         Stores all of the filters and actions.
 * @global array $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $tag  The name of the filter hook.
 * @param array  $args The arguments supplied to the functions hooked to $tag.
 * @return mixed The filtered value after all hooked functions are applied to it.
/var/www/staging/releases/20200416085901/public/content/plugins/woocommerce/includes/class-wc-frontend-scripts.php
                    'i18n_selection_too_long_n' => _x( 'You can only select %qty% items', 'enhanced select', 'woocommerce' ),
                    'i18n_load_more'            => _x( 'Loading more results…', 'enhanced select', 'woocommerce' ),
                    'i18n_searching'            => _x( 'Searching…', 'enhanced select', 'woocommerce' ),
                );
                break;
            case 'wc-password-strength-meter':
                $params = array(
                    'min_password_strength' => apply_filters( 'woocommerce_min_password_strength', 3 ),
                    'stop_checkout'         => apply_filters( 'woocommerce_enforce_password_strength_meter_on_checkout', false ),
                    'i18n_password_error'   => esc_attr__( 'Please enter a stronger password.', 'woocommerce' ),
                    'i18n_password_hint'    => esc_attr( wp_get_password_hint() ),
                );
                break;
            default:
                $params = false;
        }
 
        $params = apply_filters_deprecated( $handle . '_params', array( $params ), '3.0.0', 'woocommerce_get_script_data' );
 
        return apply_filters( 'woocommerce_get_script_data', $params, $handle );
    }
 
    /**
     * Localize scripts only when enqueued.
     */
    public static function localize_printed_scripts() {
        foreach ( self::$scripts as $handle ) {
            self::localize_script( $handle );
        }
    }
}
 
WC_Frontend_Scripts::init();
 
/var/www/staging/releases/20200416085901/public/content/plugins/woocommerce/includes/class-wc-frontend-scripts.php
        // Placeholder style.
        wp_register_style( 'woocommerce-inline', false ); // phpcs:ignore
        wp_enqueue_style( 'woocommerce-inline' );
 
        if ( true === wc_string_to_bool( get_option( 'woocommerce_checkout_highlight_required_fields', 'yes' ) ) ) {
            wp_add_inline_style( 'woocommerce-inline', '.woocommerce form .form-row .required { visibility: visible; }' );
        } else {
            wp_add_inline_style( 'woocommerce-inline', '.woocommerce form .form-row .required { visibility: hidden; }' );
        }
    }
 
    /**
     * Localize a WC script once.
     *
     * @since 2.3.0 this needs less wp_script_is() calls due to https://core.trac.wordpress.org/ticket/28404 being added in WP 4.0.
     * @param string $handle Script handle the data will be attached to.
     */
    private static function localize_script( $handle ) {
        if ( ! in_array( $handle, self::$wp_localize_scripts, true ) && wp_script_is( $handle ) ) {
            $data = self::get_script_data( $handle );
 
            if ( ! $data ) {
                return;
            }
 
            $name                        = str_replace( '-', '_', $handle ) . '_params';
            self::$wp_localize_scripts[] = $handle;
            wp_localize_script( $handle, $name, apply_filters( $name, $data ) );
        }
    }
 
    /**
     * Return data for script handles.
     *
     * @param  string $handle Script handle the data will be attached to.
     * @return array|bool
     */
    private static function get_script_data( $handle ) {
        global $wp;
 
/var/www/staging/releases/20200416085901/public/content/plugins/woocommerce/includes/class-wc-frontend-scripts.php
                    'stop_checkout'         => apply_filters( 'woocommerce_enforce_password_strength_meter_on_checkout', false ),
                    'i18n_password_error'   => esc_attr__( 'Please enter a stronger password.', 'woocommerce' ),
                    'i18n_password_hint'    => esc_attr( wp_get_password_hint() ),
                );
                break;
            default:
                $params = false;
        }
 
        $params = apply_filters_deprecated( $handle . '_params', array( $params ), '3.0.0', 'woocommerce_get_script_data' );
 
        return apply_filters( 'woocommerce_get_script_data', $params, $handle );
    }
 
    /**
     * Localize scripts only when enqueued.
     */
    public static function localize_printed_scripts() {
        foreach ( self::$scripts as $handle ) {
            self::localize_script( $handle );
        }
    }
}
 
WC_Frontend_Scripts::init();
 
/var/www/staging/releases/20200416085901/public/wordpress/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $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.
/var/www/staging/releases/20200416085901/public/wordpress/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 ] );
/var/www/staging/releases/20200416085901/public/wordpress/wp-includes/plugin.php
 
    if ( ! isset( $wp_filter[ $tag ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
    }
 
    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[ $tag ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Retrieve the number of times an action is fired.
 *
 * @since 2.1.0
 *
 * @global array $wp_actions Increments the amount of times action was triggered.
 *
 * @param string $tag The name of the action hook.
 * @return int The number of times action hook $tag is fired.
 */
function did_action( $tag ) {
    global $wp_actions;
 
    if ( ! isset( $wp_actions[ $tag ] ) ) {
        return 0;
    }
/var/www/staging/releases/20200416085901/public/wordpress/wp-includes/script-loader.php
        echo $wp_scripts->print_html;
    }
}
 
/**
 * Prints the script queue in the HTML head on the front end.
 *
 * Postpones the scripts that were queued for the footer.
 * wp_print_footer_scripts() is called in the footer to print these scripts.
 *
 * @since 2.8.0
 *
 * @global WP_Scripts $wp_scripts
 *
 * @return array
 */
function wp_print_head_scripts() {
    if ( ! did_action( 'wp_print_scripts' ) ) {
        /** This action is documented in wp-includes/functions.wp-scripts.php */
        do_action( 'wp_print_scripts' );
    }
 
    global $wp_scripts;
 
    if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
        return array(); // No need to run if nothing is queued.
    }
    return print_head_scripts();
}
 
/**
 * Private, for use in *_footer_scripts hooks
 *
 * @since 3.3.0
 */
function _wp_footer_scripts() {
    print_late_styles();
    print_footer_scripts();
}
 
/var/www/staging/releases/20200416085901/public/wordpress/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $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.
/var/www/staging/releases/20200416085901/public/wordpress/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 ] );
/var/www/staging/releases/20200416085901/public/wordpress/wp-includes/plugin.php
 
    if ( ! isset( $wp_filter[ $tag ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
    }
 
    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[ $tag ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Retrieve the number of times an action is fired.
 *
 * @since 2.1.0
 *
 * @global array $wp_actions Increments the amount of times action was triggered.
 *
 * @param string $tag The name of the action hook.
 * @return int The number of times action hook $tag is fired.
 */
function did_action( $tag ) {
    global $wp_actions;
 
    if ( ! isset( $wp_actions[ $tag ] ) ) {
        return 0;
    }
/var/www/staging/releases/20200416085901/public/wordpress/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 );
}
 
/**
 * Fire 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' );
}
 
/**
 * Fire 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' );
}
 
/**
 * Fire the wp_body_open action.
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Twig.php
        if ( is_array($arr) ) {
            return $arr;
        }
        $arr = array($arr);
        return $arr;
    }
 
    /**
     *
     *
     * @param string  $function_name
     * @return mixed
     */
    public function exec_function( $function_name ) {
        $args = func_get_args();
        array_shift($args);
        if ( is_string($function_name) ) {
            $function_name = trim($function_name);
        }
        return call_user_func_array($function_name, ($args));
    }
 
    /**
     *
     *
     * @param string  $content
     * @return string
     */
    public function twig_pretags( $content ) {
        return preg_replace_callback('|<pre.*>(.*)</pre|isU', array(&$this, 'convert_pre_entities'), $content);
    }
 
    /**
     *
     *
     * @param array   $matches
     * @return string
     */
    public function convert_pre_entities( $matches ) {
        return str_replace($matches[1], htmlentities($matches[1]), $matches[0]);
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Twig.php
        if ( is_array($arr) ) {
            return $arr;
        }
        $arr = array($arr);
        return $arr;
    }
 
    /**
     *
     *
     * @param string  $function_name
     * @return mixed
     */
    public function exec_function( $function_name ) {
        $args = func_get_args();
        array_shift($args);
        if ( is_string($function_name) ) {
            $function_name = trim($function_name);
        }
        return call_user_func_array($function_name, ($args));
    }
 
    /**
     *
     *
     * @param string  $content
     * @return string
     */
    public function twig_pretags( $content ) {
        return preg_replace_callback('|<pre.*>(.*)</pre|isU', array(&$this, 'convert_pre_entities'), $content);
    }
 
    /**
     *
     *
     * @param array   $matches
     * @return string
     */
    public function convert_pre_entities( $matches ) {
        return str_replace($matches[1], htmlentities($matches[1]), $matches[0]);
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php
                } else {
                    $source = $loader->getSourceContext($name);
                }
 
                $content = $this->compileSource($source);
 
                if ($this->bcWriteCacheFile) {
                    $this->writeCacheFile($key, $content);
                } else {
                    $this->cache->write($key, $content);
                    $this->cache->load($key);
                }
 
                if (!class_exists($mainCls, false)) {
                    /* Last line of defense if either $this->bcWriteCacheFile was used,
                     * $this->cache is implemented as a no-op or we have a race condition
                     * where the cache was cleared between the above calls to write to and load from
                     * the cache.
                     */
                    eval('?>'.$content);
                }
            }
 
            if (!class_exists($cls, false)) {
                throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
            }
        }
 
        if (!$this->runtimeInitialized) {
            $this->initRuntime();
        }
 
        return $this->loadedTemplates[$cls] = new $cls($this);
    }
 
    /**
     * Creates a template from source.
     *
     * This method should not be used as a generic way to load templates.
     *
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php
                } else {
                    $source = $loader->getSourceContext($name);
                }
 
                $content = $this->compileSource($source);
 
                if ($this->bcWriteCacheFile) {
                    $this->writeCacheFile($key, $content);
                } else {
                    $this->cache->write($key, $content);
                    $this->cache->load($key);
                }
 
                if (!class_exists($mainCls, false)) {
                    /* Last line of defense if either $this->bcWriteCacheFile was used,
                     * $this->cache is implemented as a no-op or we have a race condition
                     * where the cache was cleared between the above calls to write to and load from
                     * the cache.
                     */
                    eval('?>'.$content);
                }
            }
 
            if (!class_exists($cls, false)) {
                throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
            }
        }
 
        if (!$this->runtimeInitialized) {
            $this->initRuntime();
        }
 
        return $this->loadedTemplates[$cls] = new $cls($this);
    }
 
    /**
     * Creates a template from source.
     *
     * This method should not be used as a generic way to load templates.
     *
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php
 
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new \LogicException('A block must be a method on a \Twig\Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->getSourceContext());
                }
 
                // this is mostly useful for \Twig\Error\LoaderError exceptions
                // see \Twig\Error\LoaderError
                if (-1 === $e->getTemplateLine()) {
                    $e->guess();
                }
 
                throw $e;
            } catch (\Exception $e) {
                $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
                $e->guess();
 
                throw $e;
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php
                } else {
                    $source = $loader->getSourceContext($name);
                }
 
                $content = $this->compileSource($source);
 
                if ($this->bcWriteCacheFile) {
                    $this->writeCacheFile($key, $content);
                } else {
                    $this->cache->write($key, $content);
                    $this->cache->load($key);
                }
 
                if (!class_exists($mainCls, false)) {
                    /* Last line of defense if either $this->bcWriteCacheFile was used,
                     * $this->cache is implemented as a no-op or we have a race condition
                     * where the cache was cleared between the above calls to write to and load from
                     * the cache.
                     */
                    eval('?>'.$content);
                }
            }
 
            if (!class_exists($cls, false)) {
                throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
            }
        }
 
        if (!$this->runtimeInitialized) {
            $this->initRuntime();
        }
 
        return $this->loadedTemplates[$cls] = new $cls($this);
    }
 
    /**
     * Creates a template from source.
     *
     * This method should not be used as a generic way to load templates.
     *
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Environment.php
                } else {
                    $source = $loader->getSourceContext($name);
                }
 
                $content = $this->compileSource($source);
 
                if ($this->bcWriteCacheFile) {
                    $this->writeCacheFile($key, $content);
                } else {
                    $this->cache->write($key, $content);
                    $this->cache->load($key);
                }
 
                if (!class_exists($mainCls, false)) {
                    /* Last line of defense if either $this->bcWriteCacheFile was used,
                     * $this->cache is implemented as a no-op or we have a race condition
                     * where the cache was cleared between the above calls to write to and load from
                     * the cache.
                     */
                    eval('?>'.$content);
                }
            }
 
            if (!class_exists($cls, false)) {
                throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
            }
        }
 
        if (!$this->runtimeInitialized) {
            $this->initRuntime();
        }
 
        return $this->loadedTemplates[$cls] = new $cls($this);
    }
 
    /**
     * Creates a template from source.
     *
     * This method should not be used as a generic way to load templates.
     *
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/Template.php
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/vendor/twig/twig/src/TemplateWrapper.php
     * @internal
     */
    public function __construct(Environment $env, Template $template)
    {
        $this->env = $env;
        $this->template = $template;
    }
 
    /**
     * Renders the template.
     *
     * @param array $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     */
    public function render($context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
    }
 
    /**
     * Displays the template.
     *
     * @param array $context An array of parameters to pass to the template
     */
    public function display($context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        $this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
    }
 
    /**
     * Checks if a block is defined.
     *
     * @param string $name    The block name
     * @param array  $context An array of parameters to pass to the template
     *
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Loader.php
 
        $key = null;
        $output = false;
        if ( false !== $expires ) {
            ksort($data);
            $key = md5($file.json_encode($data));
            $output = $this->get_cache($key, self::CACHEGROUP, $cache_mode);
        }
 
        if ( false === $output || null === $output ) {
            $twig = $this->get_twig();
            if ( strlen($file) ) {
                $loader = $this->get_loader();
                $result = $loader->getCacheKey($file);
                do_action('timber_loader_render_file', $result);
            }
            $data = apply_filters('timber_loader_render_data', $data);
            $data = apply_filters('timber/loader/render_data', $data, $file);
            $template = $twig->load($file);
            $output = $template->render($data);
        }
 
        if ( false !== $output && false !== $expires && null !== $key ) {
            $this->delete_cache();
            $this->set_cache($key, $output, self::CACHEGROUP, $expires, $cache_mode);
        }
        $output = apply_filters('timber_output', $output);
        return apply_filters('timber/output', $output, $data, $file);
    }
 
    protected function delete_cache() {
        Cleaner::delete_transients();
    }
 
    /**
     * Get first existing template.
     *
     * @param array|string $templates  Name(s) of the Twig template(s) to choose from.
     * @return string|bool             Name of chosen template, otherwise false.
     */
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Timber.php
        if ( $via_render ) {
            $file = apply_filters('timber_render_file', $file);
        } else {
            $file = apply_filters('timber_compile_file', $file);
        }
 
        $output = false;
 
        if ($file !== false) {
            if ( is_null($data) ) {
                $data = array();
            }
 
            if ( $via_render ) {
                $data = apply_filters('timber_render_data', $data);
            } else {
                $data = apply_filters('timber_compile_data', $data);
            }
 
            $output = $loader->render($file, $data, $expires, $cache_mode);
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * $welcome = Timber::compile_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   Optional. An array of data to use in Twig template.
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Timber.php
        $twig = $dummy_loader->get_twig();
        $template = $twig->createTemplate($string);
        return $template->render($data);
    }
 
    /**
     * Fetch function.
     *
     * @api
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The returned output.
     */
    public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::compile($filenames, $data, $expires, $cache_mode, true);
        $output = apply_filters('timber_compile_result', $output);
        return $output;
    }
 
    /**
     * Render function.
     *
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
/var/www/staging/releases/20200416085901/public/content/plugins/timber-library/lib/Timber.php
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The echoed output.
     */
    public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::fetch($filenames, $data, $expires, $cache_mode);
        echo $output;
        return $output;
    }
 
    /**
     * Render a string with Twig variables.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   An array of data to use in Twig template.
     * @return bool|string
     */
/var/www/staging/releases/20200416085901/public/content/themes/in-theme/page.php
 * To generate specific templates for your pages you can use:
 * /mytheme/views/page-mypage.twig
 * (which will still route through this PHP file)
 * OR
 * /mytheme/page-mypage.php
 * (in which case you'll want to duplicate this file and save to the above path)
 *
 * Methods for TimberHelper can be found in the /lib sub-directory
 *
 * @package  WordPress
 * @subpackage  Timber
 * @since    Timber 0.1
 */
 
 
$context = Timber::context();
$post = new Timber\Post();
$context['post'] = $post;
 
Timber::render( array( 'page-' . $post->post_name . '.twig', 'page.twig' ), $context );
/var/www/staging/releases/20200416085901/public/wordpress/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;
}
 
/var/www/staging/releases/20200416085901/public/wordpress/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';
 
}
 
/var/www/staging/releases/20200416085901/public/index.php
<?php
 
//ini_set('display_errors', 1);
//ini_set('display_startup_errors', 1);
//error_reporting(E_ALL);
 
// WordPress view bootstrapper
define( 'WP_USE_THEMES', true );
 
 
// composer auto loader, symlinks all colliding, this should resolve the relative include paths correctly
//chdir( dirname ( realpath ( __FILE__ ) ) );
 
//require( '../vendor/autoload.php' );
require( './wordpress/wp-blog-header.php');

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE nginx/1.14.0
REQUEST_URI /cart/
USER www-data
HOME /var/www
HTTP_CONNECTION Keep-Alive
HTTP_HOST ecommerce.in.bonhill.pbc.io
HTTP_ACCEPT_ENCODING br,gzip
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
SCRIPT_FILENAME /var/www/staging/current/public/index.php
REDIRECT_STATUS 200
SERVER_NAME ecommerce.in.bonhill.pbc.io
SERVER_PORT 443
SERVER_ADDR 159.65.52.186
REMOTE_PORT 44880
REMOTE_ADDR 3.226.248.180
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /var/www/staging/current/public
DOCUMENT_URI /index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1601001532.1785
REQUEST_TIME 1601001532
PROJECT_NAME investmentnews
BOX_NAME geerlingguy/ubuntu1604
LOCAL_DIR /var/www
LOCAL_DOMAIN in-ecommerce.test
LOCAL_IP 192.168.42.45
STAGING_DIR /var/www/staging
STAGING_DOMAIN ecommerce.in.bonhill.pbc.io
THEME_DIR /var/www/staging
THEME_DOMAIN ecommerce-theme.in.bonhill.pbc.io
PRODUCTION_DIR /var/www/production
PRODUCTION_DOMAIN ecommerce.investmentnews.com
WP_ENV staging
DB_NAME ecommerce_proxied
DB_USER root
DB_PASSWORD root
DB_HOST localhost
FUSION_AUTH_APPLICATION_ID 6544615b-65ea-4c28-b8b1-f177a52a2441
FUSION_AUTH_API_KEY f0j6u9qnAK3WOS742crnR_wIeHPWthJRDYAcDMNyofo
FUSION_AUTH_API_DOMAIN https://bonhill-dev.fusionauth.io
DYNAMICS_SANDBOX_URL v2.0/QA/api/SeeLogicLtd/sales/v1.0
DYNAMICS_PRODUCTION_URL v1.0/api/SeeLogicLtd/sales/v1.0
DYNAMICS_TENANT_ID 6ae5dd27-b529-4363-87ae-ce17b5f56dc1
DYNAMICS_CLIENT_ID be6f8f5e-e095-4f0d-94f5-637362b2c743
DYNAMICS_CLIENT_SECRET [:FeCZL=h]BuWupQ9G4ttf13yMZWH6IJ
DYNAMICS_MODE production
PBCTEST_SECRET nZXs161IsUfO.0jpwsXhRjfzzDQQ:F==
FA_APP_ID 6544615b-65ea-4c28-b8b1-f177a52a2441
FA_URL https://bonhill-dev.fusionauth.io
FA_PROXY_URL https://meter.in.bonhill.pbc.io/api/
FA_COOKIE_DOMAIN //meter.in.bonhill.pbc.io
FA_DEFAULT_ROLE TEST:IN:REG
FUSION_AUTH_DEFAULT_ROLE TEST:IN:REG
FA_ROLE_REGISTERED TEST:IN:REG
FA_ROLE_PRINT TEST:IN:PRI
FA_ROLE_DIGITAL TEST:IN:DIG
FA_ROLE_DATA TEST:IN:DAS
SENTRY_DSN https://2e4cf5ed609746ffbdb7df1cd5ea5d90@sentry.io/1889843
SENTRY_ENV staging
Key Value
PROJECT_NAME investmentnews
BOX_NAME geerlingguy/ubuntu1604
LOCAL_DIR /var/www
LOCAL_DOMAIN in-ecommerce.test
LOCAL_IP 192.168.42.45
STAGING_DIR /var/www/staging
STAGING_DOMAIN ecommerce.in.bonhill.pbc.io
THEME_DIR /var/www/staging
THEME_DOMAIN ecommerce-theme.in.bonhill.pbc.io
PRODUCTION_DIR /var/www/production
PRODUCTION_DOMAIN ecommerce.investmentnews.com
WP_ENV staging
DB_NAME ecommerce_proxied
DB_USER root
DB_PASSWORD root
DB_HOST localhost
FUSION_AUTH_APPLICATION_ID 6544615b-65ea-4c28-b8b1-f177a52a2441
FUSION_AUTH_API_KEY f0j6u9qnAK3WOS742crnR_wIeHPWthJRDYAcDMNyofo
FUSION_AUTH_API_DOMAIN https://bonhill-dev.fusionauth.io
DYNAMICS_SANDBOX_URL v2.0/QA/api/SeeLogicLtd/sales/v1.0
DYNAMICS_PRODUCTION_URL v1.0/api/SeeLogicLtd/sales/v1.0
DYNAMICS_TENANT_ID 6ae5dd27-b529-4363-87ae-ce17b5f56dc1
DYNAMICS_CLIENT_ID be6f8f5e-e095-4f0d-94f5-637362b2c743
DYNAMICS_CLIENT_SECRET [:FeCZL=h]BuWupQ9G4ttf13yMZWH6IJ
DYNAMICS_MODE production
PBCTEST_SECRET nZXs161IsUfO.0jpwsXhRjfzzDQQ:F==
FA_APP_ID 6544615b-65ea-4c28-b8b1-f177a52a2441
FA_URL https://bonhill-dev.fusionauth.io
FA_PROXY_URL https://meter.in.bonhill.pbc.io/api/
FA_COOKIE_DOMAIN //meter.in.bonhill.pbc.io
FA_DEFAULT_ROLE TEST:IN:REG
FUSION_AUTH_DEFAULT_ROLE TEST:IN:REG
FA_ROLE_REGISTERED TEST:IN:REG
FA_ROLE_PRINT TEST:IN:PRI
FA_ROLE_DIGITAL TEST:IN:DIG
FA_ROLE_DATA TEST:IN:DAS
SENTRY_DSN https://2e4cf5ed609746ffbdb7df1cd5ea5d90@sentry.io/1889843
SENTRY_ENV staging
0. Whoops\Handler\PrettyPageHandler