All in One SEO Pack - Version 3.0.2

Version Description

Download this release

Release Info

Developer hallsofmontezuma
Plugin Icon 128x128 All in One SEO Pack
Version 3.0.2
Comparing to
See all releases

Code changes from version 3.0.1 to 3.0.2

admin/class-aioseop-notices.php CHANGED
@@ -112,6 +112,12 @@ if ( ! class_exists( 'AIOSEOP_Notices' ) ) {
112
  * @since 3.0
113
  */
114
  public function __construct() {
 
 
 
 
 
 
115
  $this->_requires();
116
  if ( current_user_can( 'aiosp_manage_seo' ) ) {
117
 
@@ -235,6 +241,9 @@ if ( ! class_exists( 'AIOSEOP_Notices' ) ) {
235
  'active_notices' => array(),
236
  );
237
 
 
 
 
238
  $notices_options = get_option( 'aioseop_notices' );
239
  if ( false === $notices_options ) {
240
  return $defaults;
@@ -259,6 +268,9 @@ if ( ! class_exists( 'AIOSEOP_Notices' ) ) {
259
  $old_notices_options = $this->obj_get_options();
260
  $notices_options = wp_parse_args( $notices_options, $old_notices_options );
261
 
 
 
 
262
  return update_option( 'aioseop_notices', $notices_options, false );
263
  }
264
 
112
  * @since 3.0
113
  */
114
  public function __construct() {
115
+
116
+ // DirectoryIterator::getExtension() was added in PHP 5.3.6. We can remove this once we drop support < PHP 5.3.
117
+ if ( version_compare( phpversion(), '5.3.6', '<' ) ) {
118
+ return false;
119
+ }
120
+
121
  $this->_requires();
122
  if ( current_user_can( 'aiosp_manage_seo' ) ) {
123
 
241
  'active_notices' => array(),
242
  );
243
 
244
+ // Prevent old data from being loaded instead.
245
+ // Some notices are instant notifications.
246
+ wp_cache_delete( 'aioseop_notices', 'options' );
247
  $notices_options = get_option( 'aioseop_notices' );
248
  if ( false === $notices_options ) {
249
  return $defaults;
268
  $old_notices_options = $this->obj_get_options();
269
  $notices_options = wp_parse_args( $notices_options, $old_notices_options );
270
 
271
+ // Prevent old data from being loaded instead.
272
+ // Some notices are instant notifications.
273
+ wp_cache_delete( 'aioseop_notices', 'options' );
274
  return update_option( 'aioseop_notices', $notices_options, false );
275
  }
276
 
admin/display/notices/review-plugin-notice.php CHANGED
@@ -18,7 +18,7 @@ function aioseop_notice_review_plugin() {
18
  'slug' => 'review_plugin',
19
  'delay_time' => 1036800,
20
  'target' => 'user',
21
- 'screens' => array(),
22
  'class' => 'notice-info',
23
  /* translators: %1$s is a placeholder, which means that it should not be translated. It will be replaced with the name of the plugin, All in One SEO Pack. */
24
  'message' => sprintf( __( 'You have been using %1$s for a while now. That is awesome! If you like %1$s, then please leave us a 5-star rating. Huge thanks in advance!', 'all-in-one-seo-pack' ), AIOSEOP_PLUGIN_NAME ),
18
  'slug' => 'review_plugin',
19
  'delay_time' => 1036800,
20
  'target' => 'user',
21
+ 'screens' => array( 'aioseop' ),
22
  'class' => 'notice-info',
23
  /* translators: %1$s is a placeholder, which means that it should not be translated. It will be replaced with the name of the plugin, All in One SEO Pack. */
24
  'message' => sprintf( __( 'You have been using %1$s for a while now. That is awesome! If you like %1$s, then please leave us a 5-star rating. Huge thanks in advance!', 'all-in-one-seo-pack' ), AIOSEOP_PLUGIN_NAME ),
aioseop_class.php CHANGED
@@ -755,8 +755,8 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
755
  add_action( 'aioseop_global_settings_header', array( $this, 'display_right_sidebar' ) );
756
  add_action( 'aioseop_global_settings_footer', array( $this, 'display_settings_footer' ) );
757
  add_action( 'output_option', array( $this, 'custom_output_option' ), 10, 2 );
758
- add_action( 'all_admin_notices', array( $this, 'visibility_warning' ) );
759
- add_action( 'all_admin_notices', array( $this, 'woo_upgrade_notice' ) );
760
 
761
  }
762
  if ( AIOSEOPPRO ) {
755
  add_action( 'aioseop_global_settings_header', array( $this, 'display_right_sidebar' ) );
756
  add_action( 'aioseop_global_settings_footer', array( $this, 'display_settings_footer' ) );
757
  add_action( 'output_option', array( $this, 'custom_output_option' ), 10, 2 );
758
+ add_action( 'admin_init', array( $this, 'visibility_warning' ) );
759
+ add_action( 'admin_init', array( $this, 'woo_upgrade_notice' ) );
760
 
761
  }
762
  if ( AIOSEOPPRO ) {
all_in_one_seo_pack.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: All In One SEO Pack
5
  Plugin URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
6
  Description: Out-of-the-box SEO for WordPress. Features like XML Sitemaps, SEO for custom post types, SEO for blogs or business sites, SEO for ecommerce sites, and much more. More than 50 million downloads since 2007.
7
- Version: 3.0.1
8
  Author: Michael Torbert
9
  Author URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
10
  Text Domain: all-in-one-seo-pack
@@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
32
  * The original WordPress SEO plugin.
33
  *
34
  * @package All-in-One-SEO-Pack
35
- * @version 3.0.1
36
  */
37
 
38
  if ( ! defined( 'AIOSEOPPRO' ) ) {
@@ -42,7 +42,7 @@ if ( ! defined( 'AIOSEOP_PLUGIN_NAME' ) ) {
42
  define( 'AIOSEOP_PLUGIN_NAME', 'All in One SEO Pack' );
43
  }
44
  if ( ! defined( 'AIOSEOP_VERSION' ) ) {
45
- define( 'AIOSEOP_VERSION', '3.0.1' );
46
  }
47
 
48
  /*
4
  Plugin Name: All In One SEO Pack
5
  Plugin URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
6
  Description: Out-of-the-box SEO for WordPress. Features like XML Sitemaps, SEO for custom post types, SEO for blogs or business sites, SEO for ecommerce sites, and much more. More than 50 million downloads since 2007.
7
+ Version: 3.0.2
8
  Author: Michael Torbert
9
  Author URI: https://semperplugins.com/all-in-one-seo-pack-pro-version/
10
  Text Domain: all-in-one-seo-pack
32
  * The original WordPress SEO plugin.
33
  *
34
  * @package All-in-One-SEO-Pack
35
+ * @version 3.0.2
36
  */
37
 
38
  if ( ! defined( 'AIOSEOPPRO' ) ) {
42
  define( 'AIOSEOP_PLUGIN_NAME', 'All in One SEO Pack' );
43
  }
44
  if ( ! defined( 'AIOSEOP_VERSION' ) ) {
45
+ define( 'AIOSEOP_VERSION', '3.0.2' );
46
  }
47
 
48
  /*
css/aioseop-font-icons.css CHANGED
@@ -20,19 +20,6 @@
20
  font-style: normal;
21
  }
22
 
23
- [data-icon]:before {
24
- font-family: 'aioseop-font' !important;
25
- content: attr(data-icon);
26
- font-style: normal !important;
27
- font-weight: normal !important;
28
- font-variant: normal !important;
29
- text-transform: none !important;
30
- speak: none;
31
- line-height: 1;
32
- -webkit-font-smoothing: antialiased;
33
- -moz-osx-font-smoothing: grayscale;
34
- }
35
-
36
  [class^='aioseop-icon-']:before,
37
  [class*=' aioseop-icon-']:before {
38
  display: inline-block;
20
  font-style: normal;
21
  }
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  [class^='aioseop-icon-']:before,
24
  [class*=' aioseop-icon-']:before {
25
  display: inline-block;
css/modules/aioseop_module.css CHANGED
@@ -114,7 +114,8 @@
114
  border: 1px solid #e1e1e1;
115
  }
116
 
117
- .aioseop input[type="text"], .aioseop input[type="url"] {
 
118
  color: #515151;
119
  min-height: 35px;
120
  padding: 10px;
@@ -134,14 +135,16 @@
134
  min-height: 36px;
135
  }
136
 
137
- .aioseop input, textarea {
 
138
  border-radius: 4px;
139
  border: 1px solid #8d96a0;
140
  margin: 1px;
141
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif !important;
142
  }
143
 
144
- .aioseop input:focus, textarea:focus {
 
145
  box-shadow: 0 0 0 1px #007cba;
146
  }
147
 
@@ -623,11 +626,13 @@ div.aioseop_feature#aioseop_opengraph .aioseop_featured_image.active {
623
  background-image: url(../../modules/images/SocialMeta-Color-Standard.png);
624
  }
625
 
626
- div.aioseop_feature#aioseop_robots .aioseop_featured_image, div.aioseop_feature#aioseop_bad_robots .aioseop_featured_image {
 
627
  background-image: url(../../modules/images/Robots-BW-Standard.png);
628
  }
629
 
630
- div.aioseop_feature#aioseop_robots .aioseop_featured_image.active, div.aioseop_feature#aioseop_bad_robots .aioseop_featured_image.active {
 
631
  background-image: url(../../modules/images/Robots-Color-Standard.png);
632
  }
633
 
@@ -723,11 +728,13 @@ div.aioseop_feature#aioseop_coming_soon2 .aioseop_featured_image {
723
  background-image: url(../../modules/images/SocialMeta-Color-Retina.png);
724
  }
725
 
726
- div.aioseop_feature#aioseop_robots .aioseop_featured_image, div.aioseop_feature#aioseop_bad_robots .aioseop_featured_image {
 
727
  background-image: url(../../modules/images/Robots-BW-Retina.png);
728
  }
729
 
730
- div.aioseop_feature#aioseop_robots .aioseop_featured_image.active, div.aioseop_feature#aioseop_bad_robots .aioseop_featured_image.active {
 
731
  background-image: url(../../modules/images/Robots-Color-Retina.png);
732
  }
733
 
@@ -954,7 +961,8 @@ table.aioseop_table td {
954
  padding-left: 2%;
955
  }
956
 
957
- table.aioseop_table td, table.aioseop_table th {
 
958
  padding: 3px;
959
  }
960
 
@@ -1023,7 +1031,8 @@ table.aioseop_table td, table.aioseop_table th {
1023
  padding-left: 5%;
1024
  }
1025
 
1026
- #aiosp_settings_form .aioseop_no_label, .aioseop_no_label {
 
1027
  float: left;
1028
  width: 92%;
1029
  max-width: 100%;
@@ -1208,6 +1217,11 @@ div.aioseop_notice a.aioseop_dismiss_link {
1208
  width: 98%;
1209
  }
1210
 
 
 
 
 
 
1211
  .aioseop_header_tabs li a.aioseop_header_tab {
1212
  font-size: 14px;
1213
  line-height: 37px;
@@ -1351,7 +1365,8 @@ div.sfwd_debug_error {
1351
  max-height: 420px;
1352
  }
1353
 
1354
- #aioseop_coming_soon, #aioseop_coming_soon2 {
 
1355
  padding-top: 40px;
1356
  text-align: center;
1357
  height: 258px;
@@ -1532,7 +1547,7 @@ div#aiosp_sitemap_status_metabox .toggle-indicator {
1532
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif !important;
1533
  }
1534
 
1535
- .ui-sortable-handle span {
1536
  font-size: 16px;
1537
  font-weight: 600;
1538
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
114
  border: 1px solid #e1e1e1;
115
  }
116
 
117
+ .aioseop input[type="text"],
118
+ .aioseop input[type="url"] {
119
  color: #515151;
120
  min-height: 35px;
121
  padding: 10px;
135
  min-height: 36px;
136
  }
137
 
138
+ .aioseop input,
139
+ .aioseop textarea {
140
  border-radius: 4px;
141
  border: 1px solid #8d96a0;
142
  margin: 1px;
143
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif !important;
144
  }
145
 
146
+ .aioseop input:focus,
147
+ .aioseop textarea:focus {
148
  box-shadow: 0 0 0 1px #007cba;
149
  }
150
 
626
  background-image: url(../../modules/images/SocialMeta-Color-Standard.png);
627
  }
628
 
629
+ div.aioseop_feature#aioseop_robots .aioseop_featured_image,
630
+ div.aioseop_feature#aioseop_bad_robots .aioseop_featured_image {
631
  background-image: url(../../modules/images/Robots-BW-Standard.png);
632
  }
633
 
634
+ div.aioseop_feature#aioseop_robots .aioseop_featured_image.active,
635
+ div.aioseop_feature#aioseop_bad_robots .aioseop_featured_image.active {
636
  background-image: url(../../modules/images/Robots-Color-Standard.png);
637
  }
638
 
728
  background-image: url(../../modules/images/SocialMeta-Color-Retina.png);
729
  }
730
 
731
+ div.aioseop_feature#aioseop_robots .aioseop_featured_image,
732
+ div.aioseop_feature#aioseop_bad_robots .aioseop_featured_image {
733
  background-image: url(../../modules/images/Robots-BW-Retina.png);
734
  }
735
 
736
+ div.aioseop_feature#aioseop_robots .aioseop_featured_image.active,
737
+ div.aioseop_feature#aioseop_bad_robots .aioseop_featured_image.active {
738
  background-image: url(../../modules/images/Robots-Color-Retina.png);
739
  }
740
 
961
  padding-left: 2%;
962
  }
963
 
964
+ table.aioseop_table td,
965
+ table.aioseop_table th {
966
  padding: 3px;
967
  }
968
 
1031
  padding-left: 5%;
1032
  }
1033
 
1034
+ #aiosp_settings_form .aioseop_no_label,
1035
+ .aioseop_no_label {
1036
  float: left;
1037
  width: 92%;
1038
  max-width: 100%;
1217
  width: 98%;
1218
  }
1219
 
1220
+ .aioseop_tabs.hide,
1221
+ .aioseop_header_tabs.hide {
1222
+ display: block !important;
1223
+ }
1224
+
1225
  .aioseop_header_tabs li a.aioseop_header_tab {
1226
  font-size: 14px;
1227
  line-height: 37px;
1365
  max-height: 420px;
1366
  }
1367
 
1368
+ #aioseop_coming_soon,
1369
+ #aioseop_coming_soon2 {
1370
  padding-top: 40px;
1371
  text-align: center;
1372
  height: 258px;
1547
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif !important;
1548
  }
1549
 
1550
+ .aioseop_options_wrapper .ui-sortable-handle span {
1551
  font-size: 16px;
1552
  font-weight: 600;
1553
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
modules/aioseop_sitemap.php CHANGED
@@ -394,7 +394,7 @@ if ( ! class_exists( 'All_in_One_SEO_Pack_Sitemap' ) ) {
394
  // TODO is this required for dynamic sitemap?
395
  add_action( 'transition_post_status', array( $this, 'update_sitemap_from_posts' ), 10, 3 );
396
  add_action( 'after_doing_aioseop_updates', array( $this, 'scan_sitemaps' ) );
397
- add_action( 'all_admin_notices', array( $this, 'sitemap_notices' ) );
398
  }
399
 
400
  /**
@@ -709,10 +709,10 @@ if ( ! class_exists( 'All_in_One_SEO_Pack_Sitemap' ) ) {
709
  // Exclude Terms element items.
710
  $this->default_options['excl_terms']['initial_options'] = array();
711
  $taxonomies_active = array();
712
- if ( is_array( $this->options['aiosp_sitemap_taxonomies'] ) ) {
713
- $taxonomies_active = $this->options['aiosp_sitemap_taxonomies'];
714
- } elseif ( ! empty( $this->options['aiosp_sitemap_taxonomies'] ) ) {
715
- $taxonomies_active = array( $this->options['aiosp_sitemap_taxonomies'] );
716
  }
717
 
718
  $args_taxonomy_key = array_search( 'all', $taxonomies_active, true );
394
  // TODO is this required for dynamic sitemap?
395
  add_action( 'transition_post_status', array( $this, 'update_sitemap_from_posts' ), 10, 3 );
396
  add_action( 'after_doing_aioseop_updates', array( $this, 'scan_sitemaps' ) );
397
+ add_action( 'admin_init', array( $this, 'sitemap_notices' ) );
398
  }
399
 
400
  /**
709
  // Exclude Terms element items.
710
  $this->default_options['excl_terms']['initial_options'] = array();
711
  $taxonomies_active = array();
712
+ if ( is_array( $this->options[ $this->prefix . 'taxonomies' ] ) ) {
713
+ $taxonomies_active = $this->options[ $this->prefix . 'taxonomies' ];
714
+ } elseif ( ! empty( $this->options[ $this->prefix . 'taxonomies' ] ) ) {
715
+ $taxonomies_active = array( $this->options[ $this->prefix . 'taxonomies' ] );
716
  }
717
 
718
  $args_taxonomy_key = array_search( 'all', $taxonomies_active, true );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: hallsofmontezuma, semperplugins, wpsmort, arnaudbroes
3
  Tags: SEO, Google Search Console, XML Sitemap, meta description, meta title, noindex
4
  Requires at least: 4.7
5
  Tested up to: 5.2
6
- Stable tag: 3.0.1
7
  License: GPLv2 or later
8
  Requires PHP: 5.2.4
9
 
3
  Tags: SEO, Google Search Console, XML Sitemap, meta description, meta title, noindex
4
  Requires at least: 4.7
5
  Tested up to: 5.2
6
+ Stable tag: 3.0.2
7
  License: GPLv2 or later
8
  Requires PHP: 5.2.4
9