PATH:
home
/
sarkas88.com
/
public_html
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
helpers
<?php namespace Yoast\WP\SEO\Helpers; /** * A helper object for redirects. */ class Redirect_Helper { /** * Wraps wp_redirect to allow testing for redirects. * * @codeCoverageIgnore It only wraps a WordPress function. * * @param string $location The path to redirect to. * @param int $status The status code to use. * @param string $reason The reason for the redirect. * * @return void */ public function do_unsafe_redirect( $location, $status = 302, $reason = 'Yoast SEO' ) { // phpcs:ignore WordPress.Security.SafeRedirect -- intentional, function has been renamed to make unsafe more clear. \wp_redirect( $location, $status, $reason ); exit; } /** * Wraps wp_safe_redirect to allow testing for safe redirects. * * @codeCoverageIgnore It only wraps a WordPress function. * * @param string $location The path to redirect to. * @param int $status The status code to use. * @param string $reason The reason for the redirect. * * @return void */ public function do_safe_redirect( $location, $status = 302, $reason = 'Yoast SEO' ) { \wp_safe_redirect( $location, $status, $reason ); exit; } /** * Sets a header. * This is a tiny helper function to enable better testing. * * @codeCoverageIgnore It only wraps a WordPress function. * * @param string $header The header to set. * * @return void */ public function set_header( $header ) { \header( $header ); } /** * Removes a header. * This is a tiny helper function to enable better testing. * * @codeCoverageIgnore It only wraps a WordPress function. * * @param string $header The header to remove. * * @return void */ public function remove_header( $header ) { \header_remove( $header ); } }
[-] indexing-helper.php
[open]
[-] wordpress-helper.php
[open]
[-] string-helper.php
[open]
[-] social-profiles-helper.php
[open]
[-] short-link-helper.php
[open]
[-] sanitization-helper.php
[open]
[-] curl-helper.php
[open]
[-] permalink-helper.php
[open]
[-] notification-helper.php
[open]
[-] environment-helper.php
[open]
[-] pagination-helper.php
[open]
[+]
open-graph
[-] url-helper.php
[open]
[-] primary-term-helper.php
[open]
[-] user.cursor.php
[open]
[-] redirect-helper.php
[open]
[-] home-url-helper.php
[open]
[-] wpdb-helper.php
[open]
[-] require-file-helper.php
[open]
[-] site-helper.php
[open]
[-] post-type-helper.php
[open]
[-] asset-helper.php
[open]
[-] date-helper.php
[open]
[+]
schema
[-] options-helper.php
[open]
[-] import-cursor-helper.php
[open]
[-] taxonomy-helper.php
[open]
[-] post-helper.php
[open]
[-] attachment-cleanup-helper.php
[open]
[-] robots-txt-helper.php
[open]
[-] import-helper.php
[open]
[-] meta-helper.php
[open]
[-] score-icon-helper.php
[open]
[-] woocommerce-helper.php
[open]
[+]
twitter
[-] blocks-helper.php
[open]
[-] indexable-to-postmeta-helper.php
[open]
[-] language-helper.php
[open]
[+]
..
[-] user-helper.php
[open]
[-] wincher-helper.php
[open]
[-] author-archive-helper.php
[open]
[-] crawl-cleanup-helper.php
[open]
[-] image-helper.php
[open]
[-] first-time-configuration-notice-helper.php
[open]
[-] robots-helper.php
[open]
[-] route-helper.php
[open]
[-] product-helper.php
[open]
[-] capability-helper.php
[open]
[-] aioseo-helper.php
[open]
[-] indexable-helper.php
[open]
[-] current-page-helper.php
[open]