SEOPress - Version 1.5.1

Version Description

  • INFO Improve Breadcrumbs SEO
  • FIX Google Analytics Fatal Error
  • FIX Dublin Core notices
  • FIX Adminbar now visible in front-end too when user is logged
  • FIX Use of undefined constant yes - assumed 'yes'
  • FIX WooCommerce compatibility with Breadcrumbs
  • FIX Dublin Core Subject
  • FIX Dublin Core Description
  • FIX 10 Undefined variable seopress_social_knowledge_img_option
Download this release

Release Info

Developer rainbowgeek
Plugin Icon 128x128 SEOPress
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

inc/admin/ajax.php CHANGED
@@ -17,7 +17,7 @@ function seopress_toggle_features() {
17
  if ( isset( $_POST['feature']) && isset( $_POST['feature_value'] )) {
18
  $seopress_toggle_options = get_option('seopress_toggle');
19
  $seopress_toggle_options[$_POST['feature']] = $_POST['feature_value'];
20
- update_option('seopress_toggle', $seopress_toggle_options, yes);
21
  }
22
  die();
23
  }
@@ -30,7 +30,7 @@ function seopress_hide_notices() {
30
  if ( isset( $_POST['notice']) && isset( $_POST['notice_value'] )) {
31
  $seopress_notices_options = get_option('seopress_notices');
32
  $seopress_notices_options[$_POST['notice']] = $_POST['notice_value'];
33
- update_option('seopress_notices', $seopress_notices_options, yes);
34
  }
35
  die();
36
  }
17
  if ( isset( $_POST['feature']) && isset( $_POST['feature_value'] )) {
18
  $seopress_toggle_options = get_option('seopress_toggle');
19
  $seopress_toggle_options[$_POST['feature']] = $_POST['feature_value'];
20
+ update_option('seopress_toggle', $seopress_toggle_options, 'yes');
21
  }
22
  die();
23
  }
30
  if ( isset( $_POST['notice']) && isset( $_POST['notice_value'] )) {
31
  $seopress_notices_options = get_option('seopress_notices');
32
  $seopress_notices_options[$_POST['notice']] = $_POST['notice_value'];
33
+ update_option('seopress_notices', $seopress_notices_options, 'yes');
34
  }
35
  die();
36
  }
inc/functions/options-social.php CHANGED
@@ -263,7 +263,7 @@ function seopress_social_accounts_jsonld_hook() {
263
 
264
  echo '<script type="application/ld+json">';
265
  echo '{"@context" : "http://schema.org","@type" : '.$seopress_social_knowledge_type_option.',';
266
- if ($seopress_social_knowledge_img_option) {
267
  echo '"logo": '.$seopress_social_knowledge_img_option.',';
268
  }
269
  echo '"name" : '.$seopress_social_knowledge_name_option.',"url" : '.json_encode(get_home_url());
@@ -279,7 +279,7 @@ function seopress_social_accounts_jsonld_hook() {
279
  }
280
  }
281
 
282
- if ($seopress_social_accounts_facebook_option || $seopress_social_accounts_twitter_option || $seopress_social_accounts_google_option || $seopress_social_accounts_pinterest_option || $seopress_social_accounts_instagram_option || $seopress_social_accounts_youtube_option || $seopress_social_accounts_linkedin_option || $seopress_social_accounts_myspace_option || $seopress_social_accounts_soundcloud_option || $seopress_social_accounts_tumblr_option ) {
283
  echo ',"sameAs" : [';
284
  $seopress_comma_count = count($seopress_comma_array);
285
  for ($i = 0; $i < $seopress_comma_count; $i++) {
263
 
264
  echo '<script type="application/ld+json">';
265
  echo '{"@context" : "http://schema.org","@type" : '.$seopress_social_knowledge_type_option.',';
266
+ if (seopress_social_knowledge_img_option() !='') {
267
  echo '"logo": '.$seopress_social_knowledge_img_option.',';
268
  }
269
  echo '"name" : '.$seopress_social_knowledge_name_option.',"url" : '.json_encode(get_home_url());
279
  }
280
  }
281
 
282
+ if (seopress_social_accounts_facebook_option() !='' || seopress_social_accounts_twitter_option() !='' || seopress_social_accounts_google_option() !='' || seopress_social_accounts_pinterest_option() !='' || seopress_social_accounts_instagram_option() !='' || seopress_social_accounts_youtube_option() !='' || seopress_social_accounts_linkedin_option() !='' || seopress_social_accounts_myspace_option() !='' || seopress_social_accounts_soundcloud_option() !='' || seopress_social_accounts_tumblr_option() !='' ) {
283
  echo ',"sameAs" : [';
284
  $seopress_comma_count = count($seopress_comma_array);
285
  for ($i = 0; $i < $seopress_comma_count; $i++) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://seopress.org/
4
  Tags: seo, search engine optimization, meta, title, description, keywords, serp, knowledge grah, schema.org, url, redirection, 301, xml sitemap, breadcrumbs, ranking, google analytics, woocommerce, dublin core, rich snippets, 404, html sitemap
5
  Requires at least: 4.4+
6
  Tested up to: 4.7
7
- Stable tag: 1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -109,6 +109,16 @@ SEOPress is a powerful plugin to optimize your SEO, boost your traffic and impro
109
  30. Structured Data Types metaboxe in post, page, custom post type
110
 
111
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
112
  = 1.5 =
113
  * NEW Google Analytics Stats in Dashboard with interactive charts (SEOPress PRO only)
114
  * NEW Add new advices in Notifications center
4
  Tags: seo, search engine optimization, meta, title, description, keywords, serp, knowledge grah, schema.org, url, redirection, 301, xml sitemap, breadcrumbs, ranking, google analytics, woocommerce, dublin core, rich snippets, 404, html sitemap
5
  Requires at least: 4.4+
6
  Tested up to: 4.7
7
+ Stable tag: 1.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
109
  30. Structured Data Types metaboxe in post, page, custom post type
110
 
111
  == Changelog ==
112
+ = 1.5.1 =
113
+ * INFO Improve Breadcrumbs SEO
114
+ * FIX Google Analytics Fatal Error
115
+ * FIX Dublin Core notices
116
+ * FIX Adminbar now visible in front-end too when user is logged
117
+ * FIX Use of undefined constant yes - assumed 'yes'
118
+ * FIX WooCommerce compatibility with Breadcrumbs
119
+ * FIX Dublin Core Subject
120
+ * FIX Dublin Core Description
121
+ * FIX 10 Undefined variable seopress_social_knowledge_img_option
122
  = 1.5 =
123
  * NEW Google Analytics Stats in Dashboard with interactive charts (SEOPress PRO only)
124
  * NEW Add new advices in Notifications center
seopress.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: SEOPress
5
  Plugin URI: http://seopress.org/
6
  Description: The best SEO plugin.
7
- Version: 1.5
8
  Author: Benjamin DENIS
9
  Author URI: http://seopress.org/
10
  License: GPLv2
@@ -56,7 +56,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
56
  //Define
57
  ///////////////////////////////////////////////////////////////////////////////////////////////////
58
 
59
- define( 'SEOPRESS_VERSION', '1.5' );
60
  define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
61
 
62
  ///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -72,11 +72,10 @@ function seopress_init() {
72
  require_once dirname( __FILE__ ) . '/inc/admin/admin-metaboxes.php';
73
  require_once dirname( __FILE__ ) . '/inc/admin/ajax.php';
74
  require_once dirname( __FILE__ ) . '/inc/admin/admin-header.php';
75
-
76
- if(current_user_can('edit_posts')) {
77
- require_once dirname( __FILE__ ) . '/inc/admin/adminbar.php';
78
- }
79
- }
80
 
81
  require_once dirname( __FILE__ ) . '/inc/functions/options.php';
82
 
4
  Plugin Name: SEOPress
5
  Plugin URI: http://seopress.org/
6
  Description: The best SEO plugin.
7
+ Version: 1.5.1
8
  Author: Benjamin DENIS
9
  Author URI: http://seopress.org/
10
  License: GPLv2
56
  //Define
57
  ///////////////////////////////////////////////////////////////////////////////////////////////////
58
 
59
+ define( 'SEOPRESS_VERSION', '1.5.1' );
60
  define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
61
 
62
  ///////////////////////////////////////////////////////////////////////////////////////////////////
72
  require_once dirname( __FILE__ ) . '/inc/admin/admin-metaboxes.php';
73
  require_once dirname( __FILE__ ) . '/inc/admin/ajax.php';
74
  require_once dirname( __FILE__ ) . '/inc/admin/admin-header.php';
75
+ }
76
+ if(current_user_can('edit_posts')) {
77
+ require_once dirname( __FILE__ ) . '/inc/admin/adminbar.php';
78
+ }
 
79
 
80
  require_once dirname( __FILE__ ) . '/inc/functions/options.php';
81