PATH:
home
/
lab2454c
/
adenbic.com
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
integrations
/
admin
<?php namespace Yoast\WP\SEO\Integrations\Admin; use Yoast\WP\SEO\Conditionals\Admin_Conditional; use Yoast\WP\SEO\Helpers\Redirect_Helper; use Yoast\WP\SEO\Integrations\Integration_Interface; /** * Class Redirect_Integration. */ class Redirect_Integration implements Integration_Interface { /** * The redirect helper. * * @var Redirect_Helper */ private $redirect; /** * Sets the helpers. * * @param Redirect_Helper $redirect The redirect helper. */ public function __construct( Redirect_Helper $redirect ) { $this->redirect = $redirect; } /** * Returns the conditionals based in which this loadable should be active. * * @return array */ public static function get_conditionals() { return [ Admin_Conditional::class ]; } /** * Initializes the integration. * * This is the place to register hooks and filters. * * @return void */ public function register_hooks() { \add_action( 'wp_loaded', [ $this, 'old_settings_redirect' ] ); } /** * Redirect to new settings URLs. We're adding this, so that not-updated add-ons don't point to non-existent pages. * * @return void */ public function old_settings_redirect() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. if ( ! isset( $_GET['page'] ) ) { return; } // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. $current_page = \sanitize_text_field( \wp_unslash( $_GET['page'] ) ); switch ( $current_page ) { case 'wpseo_titles': $this->redirect->do_safe_redirect( \admin_url( 'admin.php?page=wpseo_page_settings#/site-representation' ), 301 ); return; default: return; } } }
[-] redirect-integration.php
[edit]
[-] admin-columns-cache-integration.php
[edit]
[-] indexables-exclude-taxonomy-integration.php
[edit]
[-] migration-error-integration.php
[edit]
[-] indexing-notification-integration.php
[edit]
[-] disable-concatenate-scripts-integration.php
[edit]
[+]
..
[-] import-integration.php
[edit]
[-] redirects-page-integration.php
[edit]
[-] background-indexing-integration.php
[edit]
[+]
addon-installation
[-] crawl-settings-integration.php
[edit]
[-] first-time-configuration-notice-integration.php
[edit]
[-] health-check-integration.php
[edit]
[-] helpscout-beacon.php
[edit]
[-] cron-integration.php
[edit]
[-] old-configuration-integration.php
[edit]
[-] indexing-tool-integration.php
[edit]
[-] fix-news-dependencies-integration.php
[edit]
[-] menu-badge-integration.php
[edit]
[-] activation-cleanup-integration.php
[edit]
[-] integrations-page.php
[edit]
[-] installation-success-integration.php
[edit]
[-] workouts-integration.php
[edit]
[-] first-time-configuration-integration.php
[edit]
[-] link-count-columns-integration.php
[edit]
[-] deactivated-premium-integration.php
[edit]