Version Description
Release Date: December 17th, 2019
- Bug fix: Fixed empty robots tag.
- Update: Added filter to allow meta robots to be skipped and controlled via filter.
Download this release
Release Info
Developer | boldgrid |
Plugin | BoldGrid Easy SEO – Simple and Effective SEO |
Version | 1.6.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.6.4
- boldgrid-easy-seo.php +14 -6
- includes/class-boldgrid-seo-admin.php +21 -2
- languages/bgseo.pot +2 -2
- readme.txt +8 -1
boldgrid-easy-seo.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
* Plugin Name: BoldGrid Easy SEO
|
15 |
* Plugin URI: https://www.boldgrid.com/boldgrid-seo/
|
16 |
* Description: Easily manage your website's search engine optimization with Easy SEO by BoldGrid!
|
17 |
-
* Version: 1.6.
|
18 |
* Author: BoldGrid <support@boldgrid.com>
|
19 |
* Author URI: https://www.boldgrid.com/
|
20 |
* License: GPL-2.0+
|
@@ -45,10 +45,12 @@
|
|
45 |
*/
|
46 |
|
47 |
// If this file is called directly, abort.
|
48 |
-
defined( 'WPINC' )
|
|
|
|
|
49 |
|
50 |
-
// Include the autoloader
|
51 |
-
|
52 |
|
53 |
// Define version.
|
54 |
defined( 'BOLDGRID_SEO_VERSION' ) || define( 'BOLDGRID_SEO_VERSION', implode( get_file_data( __FILE__, array( 'Version' ), 'plugin' ) ) );
|
@@ -68,9 +70,12 @@ defined( 'BOLDGRID_SEO_PATH' ) || define( 'BOLDGRID_SEO_PATH', dirname( __FILE__
|
|
68 |
* @since 1.0.0
|
69 |
*/
|
70 |
$easy_seo_php_version = version_compare( phpversion(), '5.3.0', '>=' );
|
71 |
-
$easy_seo_wp_version
|
72 |
|
73 |
-
if ( ! $easy_seo_php_version
|
|
|
|
|
|
|
74 |
function easy_seo_php_error() {
|
75 |
printf( '<div class="error"><p>%s</p></div>',
|
76 |
esc_html__( 'Easy SEO Error: Easy SEO Supports WordPress version 4.0+, and PHP version 5.3+', 'bgseo' )
|
@@ -85,6 +90,9 @@ if ( ! $easy_seo_php_version or ! $easy_seo_wp_version ) :
|
|
85 |
add_action( 'admin_notices', 'easy_seo_php_error' );
|
86 |
endif;
|
87 |
else : // Load the rest of the plugin that contains code suited for passing the version check.
|
|
|
|
|
|
|
88 |
function activate_easy_seo() {
|
89 |
require_once wp_normalize_path( plugin_dir_path( __FILE__ ) . 'includes/class-boldgrid-seo-activator.php' );
|
90 |
Boldgrid_Seo_Activator::activate();
|
14 |
* Plugin Name: BoldGrid Easy SEO
|
15 |
* Plugin URI: https://www.boldgrid.com/boldgrid-seo/
|
16 |
* Description: Easily manage your website's search engine optimization with Easy SEO by BoldGrid!
|
17 |
+
* Version: 1.6.4
|
18 |
* Author: BoldGrid <support@boldgrid.com>
|
19 |
* Author URI: https://www.boldgrid.com/
|
20 |
* License: GPL-2.0+
|
45 |
*/
|
46 |
|
47 |
// If this file is called directly, abort.
|
48 |
+
if ( ! defined( 'WPINC' ) ) {
|
49 |
+
die();
|
50 |
+
}
|
51 |
|
52 |
+
// Include the autoloader.
|
53 |
+
require_once wp_normalize_path( plugin_dir_path( __FILE__ ) . '/autoload.php' );
|
54 |
|
55 |
// Define version.
|
56 |
defined( 'BOLDGRID_SEO_VERSION' ) || define( 'BOLDGRID_SEO_VERSION', implode( get_file_data( __FILE__, array( 'Version' ), 'plugin' ) ) );
|
70 |
* @since 1.0.0
|
71 |
*/
|
72 |
$easy_seo_php_version = version_compare( phpversion(), '5.3.0', '>=' );
|
73 |
+
$easy_seo_wp_version = version_compare( get_bloginfo( 'version' ), '4.0', '>=' );
|
74 |
|
75 |
+
if ( ! $easy_seo_php_version || ! $easy_seo_wp_version ) :
|
76 |
+
/**
|
77 |
+
* Display error and deactivate.
|
78 |
+
*/
|
79 |
function easy_seo_php_error() {
|
80 |
printf( '<div class="error"><p>%s</p></div>',
|
81 |
esc_html__( 'Easy SEO Error: Easy SEO Supports WordPress version 4.0+, and PHP version 5.3+', 'bgseo' )
|
90 |
add_action( 'admin_notices', 'easy_seo_php_error' );
|
91 |
endif;
|
92 |
else : // Load the rest of the plugin that contains code suited for passing the version check.
|
93 |
+
/**
|
94 |
+
* Activate.
|
95 |
+
*/
|
96 |
function activate_easy_seo() {
|
97 |
require_once wp_normalize_path( plugin_dir_path( __FILE__ ) . 'includes/class-boldgrid-seo-activator.php' );
|
98 |
Boldgrid_Seo_Activator::activate();
|
includes/class-boldgrid-seo-admin.php
CHANGED
@@ -423,15 +423,34 @@ class Boldgrid_Seo_Admin {
|
|
423 |
* @return void
|
424 |
*/
|
425 |
public function robots() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
$follow = 'follow';
|
427 |
$index = 'index';
|
428 |
if ( is_404() || is_search() ) {
|
429 |
$index = 'noindex';
|
430 |
}
|
|
|
|
|
431 |
if ( ! empty( $GLOBALS['post']->ID ) ) {
|
432 |
-
$
|
433 |
-
$
|
|
|
|
|
|
|
434 |
}
|
|
|
435 |
printf( $this->settings['meta_fields']['robots'] . "\n", esc_attr( $index ), esc_attr( $follow ) );
|
436 |
}
|
437 |
|
423 |
* @return void
|
424 |
*/
|
425 |
public function robots() {
|
426 |
+
/*
|
427 |
+
* Allow other plugins to handle the robots meta data.
|
428 |
+
*
|
429 |
+
* @since 1.6.4
|
430 |
+
*
|
431 |
+
* @param bool $run Whether or not to add meta robots.
|
432 |
+
*/
|
433 |
+
$run = true;
|
434 |
+
$run = apply_filters( $this->prefix . '/seo/robots/run', $run );
|
435 |
+
if ( ! $run ) {
|
436 |
+
return;
|
437 |
+
}
|
438 |
+
|
439 |
$follow = 'follow';
|
440 |
$index = 'index';
|
441 |
if ( is_404() || is_search() ) {
|
442 |
$index = 'noindex';
|
443 |
}
|
444 |
+
|
445 |
+
// By default, we set follow and index. If a post is overriding that, make those changes now.
|
446 |
if ( ! empty( $GLOBALS['post']->ID ) ) {
|
447 |
+
$post_follow = get_post_meta( $GLOBALS['post']->ID, 'bgseo_robots_follow', true );
|
448 |
+
$follow = ! empty( $post_follow ) ? $post_follow : $follow;
|
449 |
+
|
450 |
+
$post_index = get_post_meta( $GLOBALS['post']->ID, 'bgseo_robots_index', true );
|
451 |
+
$index = ! empty( $post_index ) ? $post_index : $index;
|
452 |
}
|
453 |
+
|
454 |
printf( $this->settings['meta_fields']['robots'] . "\n", esc_attr( $index ), esc_attr( $follow ) );
|
455 |
}
|
456 |
|
languages/bgseo.pot
CHANGED
@@ -16,11 +16,11 @@ msgstr ""
|
|
16 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
17 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18 |
|
19 |
-
#: boldgrid-easy-seo.php:
|
20 |
msgid "Easy SEO Error: Easy SEO Supports WordPress version 4.0+, and PHP version 5.3+"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: boldgrid-easy-seo.php:
|
24 |
msgid "Easy SEO Error: You must have PHP 5.3 or higher and WordPress 4.0 or higher to use this plugin."
|
25 |
msgstr ""
|
26 |
|
16 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
17 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18 |
|
19 |
+
#: boldgrid-easy-seo.php:81
|
20 |
msgid "Easy SEO Error: Easy SEO Supports WordPress version 4.0+, and PHP version 5.3+"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: boldgrid-easy-seo.php:88
|
24 |
msgid "Easy SEO Error: You must have PHP 5.3 or higher and WordPress 4.0 or higher to use this plugin."
|
25 |
msgstr ""
|
26 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: seo, search engine optimization, content analysis, readability, boldgrid
|
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 5.3
|
6 |
Requires PHP: 5.3
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -78,6 +78,13 @@ The BoldGrid Easy SEO plugin is open source software. Join in on our [GitHub rep
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
= 1.6.3 =
|
82 |
|
83 |
Release Date: August 20, 2019
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 5.3
|
6 |
Requires PHP: 5.3
|
7 |
+
Stable tag: 1.6.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 1.6.4 =
|
82 |
+
|
83 |
+
Release Date: December 17th, 2019
|
84 |
+
|
85 |
+
* Bug fix: Fixed empty robots tag.
|
86 |
+
* Update: Added filter to allow meta robots to be skipped and controlled via filter.
|
87 |
+
|
88 |
= 1.6.3 =
|
89 |
|
90 |
Release Date: August 20, 2019
|