X7ROOT File Manager
Current Path:
/home/notabjze/tailoredplastiq.com/wp-content/plugins/wordpress-seo/admin
home
/
notabjze
/
tailoredplastiq.com
/
wp-content
/
plugins
/
wordpress-seo
/
admin
/
ðŸ“
..
📄
admin-settings-changed-listener.php
(2.39 KB)
ðŸ“
ajax
📄
ajax.php
(11.25 KB)
ðŸ“
capabilities
📄
class-admin-asset-analysis-worker-location.php
(1.81 KB)
📄
class-admin-asset-dev-server-location.php
(1.63 KB)
📄
class-admin-asset-location.php
(488 B)
📄
class-admin-asset-manager.php
(19.68 KB)
📄
class-admin-asset-seo-location.php
(2.08 KB)
📄
class-admin-editor-specific-replace-vars.php
(6.34 KB)
📄
class-admin-gutenberg-compatibility-notification.php
(2.55 KB)
📄
class-admin-help-panel.php
(2.7 KB)
📄
class-admin-init.php
(10.71 KB)
📄
class-admin-recommended-replace-vars.php
(5.98 KB)
📄
class-admin-user-profile.php
(3.25 KB)
📄
class-admin-utils.php
(2.14 KB)
📄
class-admin.php
(13.13 KB)
📄
class-asset.php
(4.3 KB)
📄
class-bulk-description-editor-list-table.php
(2.05 KB)
📄
class-bulk-editor-list-table.php
(29.41 KB)
📄
class-bulk-title-editor-list-table.php
(2.23 KB)
📄
class-collector.php
(1005 B)
📄
class-config.php
(5.08 KB)
📄
class-database-proxy.php
(7.5 KB)
📄
class-export.php
(3.46 KB)
📄
class-expose-shortlinks.php
(8.23 KB)
📄
class-gutenberg-compatibility.php
(2.47 KB)
📄
class-meta-columns.php
(27.3 KB)
📄
class-my-yoast-proxy.php
(6.14 KB)
📄
class-option-tab.php
(2.21 KB)
📄
class-option-tabs-formatter.php
(2.84 KB)
📄
class-option-tabs.php
(2.26 KB)
📄
class-paper-presenter.php
(3.52 KB)
📄
class-plugin-availability.php
(10.06 KB)
📄
class-plugin-conflict.php
(4.04 KB)
📄
class-premium-popup.php
(2.81 KB)
📄
class-premium-upsell-admin-block.php
(5.11 KB)
📄
class-primary-term-admin.php
(7.35 KB)
📄
class-product-upsell-notice.php
(5.75 KB)
📄
class-remote-request.php
(3.13 KB)
📄
class-schema-person-upgrade-notification.php
(2.23 KB)
📄
class-suggested-plugins.php
(4.33 KB)
📄
class-wincher-dashboard-widget.php
(3.53 KB)
📄
class-yoast-columns.php
(3.52 KB)
📄
class-yoast-dashboard-widget.php
(3.96 KB)
📄
class-yoast-form.php
(35.74 KB)
📄
class-yoast-input-validation.php
(7.2 KB)
📄
class-yoast-network-admin.php
(9.97 KB)
📄
class-yoast-network-settings-api.php
(4.18 KB)
📄
class-yoast-notification-center.php
(26.06 KB)
📄
class-yoast-notification.php
(9.82 KB)
📄
class-yoast-notifications.php
(7.63 KB)
📄
class-yoast-plugin-conflict.php
(10.33 KB)
ðŸ“
endpoints
ðŸ“
exceptions
ðŸ“
filters
ðŸ“
formatter
ðŸ“
google_search_console
ðŸ“
import
📄
index.php
(38 B)
📄
interface-collection.php
(257 B)
📄
interface-installable.php
(254 B)
ðŸ“
listeners
ðŸ“
menu
ðŸ“
metabox
ðŸ“
notifiers
ðŸ“
pages
ðŸ“
roles
ðŸ“
services
ðŸ“
statistics
ðŸ“
taxonomy
ðŸ“
tracking
ðŸ“
views
ðŸ“
watchers
Editing: class-config.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin */ use Yoast\WP\SEO\Actions\Alert_Dismissal_Action; use Yoast\WP\SEO\General\User_Interface\General_Page_Integration; use Yoast\WP\SEO\Integrations\Academy_Integration; use Yoast\WP\SEO\Integrations\Settings_Integration; use Yoast\WP\SEO\Integrations\Support_Integration; use Yoast\WP\SEO\Promotions\Application\Promotion_Manager; /** * Class WPSEO_Admin_Pages. * * Class with functionality for the Yoast SEO admin pages. */ class WPSEO_Admin_Pages { /** * The option in use for the current admin page. * * @var string */ public $currentoption = 'wpseo'; /** * Holds the asset manager. * * @var WPSEO_Admin_Asset_Manager */ private $asset_manager; /** * Class constructor, which basically only hooks the init function on the init hook. */ public function __construct() { add_action( 'init', [ $this, 'init' ], 20 ); $this->asset_manager = new WPSEO_Admin_Asset_Manager(); } /** * Make sure the needed scripts are loaded for admin pages. * * @return void */ public function init() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. $page = isset( $_GET['page'] ) && is_string( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; // Don't load the scripts for the following pages. $page_exceptions = in_array( $page, [ Settings_Integration::PAGE, Academy_Integration::PAGE, Support_Integration::PAGE ], true ); $new_dashboard_page = ( $page === General_Page_Integration::PAGE && ! is_network_admin() ); if ( $page_exceptions || $new_dashboard_page ) { // Bail, this is managed in the applicable integration. return; } add_action( 'admin_enqueue_scripts', [ $this, 'config_page_scripts' ] ); add_action( 'admin_enqueue_scripts', [ $this, 'config_page_styles' ] ); } /** * Loads the required styles for the config page. * * @return void */ public function config_page_styles() { wp_enqueue_style( 'dashboard' ); wp_enqueue_style( 'thickbox' ); wp_enqueue_style( 'global' ); wp_enqueue_style( 'wp-admin' ); $this->asset_manager->enqueue_style( 'admin-css' ); $this->asset_manager->enqueue_style( 'monorepo' ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. $page = isset( $_GET['page'] ) && is_string( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; if ( $page === 'wpseo_licenses' ) { $this->asset_manager->enqueue_style( 'tailwind' ); } } /** * Loads the required scripts for the config page. * * @return void */ public function config_page_scripts() { $this->asset_manager->enqueue_script( 'settings' ); wp_enqueue_script( 'dashboard' ); wp_enqueue_script( 'thickbox' ); $alert_dismissal_action = YoastSEO()->classes->get( Alert_Dismissal_Action::class ); $dismissed_alerts = $alert_dismissal_action->all_dismissed(); $script_data = [ 'dismissedAlerts' => $dismissed_alerts, 'isRtl' => is_rtl(), 'isPremium' => YoastSEO()->helpers->product->is_premium(), 'currentPromotions' => YoastSEO()->classes->get( Promotion_Manager::class )->get_current_promotions(), 'webinarIntroFirstTimeConfigUrl' => $this->get_webinar_shortlink(), 'linkParams' => WPSEO_Shortlinker::get_query_params(), 'pluginUrl' => plugins_url( '', WPSEO_FILE ), ]; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. $page = isset( $_GET['page'] ) && is_string( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; if ( in_array( $page, [ WPSEO_Admin::PAGE_IDENTIFIER, 'wpseo_workouts' ], true ) ) { wp_enqueue_media(); $script_data['userEditUrl'] = add_query_arg( 'user_id', '{user_id}', admin_url( 'user-edit.php' ) ); } if ( $page === 'wpseo_tools' ) { $this->enqueue_tools_scripts(); } $this->asset_manager->localize_script( 'settings', 'wpseoScriptData', $script_data ); $this->asset_manager->enqueue_user_language_script(); } /** * Enqueues and handles all the tool dependencies. * * @return void */ private function enqueue_tools_scripts() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. $tool = isset( $_GET['tool'] ) && is_string( $_GET['tool'] ) ? sanitize_text_field( wp_unslash( $_GET['tool'] ) ) : ''; if ( empty( $tool ) ) { $this->asset_manager->enqueue_script( 'yoast-seo' ); } if ( $tool === 'bulk-editor' ) { $this->asset_manager->enqueue_script( 'bulk-editor' ); } } /** * Returns the appropriate shortlink for the Webinar. * * @return string The shortlink for the Webinar. */ private function get_webinar_shortlink() { if ( YoastSEO()->helpers->product->is_premium() ) { return WPSEO_Shortlinker::get( 'https://yoa.st/webinar-intro-first-time-config-premium' ); } return WPSEO_Shortlinker::get( 'https://yoa.st/webinar-intro-first-time-config' ); } }
Upload File
Create Folder