All in One SEO Pack - Version 3.2.2

Version Description

Download this release

Release Info

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

Code changes from version 3.2.1 to 3.2.2

aioseop_class.php CHANGED
@@ -1005,7 +1005,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
1005
  ),
1006
  'google' => array(
1007
  'name' => __( 'Google Settings', 'all-in-one-seo-pack' ),
1008
- 'help_link' => 'https://semperplugins.com/documentation/google-settings/',
1009
  'options' => array(
1010
  'google_analytics_id',
1011
  'ga_advanced_options',
@@ -4201,6 +4201,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
4201
  }
4202
 
4203
  if ( ! $this->is_page_included() ) {
 
4204
  /**
4205
  * The aioseop_robots_meta filter hook.
4206
  *
@@ -4213,9 +4214,9 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
4213
  * @return string
4214
  */
4215
  $robots_meta = apply_filters( 'aioseop_robots_meta', $this->get_robots_meta() );
4216
- if ( ! empty( $robots_meta ) ) {
4217
- // Should plugin & version details be added here as well?
4218
- echo '<meta name="robots" content="' . esc_attr( $robots_meta ) . '" />' . "\n";
4219
  }
4220
 
4221
  if ( ! empty( $old_wp_query ) ) {
@@ -4320,7 +4321,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
4320
  $meta_string .= sprintf( "<meta name=\"keywords\" %s content=\"%s\" />\n", $key_attr, $keywords );
4321
  }
4322
  }
4323
- // Handle noindex, nofollow - robots meta.
4324
  if ( get_option( 'blog_public' ) ) {
4325
 
4326
  /**
@@ -4336,7 +4337,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
4336
  */
4337
  $robots_meta = apply_filters( 'aioseop_robots_meta', $this->get_robots_meta() );
4338
 
4339
- if ( ! empty( $robots_meta ) ) {
4340
  $meta_string .= sprintf( '<meta name="robots" content="%s"', esc_attr( $robots_meta ) ) . " />\n";
4341
  }
4342
  }
@@ -4732,7 +4733,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
4732
  $meta = get_post_meta( wc_get_page_id( 'shop' ) );
4733
  }
4734
 
4735
- if ( array_key_exists( $meta_key, $meta ) ) {
4736
  $meta_value = $meta[ $meta_key ][0];
4737
  }
4738
 
1005
  ),
1006
  'google' => array(
1007
  'name' => __( 'Google Settings', 'all-in-one-seo-pack' ),
1008
+ 'help_link' => 'https://semperplugins.com/documentation/advanced-google-analytics-settings/',
1009
  'options' => array(
1010
  'google_analytics_id',
1011
  'ga_advanced_options',
4201
  }
4202
 
4203
  if ( ! $this->is_page_included() ) {
4204
+
4205
  /**
4206
  * The aioseop_robots_meta filter hook.
4207
  *
4214
  * @return string
4215
  */
4216
  $robots_meta = apply_filters( 'aioseop_robots_meta', $this->get_robots_meta() );
4217
+
4218
+ if ( ! empty( $robots_meta ) && 'index,follow' !== $robots_meta ) {
4219
+ printf( '<meta name="robots" content="%s"', esc_attr( $robots_meta ) ) . " >\n";
4220
  }
4221
 
4222
  if ( ! empty( $old_wp_query ) ) {
4321
  $meta_string .= sprintf( "<meta name=\"keywords\" %s content=\"%s\" />\n", $key_attr, $keywords );
4322
  }
4323
  }
4324
+
4325
  if ( get_option( 'blog_public' ) ) {
4326
 
4327
  /**
4337
  */
4338
  $robots_meta = apply_filters( 'aioseop_robots_meta', $this->get_robots_meta() );
4339
 
4340
+ if ( ! empty( $robots_meta ) && 'index,follow' !== $robots_meta ) {
4341
  $meta_string .= sprintf( '<meta name="robots" content="%s"', esc_attr( $robots_meta ) ) . " />\n";
4342
  }
4343
  }
4733
  $meta = get_post_meta( wc_get_page_id( 'shop' ) );
4734
  }
4735
 
4736
+ if ( is_array( $meta ) && array_key_exists( $meta_key, $meta ) ) {
4737
  $meta_value = $meta[ $meta_key ][0];
4738
  }
4739
 
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.2.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.2.1
36
  */
37
 
38
  if ( ! defined( 'AIOSEOPPRO' ) ) {
@@ -46,7 +46,7 @@ if ( ! defined( 'AIOSEOP_PLUGIN_NAME' ) ) {
46
  }
47
  }
48
  if ( ! defined( 'AIOSEOP_VERSION' ) ) {
49
- define( 'AIOSEOP_VERSION', '3.2.1' );
50
  }
51
 
52
  /*
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.2.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.2.2
36
  */
37
 
38
  if ( ! defined( 'AIOSEOPPRO' ) ) {
46
  }
47
  }
48
  if ( ! defined( 'AIOSEOP_VERSION' ) ) {
49
+ define( 'AIOSEOP_VERSION', '3.2.2' );
50
  }
51
 
52
  /*
inc/schema/graphs/graph-organization.php CHANGED
@@ -105,16 +105,22 @@ class AIOSEOP_Graph_Organization extends AIOSEOP_Graph {
105
  $rtn_data = array();
106
 
107
  $logo_id = $this->get_logo_id();
108
- $logo_meta = wp_get_attachment_metadata( $logo_id );
109
  if ( ! empty( $logo_id ) ) {
110
  $rtn_data = array(
111
- '@type' => 'ImageObject',
112
- '@id' => home_url() . '/#logo',
113
- 'url' => wp_get_attachment_image_url( $logo_id, 'full' ),
114
- 'width' => $logo_meta['width'],
115
- 'height' => $logo_meta['height'],
116
  );
117
 
 
 
 
 
 
 
 
 
 
118
  $caption = wp_get_attachment_caption( $logo_id );
119
  if ( false !== $caption || ! empty( $caption ) ) {
120
  $rtn_data['caption'] = $caption;
@@ -190,7 +196,11 @@ class AIOSEOP_Graph_Organization extends AIOSEOP_Graph {
190
 
191
  // Fallback on Customizer site logo.
192
  if ( ! $logo_id ) {
193
- $logo_id = get_theme_mod( 'custom_logo' );
 
 
 
 
194
  }
195
 
196
  // Prevent case type errors if empty/false.
105
  $rtn_data = array();
106
 
107
  $logo_id = $this->get_logo_id();
 
108
  if ( ! empty( $logo_id ) ) {
109
  $rtn_data = array(
110
+ '@type' => 'ImageObject',
111
+ '@id' => home_url() . '/#logo',
112
+ 'url' => wp_get_attachment_image_url( $logo_id, 'full' ),
 
 
113
  );
114
 
115
+ $logo_meta = wp_get_attachment_metadata( $logo_id );
116
+ // Get image dimensions. Some images may not have this property.
117
+ if ( isset( $rtn_data['width'] ) ) {
118
+ $rtn_data['width'] = $logo_meta['width'];
119
+ }
120
+ if ( isset( $rtn_data['height'] ) ) {
121
+ $rtn_data['height'] = $logo_meta['height'];
122
+ }
123
+
124
  $caption = wp_get_attachment_caption( $logo_id );
125
  if ( false !== $caption || ! empty( $caption ) ) {
126
  $rtn_data['caption'] = $caption;
196
 
197
  // Fallback on Customizer site logo.
198
  if ( ! $logo_id ) {
199
+ $customizer_logo = get_theme_mod( 'custom_logo' );
200
+
201
+ if ( is_numeric( $customizer_logo ) ) {
202
+ $logo_id = intval( $customizer_logo );
203
+ }
204
  }
205
 
206
  // Prevent case type errors if empty/false.
inc/schema/graphs/graph-webpage.php CHANGED
@@ -168,11 +168,6 @@ class AIOSEOP_Graph_WebPage extends AIOSEOP_Graph_Creativework {
168
  if ( ! $post_description && ! post_password_required( $post ) ) {
169
  if ( ! empty( $post->post_excerpt ) ) {
170
  $post_description = $post->post_excerpt;
171
- } elseif ( ! empty( $post->post_content ) ) {
172
- $post_description = $post->post_content;
173
- $post_description = aioseop_do_shortcodes( $post_description );
174
- $post_description = strip_shortcodes( $post_description );
175
- $post_description = wp_strip_all_tags( $post_description );
176
  }
177
  }
178
 
168
  if ( ! $post_description && ! post_password_required( $post ) ) {
169
  if ( ! empty( $post->post_excerpt ) ) {
170
  $post_description = $post->post_excerpt;
 
 
 
 
 
171
  }
172
  }
173
 
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.2.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.2.2
7
  License: GPLv2 or later
8
  Requires PHP: 5.2.4
9