SEOPress - Version 3.3.4

Version Description

  • FIX Notice: Undefined variable: seopress_social_og_thumb
Download this release

Release Info

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

Code changes from version 3.3.3 to 3.3.4

inc/admin/ajax.php CHANGED
@@ -9,10 +9,13 @@ function seopress_do_real_preview() {
9
10
if (current_user_can('edit_posts') && is_admin()) {
11
12
- $cookies = array();
13
-
14
- foreach ( $_COOKIE as $name => $value ) {
15
- $cookies[] = new WP_Http_Cookie( array( 'name' => $name, 'value' => $value ) );
16
}
17
18
//Get post id
@@ -44,9 +47,12 @@ function seopress_do_real_preview() {
44
$args = array(
45
'blocking' => true,
46
'timeout' => 15,
47
- 'cookies' => $cookies,
48
);
49
50
$args = apply_filters('seopress_real_preview_remote', $args);
51
52
if ($seopress_origin =='post') { //Default: post type
9
10
if (current_user_can('edit_posts') && is_admin()) {
11
12
+ //Get cookies
13
+ if (isset($_COOKIE)) {
14
+ $cookies = array();
15
+
16
+ foreach ( $_COOKIE as $name => $value ) {
17
+ $cookies[] = new WP_Http_Cookie( array( 'name' => $name, 'value' => $value ) );
18
+ }
19
}
20
21
//Get post id
47
$args = array(
48
'blocking' => true,
49
'timeout' => 15,
50
);
51
52
+ if (!empty($cookies)) {
53
+ $args['cookies'] = $cookies;
54
+ }
55
+
56
$args = apply_filters('seopress_real_preview_remote', $args);
57
58
if ($seopress_origin =='post') { //Default: post type
inc/functions/options-social.php CHANGED
@@ -702,30 +702,31 @@ function seopress_social_fb_img_size_from_url($url) {
702
$image_src = wp_get_attachment_image_src( $post_id, 'full' );
703
704
//OG:IMAGE
705
- $seopress_social_og_thumb .= '<meta property="og:image" content="'.$url.'" />';
706
- $seopress_social_og_thumb .= "\n";
707
708
//OG:IMAGE:SECURE_URL IF SSL
709
if (is_ssl()) {
710
- $seopress_social_og_thumb .= '<meta property="og:image:secure_url" content="'.$url.'" />';
711
- $seopress_social_og_thumb .= "\n";
712
}
713
714
//OG:IMAGE:WIDTH + OG:IMAGE:HEIGHT
715
if (!empty($image_src)) {
716
- $seopress_social_og_thumb .= '<meta property="og:image:width" content="'.$image_src[1].'" />';
717
- $seopress_social_og_thumb .= "\n";
718
- $seopress_social_og_thumb .= '<meta property="og:image:height" content="'.$image_src[2].'" />';
719
- $seopress_social_og_thumb .= "\n";
720
}
721
722
//OG:IMAGE:ALT
723
if (get_post_meta($post_id, '_wp_attachment_image_alt', true) !='') {
724
- $seopress_social_og_thumb .= '<meta property="og:image:alt" content="'.get_post_meta($post_id, '_wp_attachment_image_alt', true).'" />';
725
- $seopress_social_og_thumb .= "\n";
726
}
727
728
- return $seopress_social_og_thumb;
729
}
730
}
731
702
$image_src = wp_get_attachment_image_src( $post_id, 'full' );
703
704
//OG:IMAGE
705
+ $seopress_social_og_img = '';
706
+ $seopress_social_og_img .= '<meta property="og:image" content="'.$url.'" />';
707
+ $seopress_social_og_img .= "\n";
708
709
//OG:IMAGE:SECURE_URL IF SSL
710
if (is_ssl()) {
711
+ $seopress_social_og_img .= '<meta property="og:image:secure_url" content="'.$url.'" />';
712
+ $seopress_social_og_img .= "\n";
713
}
714
715
//OG:IMAGE:WIDTH + OG:IMAGE:HEIGHT
716
if (!empty($image_src)) {
717
+ $seopress_social_og_img .= '<meta property="og:image:width" content="'.$image_src[1].'" />';
718
+ $seopress_social_og_img .= "\n";
719
+ $seopress_social_og_img .= '<meta property="og:image:height" content="'.$image_src[2].'" />';
720
+ $seopress_social_og_img .= "\n";
721
}
722
723
//OG:IMAGE:ALT
724
if (get_post_meta($post_id, '_wp_attachment_image_alt', true) !='') {
725
+ $seopress_social_og_img .= '<meta property="og:image:alt" content="'.get_post_meta($post_id, '_wp_attachment_image_alt', true).'" />';
726
+ $seopress_social_og_img .= "\n";
727
}
728
729
+ return $seopress_social_og_img;
730
}
731
}
732
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: seo, search engine optimization, meta title, open graph, content analysis,
6
Requires at least: 4.4+
7
Tested up to: 5.0
8
Requires PHP: 5.4
9
- Stable tag: 3.3.3
10
License: GPLv2 or later
11
License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
@@ -161,6 +161,8 @@ Subscribe on <a href="https://www.seopress.org/" target="_blank">seopress.org</a
161
44. Structured Data Types metaboxe in post, page, custom post type (PRO)
162
163
== Changelog ==
164
= 3.3.3 =
165
* NEW Add og:image:width, og:image:height, og:image:alt and og:image:secure_url for better social sharing
166
* FIX Notice $is_block_editor
6
Requires at least: 4.4+
7
Tested up to: 5.0
8
Requires PHP: 5.4
9
+ Stable tag: 3.3.4
10
License: GPLv2 or later
11
License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
161
44. Structured Data Types metaboxe in post, page, custom post type (PRO)
162
163
== Changelog ==
164
+ = 3.3.4 =
165
+ * FIX Notice: Undefined variable: seopress_social_og_thumb
166
= 3.3.3 =
167
* NEW Add og:image:width, og:image:height, og:image:alt and og:image:secure_url for better social sharing
168
* FIX Notice $is_block_editor
seopress.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: SEOPress
4
Plugin URI: https://www.seopress.org/
5
Description: The best plugin for SEO.
6
- Version: 3.3.3
7
Author: Benjamin Denis
8
Author URI: https://www.seopress.org/
9
License: GPLv2
@@ -53,7 +53,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
53
///////////////////////////////////////////////////////////////////////////////////////////////////
54
//Define
55
///////////////////////////////////////////////////////////////////////////////////////////////////
56
- define( 'SEOPRESS_VERSION', '3.3.3' );
57
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
58
59
///////////////////////////////////////////////////////////////////////////////////////////////////
3
Plugin Name: SEOPress
4
Plugin URI: https://www.seopress.org/
5
Description: The best plugin for SEO.
6
+ Version: 3.3.4
7
Author: Benjamin Denis
8
Author URI: https://www.seopress.org/
9
License: GPLv2
53
///////////////////////////////////////////////////////////////////////////////////////////////////
54
//Define
55
///////////////////////////////////////////////////////////////////////////////////////////////////
56
+ define( 'SEOPRESS_VERSION', '3.3.4' );
57
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
58
59
///////////////////////////////////////////////////////////////////////////////////////////////////