PATH:
home
/
letacommog
/
latelier-beaute
/
wp-content
/
plugins
/
wordpress-seo
/
admin
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\Links */ /** * Represents the state of the table being accessible. */ class WPSEO_Meta_Table_Accessible { const ACCESSIBLE = '0'; const INACCESSBILE = '1'; /** * Checks if the given table name exists. * * @return bool True when table is accessible. */ public static function is_accessible() { $value = get_transient( self::transient_name() ); // If the value is not set, check the table. if ( false === $value ) { return self::check_table(); } return $value === self::ACCESSIBLE; } /** * Sets the transient value to 1, to indicate the table is not accessible. * * @return void */ public static function set_inaccessible() { set_transient( self::transient_name(), self::INACCESSBILE, HOUR_IN_SECONDS ); } /** * Removes the transient. * * @return void */ public static function cleanup() { delete_transient( self::transient_name() ); } /** * Sets the transient value to 0, to indicate the table is accessible. * * @return void */ protected static function set_accessible() { /* * Prefer to set a 0 timeout, but if the timeout was set before WordPress will not delete the transient * correctly when overridden with a zero value. * * Setting a YEAR_IN_SECONDS instead. */ set_transient( self::transient_name(), self::ACCESSIBLE, YEAR_IN_SECONDS ); } /** * Checks if the table exists if not, set the transient to indicate the inaccessible table. * * @return bool True if table is accessible. */ protected static function check_table() { global $wpdb; $storage = new WPSEO_Meta_Storage(); $query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $storage->get_table_name() ); if ( $wpdb->get_var( $query ) !== $storage->get_table_name() ) { self::set_inaccessible(); return false; } self::set_accessible(); return true; } /** * Returns the name of the transient. * * @return string The name of the transient to use. */ protected static function transient_name() { return 'wpseo_meta_table_inaccessible'; } /** * Checks if the table exists if not, set the transient to indicate the inaccessible table. * * @deprecated 6.0 * * @return bool True if table is accessible. */ public static function check_table_is_accessible() { _deprecated_function( __FUNCTION__, '6.0', __CLASS__ . '::is_accessible' ); return self::is_accessible(); } }
[+]
..
[-] class-yoast-network-settings-api.php
[edit]
[-] class-admin-gutenberg-compatibility-notification.php
[edit]
[-] class-meta-storage.php
[edit]
[-] class-yoast-alerts.php
[edit]
[-] class-primary-term-admin.php
[edit]
[-] class-plugin-conflict.php
[edit]
[-] class-plugin-compatibility.php
[edit]
[+]
metabox
[+]
notifiers
[-] class-export.php
[edit]
[-] class-premium-popup.php
[edit]
[+]
config-ui
[+]
watchers
[-] ajax.php
[edit]
[-] class-asset.php
[edit]
[-] class-suggested-plugins.php
[edit]
[-] class-remote-request.php
[edit]
[-] class-premium-upsell-admin-block.php
[edit]
[+]
statistics
[+]
taxonomy
[-] class-add-keyword-modal.php
[edit]
[-] class-help-center-item.php
[edit]
[+]
formatter
[-] interface-collection.php
[edit]
[-] class-product-upsell-notice.php
[edit]
[-] class-admin-asset-manager.php
[edit]
[-] class-yoast-notification.php
[edit]
[-] class-yoast-modal.php
[edit]
[-] class-extension.php
[edit]
[-] class-bulk-editor-list-table.php
[edit]
[-] class-admin-asset-dev-server-location.php
[edit]
[-] class-database-proxy.php
[edit]
[-] class-admin-user-profile.php
[edit]
[-] class-option-tabs.php
[edit]
[-] class-yoast-network-admin.php
[edit]
[-] index.php
[edit]
[+]
links
[+]
onpage
[-] class-yoast-form.php
[edit]
[-] class-admin-asset-analysis-worker-location.php
[edit]
[-] class-extensions.php
[edit]
[+]
help_center
[-] class-bulk-description-editor-list-table.php
[edit]
[-] class-plugin-availability.php
[edit]
[-] class-admin-media-purge-notification.php
[edit]
[+]
tracking
[-] class-help-center.php
[edit]
[-] class-admin-recommended-replace-vars.php
[edit]
[-] class-yoast-notification-center.php
[edit]
[+]
roles
[-] class-admin-help-panel.php
[edit]
[+]
menu
[-] class-admin.php
[edit]
[-] class-yoast-columns.php
[edit]
[+]
services
[-] class-gutenberg-compatibility.php
[edit]
[-] class-admin-asset-seo-location.php
[edit]
[+]
recalculate
[-] interface-installable.php
[edit]
[-] class-config.php
[edit]
[-] class-keyword-synonyms-modal.php
[edit]
[-] class-social-admin.php
[edit]
[-] class-admin-editor-specific-replace-vars.php
[edit]
[-] class-yoast-dashboard-widget.php
[edit]
[+]
endpoints
[-] class-admin-utils.php
[edit]
[-] class-cornerstone.php
[edit]
[-] class-option-tabs-formatter.php
[edit]
[+]
filters
[+]
pages
[-] class-meta-columns.php
[edit]
[-] class-customizer.php
[edit]
[-] class-recalculate-scores.php
[edit]
[-] class-paper-presenter.php
[edit]
[-] class-option-tab.php
[edit]
[+]
google_search_console
[+]
import
[+]
ajax
[+]
capabilities
[-] class-admin-init.php
[edit]
[+]
listeners
[-] class-admin-asset-yoast-components-l10n.php
[edit]
[-] class-yoast-plugin-conflict.php
[edit]
[-] class-extension-manager.php
[edit]
[-] class-expose-shortlinks.php
[edit]
[-] class-admin-asset-location.php
[edit]
[-] class-license-page-manager.php
[edit]
[-] class-bulk-title-editor-list-table.php
[edit]
[+]
views
[-] class-meta-table-accessible.php
[edit]
[-] class-multiple-keywords-modal.php
[edit]
[-] class-collector.php
[edit]