v3.0.4
This commit is contained in:
parent
1aa9f3ba2d
commit
2863c36ae3
3 changed files with 65 additions and 41 deletions
|
|
@ -1,5 +1,16 @@
|
|||
== Changelog ==
|
||||
|
||||
= 3.0.4 [2026-07-18] =
|
||||
|
||||
**Changed**
|
||||
|
||||
* Moved the "Apply Recommended Defaults" button from above the Search Results section to immediately above the "Search options…" input box. The previous position pushed the button below the fold on smaller screens; the new position sits it next to the search field where users naturally look for global actions.
|
||||
|
||||
**Compatibility**
|
||||
|
||||
* WordPress: 5.7 - 7.1
|
||||
* PHP: 7.2 - 8.5
|
||||
|
||||
= 3.0.3 [2026-07-18] =
|
||||
|
||||
**Added**
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* Description: Control search engine indexing with robots directives (noindex, nofollow, noarchive, nosnippet, noimageindex) for specific parts of your WordPress site.
|
||||
* Requires at least: 5.7
|
||||
* Requires PHP: 7.2
|
||||
* Version: 3.0.3
|
||||
* Version: 3.0.4
|
||||
* Author: ROBOTSTXT
|
||||
* Author URI: https://www.robotstxt.es/
|
||||
* License: GPL-3.0-or-later
|
||||
|
|
@ -36,8 +36,12 @@ defined( 'ABSPATH' ) || die( 'Bye bye!' );
|
|||
* @since 3.0.3 Added the "Robots" column to taxonomy list tables (mirrors
|
||||
* the existing post-list Robots column) so admins can see at a
|
||||
* glance which terms have an override.
|
||||
* @since 3.0.4 Moved the "Apply Recommended Defaults" button from the top
|
||||
* of the settings page to immediately above the Search section,
|
||||
* so it stops competing with the stat cards for above-the-fold
|
||||
* attention.
|
||||
*/
|
||||
define( 'NOINDEX_SEO_VERSION', '3.0.3' );
|
||||
define( 'NOINDEX_SEO_VERSION', '3.0.4' );
|
||||
|
||||
/**
|
||||
* Option key holding the consolidated plugin settings array.
|
||||
|
|
@ -2711,30 +2715,6 @@ function noindex_seo_admin(): void {
|
|||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
// "Apply recommended defaults" — separate form so it does not collide
|
||||
// with the main settings form's nonce/action. Goes through admin-post.php
|
||||
// like the main save.
|
||||
?>
|
||||
<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" style="margin: 0 0 20px 0;">
|
||||
<input type="hidden" name="action" value="noindex_seo_apply_suggestions">
|
||||
<?php wp_nonce_field( 'noindex_seo_apply_suggestions_nonce' ); ?>
|
||||
<?php
|
||||
submit_button(
|
||||
__( 'Apply Recommended Defaults', 'noindex-seo' ),
|
||||
'secondary',
|
||||
'noindex-seo-apply-suggestions',
|
||||
false,
|
||||
array(
|
||||
'title' => __( 'Enable all directives for the 12 contexts flagged as recommended.', 'noindex-seo' ),
|
||||
)
|
||||
);
|
||||
?>
|
||||
<span class="description" style="margin-left: 8px; vertical-align: middle;">
|
||||
<?php esc_html_e( 'Enables all 5 directives on the 12 contexts flagged "Recommended" (privacy policy, date archives, pagination, search results, attachment pages, previews, 404). Review and save.', 'noindex-seo' ); ?>
|
||||
</span>
|
||||
</form>
|
||||
|
||||
<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
|
||||
<input type="hidden" name="action" value="update_noindex_seo">
|
||||
<?php wp_nonce_field( 'update_noindex_seo_nonce' ); ?>
|
||||
|
|
@ -2873,20 +2853,42 @@ function noindex_seo_admin(): void {
|
|||
<p><?php esc_html_e( 'Important: Enabling noindex on the wrong pages can harm your search engine rankings. Only enable options you fully understand.', 'noindex-seo' ); ?></p>
|
||||
</div>
|
||||
|
||||
<!-- Search Box -->
|
||||
<div class="noindex-seo-search">
|
||||
<input
|
||||
type="search"
|
||||
placeholder="<?php esc_attr_e( 'Search options...', 'noindex-seo' ); ?>"
|
||||
aria-label="<?php esc_attr_e( 'Search options', 'noindex-seo' ); ?>"
|
||||
>
|
||||
</div>
|
||||
<!-- "Apply Recommended Defaults" button — sits between the stat cards
|
||||
and the option-search input. Separate form so it does not collide
|
||||
with the main settings form's nonce/action. -->
|
||||
<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" style="margin: 0 0 20px 0;">
|
||||
<input type="hidden" name="action" value="noindex_seo_apply_suggestions">
|
||||
<?php wp_nonce_field( 'noindex_seo_apply_suggestions_nonce' ); ?>
|
||||
<?php
|
||||
submit_button(
|
||||
__( 'Apply Recommended Defaults', 'noindex-seo' ),
|
||||
'secondary',
|
||||
'noindex-seo-apply-suggestions',
|
||||
false,
|
||||
array(
|
||||
'title' => __( 'Enable all directives for the 12 contexts flagged as recommended.', 'noindex-seo' ),
|
||||
)
|
||||
);
|
||||
?>
|
||||
<span class="description" style="margin-left: 8px; vertical-align: middle;">
|
||||
<?php esc_html_e( 'Enables all 5 directives on the 12 contexts flagged "Recommended" (privacy policy, date archives, pagination, search results, attachment pages, previews, 404). Review and save.', 'noindex-seo' ); ?>
|
||||
</span>
|
||||
</form>
|
||||
|
||||
<!-- Sections as Cards -->
|
||||
<?php foreach ( $sections as $section_id => $section ) : ?>
|
||||
<?php
|
||||
$icon = $section_icons[ $section_id ];
|
||||
?>
|
||||
<!-- Search Box -->
|
||||
<div class="noindex-seo-search">
|
||||
<input
|
||||
type="search"
|
||||
placeholder="<?php esc_attr_e( 'Search options...', 'noindex-seo' ); ?>"
|
||||
aria-label="<?php esc_attr_e( 'Search options', 'noindex-seo' ); ?>"
|
||||
>
|
||||
</div>
|
||||
|
||||
<!-- Sections as Cards -->
|
||||
<?php foreach ( $sections as $section_id => $section ) : ?>
|
||||
<?php
|
||||
$icon = $section_icons[ $section_id ];
|
||||
?>
|
||||
<div class="noindex-seo-card" id="noindex-seo-card-<?php echo esc_attr( $section_id ); ?>">
|
||||
<div class="noindex-seo-card-header">
|
||||
<h3>
|
||||
|
|
|
|||
15
readme.txt
15
readme.txt
|
|
@ -3,9 +3,9 @@ Contributors: javiercasares
|
|||
Tags: seo, noindex, nofollow, noarchive, robots
|
||||
Requires at least: 5.7
|
||||
Tested up to: 7.1
|
||||
Stable tag: 3.0.3
|
||||
Stable tag: 3.0.4
|
||||
Requires PHP: 7.2
|
||||
Version: 3.0.3
|
||||
Version: 3.0.4
|
||||
License: GPL-3.0-or-later
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
|
|
@ -114,6 +114,17 @@ Extract the contents of the ZIP and upload the contents to the `/wp-content/plug
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 3.0.4 [2026-07-18] =
|
||||
|
||||
**Changed**
|
||||
|
||||
* Moved the "Apply Recommended Defaults" button from above the Search Results section to immediately above the "Search options…" input box. The previous position pushed the button below the fold on smaller screens; the new position sits it next to the search field where users naturally look for global actions.
|
||||
|
||||
**Compatibility**
|
||||
|
||||
* WordPress: 5.7 - 7.1
|
||||
* PHP: 7.2 - 8.5
|
||||
|
||||
= 3.0.3 [2026-07-18] =
|
||||
|
||||
**Added**
|
||||
|
|
|
|||
Loading…
Reference in a new issue