Version Description
- FIX Fatal error Call to undefined function wc_get_product()
Download this release
Release Info
Developer | rainbowgeek |
Plugin | SEOPress |
Version | 3.8.2.1 |
Comparing to | |
See all releases |
Code changes from version 3.8.2 to 3.8.2.1
- inc/functions/options.php +3 -5
- readme.txt +3 -1
- seopress.php +2 -2
inc/functions/options.php
CHANGED
@@ -426,11 +426,9 @@ if (seopress_get_toggle_option('advanced') =='1') {
|
|
426 |
global $product;
|
427 |
}
|
428 |
$post = get_post( $post );
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
if ($post) {
|
435 |
$_seopress_robots_primary_cat = get_post_meta($post->ID,'_seopress_robots_primary_cat',true);
|
436 |
if (isset($_seopress_robots_primary_cat) && $_seopress_robots_primary_cat !='' && $_seopress_robots_primary_cat !='none') {
|
426 |
global $product;
|
427 |
}
|
428 |
$post = get_post( $post );
|
429 |
+
if (function_exists('wc_get_product')) {
|
430 |
+
$product = wc_get_product( $post->ID );
|
431 |
+
}
|
|
|
|
|
432 |
if ($post) {
|
433 |
$_seopress_robots_primary_cat = get_post_meta($post->ID,'_seopress_robots_primary_cat',true);
|
434 |
if (isset($_seopress_robots_primary_cat) && $_seopress_robots_primary_cat !='' && $_seopress_robots_primary_cat !='none') {
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: SEO, XML sitemap, meta title, open graph, content analysis, knowledge grap
|
|
6 |
Requires at least: 4.7+
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 3.8.2
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -222,6 +222,8 @@ You're theme is probably using a deprecated function to handle the title. <a hre
|
|
222 |
7. Installation Wizard
|
223 |
|
224 |
== Changelog ==
|
|
|
|
|
225 |
= 3.8.2 =
|
226 |
* NEW 🎉 Advanced conditions for schemas! (PRO)
|
227 |
* NEW Google Mobile Preview!
|
6 |
Requires at least: 4.7+
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 3.8.2.1
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
222 |
7. Installation Wizard
|
223 |
|
224 |
== Changelog ==
|
225 |
+
= 3.8.2.1 =
|
226 |
+
* FIX Fatal error Call to undefined function wc_get_product()
|
227 |
= 3.8.2 =
|
228 |
* NEW 🎉 Advanced conditions for schemas! (PRO)
|
229 |
* NEW Google Mobile Preview!
|
seopress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SEOPress
|
4 |
Plugin URI: https://www.seopress.org/
|
5 |
Description: One of the best SEO plugins for WordPress.
|
6 |
-
Version: 3.8.2
|
7 |
Author: SEOPress
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
@@ -54,7 +54,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
|
|
54 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
55 |
//Define
|
56 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
57 |
-
define( 'SEOPRESS_VERSION', '3.8.2' );
|
58 |
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
|
59 |
|
60 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
3 |
Plugin Name: SEOPress
|
4 |
Plugin URI: https://www.seopress.org/
|
5 |
Description: One of the best SEO plugins for WordPress.
|
6 |
+
Version: 3.8.2.1
|
7 |
Author: SEOPress
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
54 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
55 |
//Define
|
56 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
57 |
+
define( 'SEOPRESS_VERSION', '3.8.2.1' );
|
58 |
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
|
59 |
|
60 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|