Version Description
- FIX PHP Fatal error:Uncaught TypeError: Argument 1 passed to Elementor\Core\Settings\Page\Manager::ajax_before_save_settings() must be of the type array, null given
- FIX Delete bulk edit option for Redirections
Download this release
Release Info
Developer | rainbowgeek |
Plugin | SEOPress |
Version | 4.1.3 |
Comparing to | |
See all releases |
Code changes from version 4.1.2 to 4.1.3
inc/admin/page-builders/elementor/inc/admin/class-document-settings-section.php
CHANGED
@@ -655,36 +655,39 @@ class Document_Settings_Section {
|
|
655 |
return;
|
656 |
}
|
657 |
|
658 |
-
|
659 |
|
660 |
-
|
661 |
-
$meta,
|
662 |
-
function( $key ) {
|
663 |
-
return in_array( $key, $this->get_allowed_meta_keys(), true );
|
664 |
-
},
|
665 |
-
ARRAY_FILTER_USE_KEY
|
666 |
-
);
|
667 |
-
|
668 |
-
if ( empty( $seopress_meta ) ) {
|
669 |
-
return;
|
670 |
-
}
|
671 |
|
672 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
673 |
|
674 |
-
|
675 |
-
|
676 |
-
|
|
|
|
|
677 |
|
678 |
-
|
679 |
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
|
|
688 |
}
|
689 |
|
690 |
public function get_allowed_meta_keys() {
|
655 |
return;
|
656 |
}
|
657 |
|
658 |
+
if ( class_exists('\Elementor\Plugin') && \Elementor\Plugin::$instance->editor->is_edit_mode() ) {
|
659 |
|
660 |
+
$meta = get_post_meta( $post_id );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
661 |
|
662 |
+
$seopress_meta = array_filter(
|
663 |
+
$meta,
|
664 |
+
function( $key ) {
|
665 |
+
return in_array( $key, $this->get_allowed_meta_keys(), true );
|
666 |
+
},
|
667 |
+
ARRAY_FILTER_USE_KEY
|
668 |
+
);
|
669 |
+
|
670 |
+
if ( empty( $seopress_meta ) ) {
|
671 |
+
return;
|
672 |
+
}
|
673 |
|
674 |
+
$settings = array();
|
675 |
+
|
676 |
+
foreach ( $seopress_meta as $key => $sm ) {
|
677 |
+
$settings[ $key ] = maybe_unserialize( ! empty( $sm[0] ) ? $sm[0] : '' );
|
678 |
+
}
|
679 |
|
680 |
+
$seo_data['settings'] = $settings;
|
681 |
|
682 |
+
$page_settings = get_metadata( 'post', $post_id, \Elementor\Core\Settings\Page\Manager::META_KEY, true);
|
683 |
+
$settings = array_merge( $page_settings, $settings );
|
684 |
+
|
685 |
+
remove_action( 'seopress/page-builders/elementor/save_meta', [ $this, 'on_seopress_meta_save' ], 99 );
|
686 |
+
$page_settings_manager = \Elementor\Core\Settings\Manager::get_settings_managers( 'page' );
|
687 |
+
$page_settings_manager->ajax_before_save_settings( $settings, $post_id );
|
688 |
+
$page_settings_manager->save_settings( $settings, $post_id );
|
689 |
+
add_action( 'seopress/page-builders/elementor/save_meta', [ $this, 'on_seopress_meta_save' ], 99 );
|
690 |
+
}
|
691 |
}
|
692 |
|
693 |
public function get_allowed_meta_keys() {
|
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.5
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 4.1.
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -145,6 +145,8 @@ We provide deep integration with Elementor page builder. Directly from Elementor
|
|
145 |
<li>and more!</li>
|
146 |
</ul>
|
147 |
|
|
|
|
|
148 |
<h3>Developers will love SEOPress!</h3>
|
149 |
|
150 |
Hundreds of hooks are available to extend SEOPress. <a href="https://www.seopress.org/support/hooks/?utm_source=w.org&utm_campaign=seopress&utm_medium=readme" target="_blank">Browse them all here</a>!
|
@@ -308,6 +310,9 @@ You're theme is probably using a deprecated function to handle the title. <a hre
|
|
308 |
8. Installation Wizard
|
309 |
|
310 |
== Changelog ==
|
|
|
|
|
|
|
311 |
= 4.1.2 =
|
312 |
* INFO Label for breadcrumbs in Elementor
|
313 |
* FIX Elementor content analysis
|
@@ -326,7 +331,7 @@ You're theme is probably using a deprecated function to handle the title. <a hre
|
|
326 |
* NEW UI for adding/editing/managing target keywords 🎉
|
327 |
* NEW Paginated XML sitemaps for taxonomies and videos 🎉
|
328 |
* NEW Import term metadata from CSV file using our import tool (PRO) 🎉
|
329 |
-
* NEW Custom user capabilities for Redirections post type (edit_redirection, edit_redirections, edit_others_redirections, publish_redirections, read_redirection, read_private_redirections, delete_redirection, delete_others_redirections)
|
330 |
* NEW Remove noindex item from Admin Bar in backend and frontend option from SEO, Advanced page, Appearance tab
|
331 |
* NEW Change expiration date of the user consent cookie option from SEO, Analytics page, Cookie bar / GDPR tab
|
332 |
* NEW Add servesCuisine for LocalBusiness automatic schema
|
6 |
Requires at least: 4.7+
|
7 |
Tested up to: 5.5
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 4.1.3
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
145 |
<li>and more!</li>
|
146 |
</ul>
|
147 |
|
148 |
+
[youtube https://www.youtube.com/watch?v=amfozNvYzPU]
|
149 |
+
|
150 |
<h3>Developers will love SEOPress!</h3>
|
151 |
|
152 |
Hundreds of hooks are available to extend SEOPress. <a href="https://www.seopress.org/support/hooks/?utm_source=w.org&utm_campaign=seopress&utm_medium=readme" target="_blank">Browse them all here</a>!
|
310 |
8. Installation Wizard
|
311 |
|
312 |
== Changelog ==
|
313 |
+
= 4.1.3 =
|
314 |
+
* FIX PHP Fatal error: Uncaught TypeError: Argument 1 passed to Elementor\Core\Settings\Page\Manager::ajax_before_save_settings() must be of the type array, null given
|
315 |
+
* FIX Delete bulk edit option for Redirections
|
316 |
= 4.1.2 =
|
317 |
* INFO Label for breadcrumbs in Elementor
|
318 |
* FIX Elementor content analysis
|
331 |
* NEW UI for adding/editing/managing target keywords 🎉
|
332 |
* NEW Paginated XML sitemaps for taxonomies and videos 🎉
|
333 |
* NEW Import term metadata from CSV file using our import tool (PRO) 🎉
|
334 |
+
* NEW Custom user capabilities for Redirections post type (edit_redirection, edit_redirections, edit_others_redirections, publish_redirections, read_redirection, read_private_redirections, delete_redirection, delete_others_redirections, delete_published_redirections)
|
335 |
* NEW Remove noindex item from Admin Bar in backend and frontend option from SEO, Advanced page, Appearance tab
|
336 |
* NEW Change expiration date of the user consent cookie option from SEO, Analytics page, Cookie bar / GDPR tab
|
337 |
* NEW Add servesCuisine for LocalBusiness automatic schema
|
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: 4.1.
|
7 |
Author: SEOPress
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
@@ -55,7 +55,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
|
|
55 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
56 |
//Define
|
57 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
58 |
-
define( 'SEOPRESS_VERSION', '4.1.
|
59 |
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
|
60 |
|
61 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
3 |
Plugin Name: SEOPress
|
4 |
Plugin URI: https://www.seopress.org/
|
5 |
Description: One of the best SEO plugins for WordPress.
|
6 |
+
Version: 4.1.3
|
7 |
Author: SEOPress
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
55 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
56 |
//Define
|
57 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
58 |
+
define( 'SEOPRESS_VERSION', '4.1.3' );
|
59 |
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
|
60 |
|
61 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|