Merged in feature/314-dev-dev01 (pull request #24)
auto-patch 314-dev-dev01-2024-01-25T04_09_02 * auto-patch 314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
@@ -18,18 +18,3 @@ if ( ! defined( 'WPSEO_VERSION' ) ) {
|
||||
* Don't use it in your code as it will be removed shortly.
|
||||
*/
|
||||
do_action( 'wpseo_settings_tab_site_analysis_internal', $yform );
|
||||
|
||||
/**
|
||||
* Fires when displaying the site wide analysis tab.
|
||||
*
|
||||
* @deprecated 19.10 No replacement available.
|
||||
*
|
||||
* @param Yoast_Form $yform The yoast form object.
|
||||
*/
|
||||
do_action_deprecated(
|
||||
'wpseo_settings_tab_site_analysis',
|
||||
[ $yform ],
|
||||
'19.10',
|
||||
'',
|
||||
'This action is going away with no replacement. If you want to add settings that interact with Yoast SEO, please create your own settings page.'
|
||||
);
|
||||
|
||||
@@ -19,14 +19,14 @@ $feature_toggles = Yoast_Feature_Toggles::instance()->get_all();
|
||||
<h2><?php esc_html_e( 'Crawl settings', 'wordpress-seo' ); ?></h2>
|
||||
<div class="yoast-measure">
|
||||
<?php
|
||||
echo sprintf(
|
||||
printf(
|
||||
/* translators: %s expands to Yoast SEO */
|
||||
esc_html__( 'This tab allows you to selectively disable %s features for all sites in the network. By default all features are enabled, which allows site admins to choose for themselves if they want to toggle a feature on or off for their site. When you disable a feature here, site admins will not be able to use that feature at all.', 'wordpress-seo' ),
|
||||
'Yoast SEO'
|
||||
);
|
||||
|
||||
echo '<p style="margin: 0.5em 0 1em;">';
|
||||
echo sprintf(
|
||||
printf(
|
||||
/* translators: %1$s opens the link to the Yoast.com article about Crawl settings, %2$s closes the link, */
|
||||
esc_html__( '%1$sLearn more about crawl settings.%2$s', 'wordpress-seo' ),
|
||||
'<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/crawl-settings' ) ) . '" target="_blank" rel="noopener noreferrer">',
|
||||
|
||||
@@ -22,7 +22,7 @@ $feature_toggles = Yoast_Feature_Toggles::instance()->get_all();
|
||||
<h2><?php esc_html_e( 'Features', 'wordpress-seo' ); ?></h2>
|
||||
<div class="yoast-measure">
|
||||
<?php
|
||||
echo sprintf(
|
||||
printf(
|
||||
/* translators: %s expands to Yoast SEO */
|
||||
esc_html__( 'This tab allows you to selectively disable %s features for all sites in the network. By default all features are enabled, which allows site admins to choose for themselves if they want to toggle a feature on or off for their site. When you disable a feature here, site admins will not be able to use that feature at all.', 'wordpress-seo' ),
|
||||
'Yoast SEO'
|
||||
@@ -33,7 +33,7 @@ $feature_toggles = Yoast_Feature_Toggles::instance()->get_all();
|
||||
$premium_version = YoastSEO()->helpers->product->get_premium_version();
|
||||
|
||||
if ( $feature->premium && $feature->premium_version ) {
|
||||
$not_supported_in_current_premium_version = $is_premium && \version_compare( $premium_version, $feature->premium_version, '<' );
|
||||
$not_supported_in_current_premium_version = $is_premium && version_compare( $premium_version, $feature->premium_version, '<' );
|
||||
|
||||
if ( $not_supported_in_current_premium_version ) {
|
||||
continue;
|
||||
|
||||
@@ -22,7 +22,7 @@ $integration_toggles = Yoast_Integration_Toggles::instance()->get_all();
|
||||
<h2><?php esc_html_e( 'Integrations', 'wordpress-seo' ); ?></h2>
|
||||
<div class="yoast-measure">
|
||||
<?php
|
||||
echo sprintf(
|
||||
printf(
|
||||
/* translators: %1$s expands to Yoast SEO */
|
||||
esc_html__( 'This tab allows you to selectively disable %1$s integrations with third-party products for all sites in the network. By default all integrations are enabled, which allows site admins to choose for themselves if they want to toggle an integration on or off for their site. When you disable an integration here, site admins will not be able to use that integration at all.', 'wordpress-seo' ),
|
||||
'Yoast SEO'
|
||||
|
||||
@@ -83,18 +83,6 @@ function wpseo_import_external_select( $name, $plugins ) {
|
||||
*/
|
||||
do_action( 'wpseo_import_other_plugins_internal' );
|
||||
|
||||
/**
|
||||
* Hook used to import other plugins.
|
||||
*
|
||||
* @deprecated 19.10 No replacement available.
|
||||
*/
|
||||
do_action_deprecated(
|
||||
'wpseo_import_other_plugins',
|
||||
[],
|
||||
'19.10',
|
||||
'',
|
||||
'This action is going away with no replacement. If you want to add settings that interact with Yoast SEO, please create your own settings page.'
|
||||
);
|
||||
?>
|
||||
<input type="submit" class="button button-primary" name="import_external"
|
||||
value="<?php esc_attr_e( 'Import', 'wordpress-seo' ); ?>"/>
|
||||
|
||||
@@ -14,7 +14,7 @@ if ( ! defined( 'WPSEO_VERSION' ) ) {
|
||||
/* translators: %1$s expands to Yoast SEO */
|
||||
$submit_button_value = sprintf( __( 'Export your %1$s settings', 'wordpress-seo' ), 'Yoast SEO' );
|
||||
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: The nonce will be verified in WPSEO_Export below, We are only strictly comparing with '1'.
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: The nonce will be verified in WPSEO_Export below, We are only strictly comparing with '1'.
|
||||
if ( isset( $_POST['do_export'] ) && wp_unslash( $_POST['do_export'] ) === '1' ) {
|
||||
$export = new WPSEO_Export();
|
||||
$export->export();
|
||||
|
||||
Reference in New Issue
Block a user