PATH:
home
/
letacommog
/
rachat-or-bourgenbresse
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
conditionals
<?php namespace Yoast\WP\SEO\Conditionals; /** * Conditional that is only met when in the admin dashboard, update or Yoast SEO pages. */ class Yoast_Admin_And_Dashboard_Conditional implements Conditional { /** * @inheritDoc */ public function is_met() { global $pagenow; // Do not output on plugin / theme upgrade pages or when WordPress is upgrading. if ( ( \defined( 'IFRAME_REQUEST' ) && \IFRAME_REQUEST ) || $this->on_upgrade_page() || \wp_installing() ) { return false; } if ( $pagenow === 'admin.php' && isset( $_GET['page'] ) && \strpos( $_GET['page'], 'wpseo' ) === 0 ) { return true; } $target_pages = [ 'index.php', 'plugins.php', 'update-core.php', 'options-permalink.php', ]; return \in_array( $pagenow, $target_pages, true ); } /** * Checks if we are on a theme or plugin upgrade page. * * @return bool Whether we are on a theme or plugin upgrade page. */ private function on_upgrade_page() { /* * IFRAME_REQUEST is not defined on these pages, * though these action pages do show when upgrading themes or plugins. */ $actions = [ 'do-theme-upgrade', 'do-plugin-upgrade', 'do-core-upgrade', 'do-core-reinstall' ]; return isset( $_GET['action'] ) && \in_array( $_GET['action'], $actions, true ); } }
[+]
..
[+]
admin
[-] should-index-links-conditional.php
[edit]
[-] conditional-interface.php
[edit]
[-] admin-conditional.php
[edit]
[-] feature-flag-conditional.php
[edit]
[-] headless-rest-endpoints-enabled-conditional.php
[edit]
[-] front-end-conditional.php
[edit]
[-] wpml-conditional.php
[edit]
[-] yoast-admin-and-dashboard-conditional.php
[edit]
[-] jetpack-conditional.php
[edit]
[-] no-conditionals-trait.php
[edit]
[-] development-conditional.php
[edit]
[-] migrations-conditional.php
[edit]
[-] woocommerce-conditional.php
[edit]
[-] .htaccess
[edit]
[-] open-graph-conditional.php
[edit]
[-] xmlrpc-conditional.php
[edit]
[-] web-stories-conditional.php
[edit]
[-] primary-category-conditional.php
[edit]
[-] get-request-conditional.php
[edit]
[-] breadcrumbs-enabled-conditional.php
[edit]
[-] yoast-tools-page-conditional.php
[edit]