Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercasares committed Nov 4, 2024
1 parent 000c08a commit 0202f47
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 14 deletions.
11 changes: 11 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
== Changelog ==

= 1.1.1 [2024-11-04] =

**Added**

* Configuration option to dismiss other SEO plugin incompatibilities.

**Compatibility**

* WordPress: 4.1 - 6.7
* PHP: 5.6 - 8.4

= 1.1.0 [2024-11-02] =

**Added**
Expand Down
30 changes: 18 additions & 12 deletions noindex-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Allows adding a meta-tag for robots noindex in specific parts of your WordPress site.
* Requires at least: 4.1
* Requires PHP: 5.6
* Version: 1.1.0
* Version: 1.1.1
* Author: Javier Casares
* Author URI: https://www.javiercasares.com/
* License: GPL-2.0-or-later
Expand Down Expand Up @@ -518,11 +518,26 @@ function noindex_seo_admin() {
<?php
settings_fields( 'noindexseo' );
do_settings_sections( 'noindexseo' ); // In case you have sections added later.

echo '<h2>' . esc_html( __( 'General Configuration', 'noindex-seo' ) ) . '</h2>';
echo '<table class="form-table">';
// Get current configuration value.
$option_config_seoplugins = get_option( 'noindex_seo_config_seoplugins', 0 );
echo '<tr>';
echo '<th scope="row"><label for="noindex_seo_config_seoplugins">' . esc_html( __( 'Plugin compatibility', 'noindex-seo' ) ) . '</label></th>';
echo '<td><fieldset>';
echo '<input type="checkbox" id="noindex_seo_config_seoplugins" name="noindex_seo_config_seoplugins" value="1" ' . checked( 1, $option_config_seoplugins, false ) . '> ';
echo '<span class="description">' . esc_html( __( 'Do not display the message of possible incompatibilities with other plugins.', 'noindex-seo' ) ) . '</span>';
echo '</fieldset></td>';
echo '</tr>';
echo '</table>';

echo '<h2>' . esc_html( __( 'SEO Configuration', 'noindex-seo' ) ) . '</h2>';
?>
<p><?php echo esc_html( __( 'Important note: if you have any doubt about any of the following items, it is best not to activate the option as you could lose results in the search engines.', 'noindex-seo' ) ); ?></p>
<?php
foreach ( $sections as $section_id => $section ) {
echo '<h2>' . esc_html( $section['title'] ) . '</h2>';
echo '<h3>' . esc_html( $section['title'] ) . '</h3>';
echo '<table class="form-table">';
foreach ( $section['fields'] as $field_id => $field ) {
// Check for conditional display.
Expand All @@ -548,18 +563,9 @@ function noindex_seo_admin() {
echo '</tr>';
}

// Get current configuration value.
$option_config_seoplugins = get_option( 'noindex_seo_config_seoplugins', 0 );
echo '<tr>';
echo '<th scope="row"><label for="noindex_seo_config_seoplugins">' . esc_html( __( 'General configuration', 'noindex-seo' ) ) . '</label></th>';
echo '<td><fieldset>';
echo '<input type="checkbox" id="noindex_seo_config_seoplugins" name="noindex_seo_config_seoplugins" value="1" ' . checked( 1, $option_config_seoplugins, false ) . '> ';
echo '<span class="description">' . esc_html( __( 'Do not display the message of possible incompatibilities with other plugins.', 'noindex-seo' ) ) . '</span>';
echo '</fieldset></td>';
echo '</tr>';

echo '</table>';
}

?>
<?php submit_button(); ?>
</form>
Expand Down
15 changes: 13 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: javiercasares
Tags: seo, noindex
Requires at least: 4.1
Tested up to: 6.7
Stable tag: 1.1.0
Stable tag: 1.1.1
Requires PHP: 5.6
Version: 1.1.0
Version: 1.1.1
License: GPL-2.0-or-later
License URI: https://spdx.org/licenses/GPL-2.0-or-later.html

Expand Down Expand Up @@ -86,6 +86,17 @@ Extract the contents of the ZIP and upload the contents to the `/wp-content/plug

== Changelog ==

= 1.1.1 [2024-11-04] =

**Added**

* Configuration option to dismiss other SEO plugin incompatibilities.

**Compatibility**

* WordPress: 4.1 - 6.7
* PHP: 5.6 - 8.4

= 1.1.0 [2024-11-02] =

**Added**
Expand Down
1 change: 1 addition & 0 deletions uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@
delete_option( 'noindex_seo_preview' );
delete_option( 'noindex_seo_customize_preview' );
delete_option( 'noindex_seo_time' );
delete_option( 'noindex_seo_config_seoplugins' );
}

0 comments on commit 0202f47

Please sign in to comment.