PDF rausgenommen
This commit is contained in:
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin\ConfigurationUI
|
||||
*/
|
||||
|
||||
_deprecated_file( __FILE__, 'WPSEO 10.1' );
|
||||
|
||||
/**
|
||||
* Class WPSEO_Config_Field_Profile_URL_GooglePlus.
|
||||
*
|
||||
* @deprecated 10.1
|
||||
*/
|
||||
class WPSEO_Config_Field_Profile_URL_GooglePlus extends WPSEO_Config_Field {
|
||||
|
||||
/**
|
||||
* WPSEO_Config_Field_Profile_URL_GooglePlus constructor.
|
||||
*
|
||||
* @deprecated 10.1
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_constructor( 'WPSEO_Config_Field_Profile_URL_GooglePlus', '10.1' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets adapter.
|
||||
*
|
||||
* @deprecated 10.1
|
||||
*
|
||||
* @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) {
|
||||
_deprecated_function( __METHOD__, '10.1' );
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents the yoast cornerstone content.
|
||||
*
|
||||
* @deprecated 8.4
|
||||
*/
|
||||
class WPSEO_Cornerstone {
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
const META_NAME = 'is_cornerstone';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
const FIELD_NAME = 'yoast_wpseo_is_cornerstone';
|
||||
|
||||
/**
|
||||
* WPSEO_Cornerstone constructor.
|
||||
*
|
||||
* @deprecated 8.4
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_constructor( 'WPSEO_Cornerstone', '8.4' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers the hooks.
|
||||
*
|
||||
* @deprecated 8.4
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_hooks() {
|
||||
_deprecated_function( 'WPSEO_Cornerstone::register_hooks', '8.4' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves the meta value to the database.
|
||||
*
|
||||
* @deprecated 8.4
|
||||
*
|
||||
* @param int $post_id The post id to save the meta value for.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function save_meta_value( $post_id ) {
|
||||
_deprecated_function( 'WPSEO_Cornerstone::save_meta_value', '8.4' );
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin\Notifiers
|
||||
*/
|
||||
|
||||
_deprecated_file( __FILE__, 'WPSEO 9.6' );
|
||||
|
||||
/**
|
||||
* Represents the logic for showing recalibration beta notice.
|
||||
*
|
||||
* @codeCoverageIgnore Ignore, because this class has been deprecated.
|
||||
*
|
||||
* @deprecated 9.6
|
||||
*/
|
||||
class WPSEO_Recalibration_Beta_Notification implements WPSEO_WordPress_Integration {
|
||||
|
||||
/**
|
||||
* The name of the notifiers.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $notification_identifier = 'recalibration-meta-notification';
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @deprecated 9.6
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_constructor( 'WPSEO_Recalibration_Beta_Notification', 'WPSEO 9.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers all hooks to WordPress.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_hooks() {
|
||||
// Do nothing.
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the notification when applicable.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle_notice() {
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
@ -0,0 +1,248 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin
|
||||
* @since 9.3.0
|
||||
*/
|
||||
|
||||
// Mark this file as deprecated.
|
||||
_deprecated_file( __FILE__, 'WPSEO 10.0' );
|
||||
|
||||
/**
|
||||
* Holds the logic for the recalibration beta.
|
||||
*
|
||||
* @codeCoverageIgnore Ignore, because this class has been deprecated.
|
||||
*
|
||||
* @deprecated 10.0
|
||||
*/
|
||||
class WPSEO_Recalibration_Beta implements WPSEO_WordPress_Integration {
|
||||
|
||||
/**
|
||||
* Name of the options.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $option_name = 'recalibration_beta';
|
||||
|
||||
/**
|
||||
* The read more URL.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $read_more_url = 'https://yoa.st/recalibration-beta-explanation';
|
||||
|
||||
/**
|
||||
* The class constructor.
|
||||
*
|
||||
* @deprecated 10.0
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_constructor( 'WPSEO_Recalibration_Beta', 'WPSEO 10.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the feature toggle.
|
||||
*
|
||||
* @codeCoverageIgnore Reason: most output is html.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function show_feature_toggle() {
|
||||
// If the recalibration beta has been disabled you will no longer be able to enable it.
|
||||
// See https://github.com/Yoast/wordpress-seo/issues/12183.
|
||||
if ( ! self::is_enabled() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$values = array(
|
||||
'on' => __( 'On', 'wordpress-seo' ),
|
||||
'off' => __( 'Off', 'wordpress-seo' ),
|
||||
);
|
||||
|
||||
echo '<div class="switch-container">';
|
||||
echo '<fieldset id="', esc_attr( $this->option_name ), '" class="fieldset-switch-toggle">';
|
||||
echo '<legend><strong>', esc_html__( 'Get an even better analysis', 'wordpress-seo' ), '</strong></legend>';
|
||||
echo '<p class="clear">';
|
||||
printf(
|
||||
/* translators: 1: link opening tag, 2: link closing tag, 3: strong opening tag, 4: strong closing tag */
|
||||
esc_html__(
|
||||
'We have %1$srecalibrated our analysis%2$s. With the new analysis, we will get even closer to how Google sees your website. It would be %3$sawesome%4$s if you would like to %3$sbeta test this feature%4$s for us!',
|
||||
'wordpress-seo'
|
||||
),
|
||||
'<a href="' . esc_url( WPSEO_Shortlinker::get( $this->read_more_url ) ) . '" target="_blank">',
|
||||
'</a>',
|
||||
'<strong>',
|
||||
'</strong>'
|
||||
);
|
||||
echo '</p>';
|
||||
|
||||
echo '<div class="switch-toggle switch-candy switch-yoast-seo">';
|
||||
|
||||
foreach ( $values as $key => $value ) {
|
||||
printf(
|
||||
'<input type="radio" id="%1$s" name="%2$s" value="%3$s" %4$s /><label for="%1$s">%5$s</label>',
|
||||
esc_attr( $this->option_name . '-' . $key ),
|
||||
'wpseo[' . esc_attr( $this->option_name ) . ']',
|
||||
esc_attr( $key ),
|
||||
checked( $this->get_option_value( self::is_enabled() ), esc_attr( $key ), false ),
|
||||
esc_html( $value )
|
||||
);
|
||||
}
|
||||
echo '<a></a></div>';
|
||||
|
||||
echo '<p class="clear"><br/>';
|
||||
esc_html_e(
|
||||
'Simply switch the toggle to "on" and you\'ll be able to use the recalibrated analysis. At the same time, we\'ll add you to our specific mailing list. We\'ll only email you about your experiences with this recalibration!',
|
||||
'wordpress-seo'
|
||||
);
|
||||
echo '</p>';
|
||||
echo '</fieldset><div class="clear"></div></div>' . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers the hook to catch option change.
|
||||
*
|
||||
* @codeCoverageIgnore Reason: because it calls a WordPress function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_hooks() {
|
||||
add_action( 'update_option_wpseo', array( $this, 'update_option' ), 10, 2 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares the logic between old and new option value and send the request.
|
||||
*
|
||||
* @param mixed $old_value The old option value.
|
||||
* @param mixed $new_value The new option value.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function update_option( $old_value, $new_value ) {
|
||||
$old_option_value = false;
|
||||
if ( isset( $old_value[ $this->option_name ] ) ) {
|
||||
$old_option_value = $old_value[ $this->option_name ];
|
||||
}
|
||||
|
||||
$new_option_value = false;
|
||||
if ( isset( $new_value[ $this->option_name ] ) ) {
|
||||
$new_option_value = $new_value[ $this->option_name ];
|
||||
}
|
||||
|
||||
if ( $old_option_value === $new_option_value ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( $new_option_value === true ) {
|
||||
$this->subscribe_newsletter();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the recalibration beta has been enabled.
|
||||
*
|
||||
* @codeCoverageIgnore Reason: It calls a dependency.
|
||||
*
|
||||
* @return bool True whether the beta has been enabled.
|
||||
*/
|
||||
public static function is_enabled() {
|
||||
return WPSEO_Options::get( 'recalibration_beta' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the user has a mailinglist subscription.
|
||||
*
|
||||
* @codeCoverageIgnore Reason: because it calls a WordPress function.
|
||||
*
|
||||
* The mailinglist subscription value will set to true when the beta is set
|
||||
* to enabled. This value stays true, so it's a good indicator that the user
|
||||
* tried the beta.
|
||||
*
|
||||
* @return bool True whether the user has a subscription.
|
||||
*/
|
||||
public function has_mailinglist_subscription() {
|
||||
return (bool) get_option( 'wpseo_recalibration_beta_mailinglist_subscription', false );
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the option value based on the current setting.
|
||||
*
|
||||
* @param bool $is_enabled Is the option enabled.
|
||||
*
|
||||
* @return string On when is enabled, off when not.
|
||||
*/
|
||||
protected function get_option_value( $is_enabled ) {
|
||||
if ( $is_enabled === true ) {
|
||||
return 'on';
|
||||
}
|
||||
|
||||
return 'off';
|
||||
}
|
||||
|
||||
/**
|
||||
* Subscribes to the newsletter.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function subscribe_newsletter() {
|
||||
if ( $this->has_mailinglist_subscription() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
$this->do_request(
|
||||
'https://my.yoast.com/api/customers/newsletter/recalibration/subscribe',
|
||||
array(
|
||||
'email' => get_option( 'admin_email' ),
|
||||
'firstName' => get_option( 'blogname' ),
|
||||
'lastName' => '',
|
||||
)
|
||||
);
|
||||
|
||||
$this->set_mailinglist_subscription();
|
||||
}
|
||||
catch ( Requests_Exception_HTTP $e ) {
|
||||
// Intentionally left blank. @todo We should offer this to a logger.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs a request to the given url.
|
||||
*
|
||||
* @codeCoverageIgnore Reason: because it contains WordPress functions.
|
||||
*
|
||||
* @param string $url The request url.
|
||||
* @param array $body The request body.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws Requests_Exception_HTTP When request has failed.
|
||||
*/
|
||||
protected function do_request( $url, $body ) {
|
||||
$response = wp_remote_post(
|
||||
$url,
|
||||
array(
|
||||
'body' => $body,
|
||||
)
|
||||
);
|
||||
|
||||
if ( is_wp_error( $response ) ) {
|
||||
throw new Requests_Exception_HTTP( $response->get_error_message() );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the mailing list subscription value to true.
|
||||
*
|
||||
* @codeCoverageIgnore Reason: because it calls a WordPress function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function set_mailinglist_subscription() {
|
||||
update_option( 'wpseo_recalibration_beta_mailinglist_subscription', true );
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin\Menu
|
||||
*/
|
||||
|
||||
// Mark this file as deprecated.
|
||||
_deprecated_file( __FILE__, 'WPSEO 7.0' );
|
||||
|
||||
/**
|
||||
* Hides submenu items if the advanced settings are not enabled.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*/
|
||||
class WPSEO_Submenu_Hider {
|
||||
|
||||
/**
|
||||
* Registers all hooks to WordPress.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_hooks() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters all advanced settings pages from the given pages.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function filter_settings_pages() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO
|
||||
* @subpackage Internal
|
||||
*/
|
||||
|
||||
// Mark this file as deprecated.
|
||||
_deprecated_file( __FILE__, 'WPSEO 7.0' );
|
||||
|
||||
/**
|
||||
* Class containing methods for WPSEO Advanced Settings.
|
||||
*/
|
||||
class WPSEO_Advanced_Settings {
|
||||
|
||||
/**
|
||||
* Gets the list of default advanced pages.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function get_advanced_pages() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a page as an advanced settings page if it isn't already present or a default page.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function add_advanced_page() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the current page is a Yoast SEO advanced settings page.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function is_advanced_settings_page() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Internals\Options
|
||||
*/
|
||||
|
||||
// Mark this file as deprecated.
|
||||
_deprecated_file( __FILE__, 'WPSEO 7.0' );
|
||||
|
||||
/**
|
||||
* Option: wpseo_internallinks.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*/
|
||||
class WPSEO_Option_InternalLinks {
|
||||
|
||||
/**
|
||||
* Option name.
|
||||
*
|
||||
* @var string
|
||||
* @deprecated 7.0
|
||||
*/
|
||||
public $option_name = '';
|
||||
|
||||
/**
|
||||
* Catch all other calls to this deprecated class.
|
||||
*
|
||||
* @param string $method The method to 'call'.
|
||||
* @param array $args Possibly given arguments.
|
||||
*/
|
||||
public function __call( $method, array $args = array() ) {
|
||||
_deprecated_function( $method, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the singleton instance of this class.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function get_instance() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Translate strings used in the option defaults.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function translate_defaults() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Add dynamically created default options based on available post types and taxonomies.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function enrich_defaults() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* With the changes to v1.5, the defaults for some of the textual breadcrumb settings are added
|
||||
* dynamically, but empty strings are allowed.
|
||||
* This caused issues for people who left the fields empty on purpose relying on the defaults.
|
||||
* This little routine fixes that.
|
||||
* Needs to be run on 'init' hook at prio 3 to make sure the defaults are translated.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function bring_back_defaults() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate the option.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function validate_option() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a list of the allowed post types as breadcrumb parent for a taxonomy.
|
||||
* Helper method for validation.
|
||||
*
|
||||
* {@internal Don't make static as new types may still be registered.}}
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function get_allowed_post_types() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean a given option value.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function clean_option() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Internals\Options
|
||||
*/
|
||||
|
||||
// Mark this file as deprecated.
|
||||
_deprecated_file( __FILE__, 'WPSEO 7.0' );
|
||||
|
||||
/**
|
||||
* Option: wpseo_permalinks.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*/
|
||||
class WPSEO_Option_Permalinks {
|
||||
|
||||
/**
|
||||
* Option name.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $option_name = '';
|
||||
|
||||
/**
|
||||
* Catch all other calls to this deprecated class.
|
||||
*
|
||||
* @param string $method The method to 'call'.
|
||||
* @param array $args Possibly given arguments.
|
||||
*/
|
||||
public function __call( $method, array $args = array() ) {
|
||||
_deprecated_function( $method, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the actions and filters for the option.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function __construct() {
|
||||
_deprecated_constructor( __CLASS__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the singleton instance of this class.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function get_instance() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate the option.
|
||||
*
|
||||
* @deprecated 7.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function validate_option() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 7.0' );
|
||||
}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @package WPSEO\Admin
|
||||
*/
|
||||
|
||||
// Mark this file as deprecated.
|
||||
_deprecated_file( __FILE__, 'WPSEO 9.2' );
|
||||
|
||||
/**
|
||||
* Class to implement a React modal.
|
||||
*
|
||||
* @deprecated 9.2
|
||||
*/
|
||||
class Yoast_Modal {
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @deprecated 9.2
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_constructor( 'Yoast_Modal', '9.2' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueues the assets needed for the modal.
|
||||
*
|
||||
* @deprecated 9.2
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function enqueue_assets() {
|
||||
_deprecated_function( 'Yoast_Modal::enqueue_assets', '9.2' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints the modals configuration.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function print_localized_config() {
|
||||
_deprecated_function( 'Yoast_Modal::print_localized_config', '9.2' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a single modal configuration to the modals configuration.
|
||||
*
|
||||
* @deprecated 9.2
|
||||
*
|
||||
* @param array $args The modal configuration arguments.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function add( $args ) {
|
||||
_deprecated_function( 'Yoast_Modal::add', '9.2' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the modals configuration.
|
||||
*
|
||||
* @deprecated 9.2
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function get_config() {
|
||||
_deprecated_function( 'Yoast_Modal::get_config', '9.2' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the default configuration for a modal.
|
||||
*
|
||||
* @deprecated 9.2
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function get_defaults() {
|
||||
_deprecated_function( 'Yoast_Modal::get_defaults', '9.2' );
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
/**
|
||||
* Nothing to see here.
|
||||
*/
|
Reference in New Issue
Block a user