Version Description
- FIX Import tool (extension not valid error)
- FIX Valid From Date / Time for automatic Event schema (PRO)
Download this release
Release Info
Developer | rainbowgeek |
Plugin | SEOPress |
Version | 3.8.2.2 |
Comparing to | |
See all releases |
Code changes from version 3.8.2.1 to 3.8.2.2
- inc/functions/options-import-export.php +3 -18
- readme.txt +5 -1
- seopress.php +2 -2
inc/functions/options-import-export.php
CHANGED
@@ -131,11 +131,6 @@ function seopress_import_redirections_settings() {
|
|
131 |
if( empty( $import_file ) ) {
|
132 |
wp_die( __( 'Please upload a file to import' ) );
|
133 |
}
|
134 |
-
$extension = explode( '.', $import_file );
|
135 |
-
$extension = end($extension);
|
136 |
-
if( $extension != 'csv' ) {
|
137 |
-
wp_die( __( 'Please upload a valid .csv file' ) );
|
138 |
-
}
|
139 |
|
140 |
$csv = array_map('str_getcsv', file($import_file));
|
141 |
|
@@ -194,11 +189,6 @@ function seopress_import_yoast_redirections() {
|
|
194 |
if( empty( $import_file ) ) {
|
195 |
wp_die( __( 'Please upload a file to import' ) );
|
196 |
}
|
197 |
-
$extension = explode( '.', $import_file );
|
198 |
-
$extension = end($extension);
|
199 |
-
if( $extension != 'csv' ) {
|
200 |
-
wp_die( __( 'Please upload a valid .csv file' ) );
|
201 |
-
}
|
202 |
|
203 |
$csv = array_map('str_getcsv', file($import_file));
|
204 |
|
@@ -311,12 +301,6 @@ function seopress_import_redirections_plugin_settings() {
|
|
311 |
wp_die( __( 'Please upload a file to import' ) );
|
312 |
}
|
313 |
|
314 |
-
$extension = explode( '.', $import_file );
|
315 |
-
$extension = end($extension);
|
316 |
-
if( $extension != 'json' ) {
|
317 |
-
wp_die( __( 'Please upload a valid .json file' ) );
|
318 |
-
}
|
319 |
-
|
320 |
$settings = (array) json_decode( file_get_contents( $import_file ), true );
|
321 |
|
322 |
foreach ($settings['redirects'] as $redirect_key => $redirect_value) {
|
@@ -362,8 +346,9 @@ function seopress_import_rk_redirections() {
|
|
362 |
return;
|
363 |
if( ! current_user_can( seopress_capability( 'manage_options', 'import_settings' ) ) )
|
364 |
return;
|
365 |
-
|
366 |
-
$extension =
|
|
|
367 |
if( $extension != 'txt' ) {
|
368 |
wp_die( __( 'Please upload a valid .txt file' ) );
|
369 |
}
|
131 |
if( empty( $import_file ) ) {
|
132 |
wp_die( __( 'Please upload a file to import' ) );
|
133 |
}
|
|
|
|
|
|
|
|
|
|
|
134 |
|
135 |
$csv = array_map('str_getcsv', file($import_file));
|
136 |
|
189 |
if( empty( $import_file ) ) {
|
190 |
wp_die( __( 'Please upload a file to import' ) );
|
191 |
}
|
|
|
|
|
|
|
|
|
|
|
192 |
|
193 |
$csv = array_map('str_getcsv', file($import_file));
|
194 |
|
301 |
wp_die( __( 'Please upload a file to import' ) );
|
302 |
}
|
303 |
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
$settings = (array) json_decode( file_get_contents( $import_file ), true );
|
305 |
|
306 |
foreach ($settings['redirects'] as $redirect_key => $redirect_value) {
|
346 |
return;
|
347 |
if( ! current_user_can( seopress_capability( 'manage_options', 'import_settings' ) ) )
|
348 |
return;
|
349 |
+
|
350 |
+
$extension = pathinfo( $_FILES['import_file']['name'], PATHINFO_EXTENSION );
|
351 |
+
|
352 |
if( $extension != 'txt' ) {
|
353 |
wp_die( __( 'Please upload a valid .txt file' ) );
|
354 |
}
|
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,9 @@ 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.1 =
|
226 |
* FIX Fatal error Call to undefined function wc_get_product()
|
227 |
= 3.8.2 =
|
@@ -232,6 +235,7 @@ You're theme is probably using a deprecated function to handle the title. <a hre
|
|
232 |
* NEW Import redirects from Rank Math
|
233 |
* NEW SEO Ultimate import tool
|
234 |
* NEW WP Meta SEO import tool
|
|
|
235 |
* NEW Add servesCuisine property to LocalBusiness schemas related to Food (PRO)
|
236 |
* NEW "seopress_rgpd_full_message_styles" hook to filter cookie bar inline styles (https://www.seopress.org/support/hooks/filter-user-consent-inline-styles/)
|
237 |
* NEW "seopress_toggle_mobile_preview" hook to change the default Google Preview (desktop or mobile - https://www.seopress.org/support/hooks/set-google-snippet-preview-to-desktop-by-default/)
|
6 |
Requires at least: 4.7+
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 3.8.2.2
|
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.2 =
|
226 |
+
* FIX Import tool (extension not valid error)
|
227 |
+
* FIX Valid From Date / Time for automatic Event schema (PRO)
|
228 |
= 3.8.2.1 =
|
229 |
* FIX Fatal error Call to undefined function wc_get_product()
|
230 |
= 3.8.2 =
|
235 |
* NEW Import redirects from Rank Math
|
236 |
* NEW SEO Ultimate import tool
|
237 |
* NEW WP Meta SEO import tool
|
238 |
+
* NEW Custom capability for SEOPress pages (https://www.seopress.org/support/hooks/filter-user-capacities/)
|
239 |
* NEW Add servesCuisine property to LocalBusiness schemas related to Food (PRO)
|
240 |
* NEW "seopress_rgpd_full_message_styles" hook to filter cookie bar inline styles (https://www.seopress.org/support/hooks/filter-user-consent-inline-styles/)
|
241 |
* NEW "seopress_toggle_mobile_preview" hook to change the default Google Preview (desktop or mobile - https://www.seopress.org/support/hooks/set-google-snippet-preview-to-desktop-by-default/)
|
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.2
|
7 |
Author: SEOPress
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
54 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
55 |
//Define
|
56 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
57 |
+
define( 'SEOPRESS_VERSION', '3.8.2.2' );
|
58 |
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
|
59 |
|
60 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|