Version Description
(26/02/2021) = * INFO Improve UI by adding a new tab (Image SEO) to the Advanced settings page * FIX Quick edit metadata from posts list * FIX WooCommerce Breadcrumbs Shop page
Download this release
Release Info
Developer | rainbowgeek |
Plugin | SEOPress |
Version | 4.4.0.6 |
Comparing to | |
See all releases |
Code changes from version 4.4.0.5 to 4.4.0.6
- inc/admin/admin.php +45 -26
- readme.txt +5 -1
- seopress.php +2 -2
- src/Actions/Admin/ManageColumn.php +14 -15
- vendor/composer/InstalledVersions.php +2 -2
- vendor/composer/installed.php +2 -2
inc/admin/admin.php
CHANGED
@@ -595,9 +595,10 @@ class seopress_options {
|
|
595 |
<?php
|
596 |
|
597 |
$plugin_settings_tabs = [
|
598 |
-
'
|
599 |
-
'
|
600 |
-
'
|
|
|
601 |
];
|
602 |
|
603 |
echo '<div class="nav-tab-wrapper">';
|
@@ -605,9 +606,14 @@ class seopress_options {
|
|
605 |
echo '<a id="' . $tab_key . '-tab" class="nav-tab" href="?page=seopress-advanced#tab=' . $tab_key . '">' . $tab_caption . '</a>';
|
606 |
}
|
607 |
echo '</div>'; ?>
|
608 |
-
|
609 |
echo 'active';
|
610 |
-
} ?>" id="
|
|
|
|
|
|
|
|
|
|
|
611 |
<div class="seopress-tab <?php if ('tab_seopress_advanced_appearance' == $current_tab) {
|
612 |
echo 'active';
|
613 |
} ?>" id="tab_seopress_advanced_appearance"><?php do_settings_sections('seopress-settings-admin-advanced-appearance'); ?></div>
|
@@ -2289,77 +2295,86 @@ class seopress_options {
|
|
2289 |
'seopress_setting_section_google_analytics_matomo' // Section
|
2290 |
);
|
2291 |
|
2292 |
-
//
|
2293 |
add_settings_section(
|
2294 |
-
'
|
2295 |
'',
|
2296 |
-
//__("
|
2297 |
-
[$this, '
|
2298 |
-
'seopress-settings-admin-advanced-
|
2299 |
);
|
2300 |
|
2301 |
add_settings_field(
|
2302 |
'seopress_advanced_advanced_attachments', // ID
|
2303 |
__('Redirect attachment pages to post parent', 'wp-seopress'), // Title
|
2304 |
[$this, 'seopress_advanced_advanced_attachments_callback'], // Callback
|
2305 |
-
'seopress-settings-admin-advanced-
|
2306 |
-
'
|
2307 |
);
|
2308 |
|
2309 |
add_settings_field(
|
2310 |
'seopress_advanced_advanced_attachments_file', // ID
|
2311 |
__('Redirect attachment pages to their file URL', 'wp-seopress'), // Title
|
2312 |
[$this, 'seopress_advanced_advanced_attachments_file_callback'], // Callback
|
2313 |
-
'seopress-settings-admin-advanced-
|
2314 |
-
'
|
2315 |
);
|
2316 |
|
2317 |
add_settings_field(
|
2318 |
'seopress_advanced_advanced_replytocom', // ID
|
2319 |
__('Remove ?replytocom link to avoid duplicate content', 'wp-seopress'), // Title
|
2320 |
[$this, 'seopress_advanced_advanced_replytocom_callback'], // Callback
|
2321 |
-
'seopress-settings-admin-advanced-
|
2322 |
-
'
|
2323 |
);
|
2324 |
|
2325 |
add_settings_field(
|
2326 |
'seopress_advanced_advanced_image_auto_title_editor', // ID
|
2327 |
__('Automatically set the image Title', 'wp-seopress'), // Title
|
2328 |
[$this, 'seopress_advanced_advanced_image_auto_title_editor_callback'], // Callback
|
2329 |
-
'seopress-settings-admin-advanced-
|
2330 |
-
'
|
2331 |
);
|
2332 |
|
2333 |
add_settings_field(
|
2334 |
'seopress_advanced_advanced_image_auto_alt_editor', // ID
|
2335 |
__('Automatically set the image Alt text', 'wp-seopress'), // Title
|
2336 |
[$this, 'seopress_advanced_advanced_image_auto_alt_editor_callback'], // Callback
|
2337 |
-
'seopress-settings-admin-advanced-
|
2338 |
-
'
|
2339 |
);
|
2340 |
|
2341 |
add_settings_field(
|
2342 |
'seopress_advanced_advanced_image_auto_alt_target_kw', // ID
|
2343 |
__('Automatically set the image Alt text from target keywords', 'wp-seopress'), // Title
|
2344 |
[$this, 'seopress_advanced_advanced_image_auto_alt_target_kw_callback'], // Callback
|
2345 |
-
'seopress-settings-admin-advanced-
|
2346 |
-
'
|
2347 |
);
|
2348 |
|
2349 |
add_settings_field(
|
2350 |
'seopress_advanced_advanced_image_auto_caption_editor', // ID
|
2351 |
__('Automatically set the image Caption', 'wp-seopress'), // Title
|
2352 |
[$this, 'seopress_advanced_advanced_image_auto_caption_editor_callback'], // Callback
|
2353 |
-
'seopress-settings-admin-advanced-
|
2354 |
-
'
|
2355 |
);
|
2356 |
|
2357 |
add_settings_field(
|
2358 |
'seopress_advanced_advanced_image_auto_desc_editor', // ID
|
2359 |
__('Automatically set the image Description', 'wp-seopress'), // Title
|
2360 |
[$this, 'seopress_advanced_advanced_image_auto_desc_editor_callback'], // Callback
|
2361 |
-
'seopress-settings-admin-advanced-
|
2362 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2363 |
);
|
2364 |
|
2365 |
add_settings_field(
|
@@ -2987,6 +3002,10 @@ class seopress_options {
|
|
2987 |
echo '<p>' . __('Your <strong>Custom Dimensions</strong> will also work with Matomo tracking code', 'wp-seopress') . '</p>';
|
2988 |
}
|
2989 |
|
|
|
|
|
|
|
|
|
2990 |
public function print_section_info_advanced_advanced() {
|
2991 |
echo __('<p>Advanced SEO options.</p>', 'wp-seopress');
|
2992 |
}
|
595 |
<?php
|
596 |
|
597 |
$plugin_settings_tabs = [
|
598 |
+
'tab_seopress_advanced_image' => __('Image SEO', 'wp-seopress'),
|
599 |
+
'tab_seopress_advanced_advanced' => __('Advanced', 'wp-seopress'),
|
600 |
+
'tab_seopress_advanced_appearance' => __('Appearance', 'wp-seopress'),
|
601 |
+
'tab_seopress_advanced_security' => __('Security', 'wp-seopress'),
|
602 |
];
|
603 |
|
604 |
echo '<div class="nav-tab-wrapper">';
|
606 |
echo '<a id="' . $tab_key . '-tab" class="nav-tab" href="?page=seopress-advanced#tab=' . $tab_key . '">' . $tab_caption . '</a>';
|
607 |
}
|
608 |
echo '</div>'; ?>
|
609 |
+
<div class="seopress-tab <?php if ('tab_seopress_advanced_image' == $current_tab) {
|
610 |
echo 'active';
|
611 |
+
} ?>" id="tab_seopress_advanced_image"><?php do_settings_sections('seopress-settings-admin-advanced-image'); ?>
|
612 |
+
</div>
|
613 |
+
<div class="seopress-tab <?php if ('tab_seopress_advanced_advanced' == $current_tab) {
|
614 |
+
echo 'active';
|
615 |
+
} ?>" id="tab_seopress_advanced_advanced"><?php do_settings_sections('seopress-settings-admin-advanced-advanced'); ?>
|
616 |
+
</div>
|
617 |
<div class="seopress-tab <?php if ('tab_seopress_advanced_appearance' == $current_tab) {
|
618 |
echo 'active';
|
619 |
} ?>" id="tab_seopress_advanced_appearance"><?php do_settings_sections('seopress-settings-admin-advanced-appearance'); ?></div>
|
2295 |
'seopress_setting_section_google_analytics_matomo' // Section
|
2296 |
);
|
2297 |
|
2298 |
+
//Image SECTION============================================================================
|
2299 |
add_settings_section(
|
2300 |
+
'seopress_setting_section_advanced_image', // ID
|
2301 |
'',
|
2302 |
+
//__("Image SEO","wp-seopress"), // Title
|
2303 |
+
[$this, 'print_section_info_advanced_image'], // Callback
|
2304 |
+
'seopress-settings-admin-advanced-image' // Page
|
2305 |
);
|
2306 |
|
2307 |
add_settings_field(
|
2308 |
'seopress_advanced_advanced_attachments', // ID
|
2309 |
__('Redirect attachment pages to post parent', 'wp-seopress'), // Title
|
2310 |
[$this, 'seopress_advanced_advanced_attachments_callback'], // Callback
|
2311 |
+
'seopress-settings-admin-advanced-image', // Page
|
2312 |
+
'seopress_setting_section_advanced_image' // Section
|
2313 |
);
|
2314 |
|
2315 |
add_settings_field(
|
2316 |
'seopress_advanced_advanced_attachments_file', // ID
|
2317 |
__('Redirect attachment pages to their file URL', 'wp-seopress'), // Title
|
2318 |
[$this, 'seopress_advanced_advanced_attachments_file_callback'], // Callback
|
2319 |
+
'seopress-settings-admin-advanced-image', // Page
|
2320 |
+
'seopress_setting_section_advanced_image' // Section
|
2321 |
);
|
2322 |
|
2323 |
add_settings_field(
|
2324 |
'seopress_advanced_advanced_replytocom', // ID
|
2325 |
__('Remove ?replytocom link to avoid duplicate content', 'wp-seopress'), // Title
|
2326 |
[$this, 'seopress_advanced_advanced_replytocom_callback'], // Callback
|
2327 |
+
'seopress-settings-admin-advanced-image', // Page
|
2328 |
+
'seopress_setting_section_advanced_image' // Section
|
2329 |
);
|
2330 |
|
2331 |
add_settings_field(
|
2332 |
'seopress_advanced_advanced_image_auto_title_editor', // ID
|
2333 |
__('Automatically set the image Title', 'wp-seopress'), // Title
|
2334 |
[$this, 'seopress_advanced_advanced_image_auto_title_editor_callback'], // Callback
|
2335 |
+
'seopress-settings-admin-advanced-image', // Page
|
2336 |
+
'seopress_setting_section_advanced_image' // Section
|
2337 |
);
|
2338 |
|
2339 |
add_settings_field(
|
2340 |
'seopress_advanced_advanced_image_auto_alt_editor', // ID
|
2341 |
__('Automatically set the image Alt text', 'wp-seopress'), // Title
|
2342 |
[$this, 'seopress_advanced_advanced_image_auto_alt_editor_callback'], // Callback
|
2343 |
+
'seopress-settings-admin-advanced-image', // Page
|
2344 |
+
'seopress_setting_section_advanced_image' // Section
|
2345 |
);
|
2346 |
|
2347 |
add_settings_field(
|
2348 |
'seopress_advanced_advanced_image_auto_alt_target_kw', // ID
|
2349 |
__('Automatically set the image Alt text from target keywords', 'wp-seopress'), // Title
|
2350 |
[$this, 'seopress_advanced_advanced_image_auto_alt_target_kw_callback'], // Callback
|
2351 |
+
'seopress-settings-admin-advanced-image', // Page
|
2352 |
+
'seopress_setting_section_advanced_image' // Section
|
2353 |
);
|
2354 |
|
2355 |
add_settings_field(
|
2356 |
'seopress_advanced_advanced_image_auto_caption_editor', // ID
|
2357 |
__('Automatically set the image Caption', 'wp-seopress'), // Title
|
2358 |
[$this, 'seopress_advanced_advanced_image_auto_caption_editor_callback'], // Callback
|
2359 |
+
'seopress-settings-admin-advanced-image', // Page
|
2360 |
+
'seopress_setting_section_advanced_image' // Section
|
2361 |
);
|
2362 |
|
2363 |
add_settings_field(
|
2364 |
'seopress_advanced_advanced_image_auto_desc_editor', // ID
|
2365 |
__('Automatically set the image Description', 'wp-seopress'), // Title
|
2366 |
[$this, 'seopress_advanced_advanced_image_auto_desc_editor_callback'], // Callback
|
2367 |
+
'seopress-settings-admin-advanced-image', // Page
|
2368 |
+
'seopress_setting_section_advanced_image' // Section
|
2369 |
+
);
|
2370 |
+
|
2371 |
+
//Advanced SECTION=========================================================================
|
2372 |
+
add_settings_section(
|
2373 |
+
'seopress_setting_section_advanced_advanced', // ID
|
2374 |
+
'',
|
2375 |
+
//__("Advanced","wp-seopress"), // Title
|
2376 |
+
[$this, 'print_section_info_advanced_advanced'], // Callback
|
2377 |
+
'seopress-settings-admin-advanced-advanced' // Page
|
2378 |
);
|
2379 |
|
2380 |
add_settings_field(
|
3002 |
echo '<p>' . __('Your <strong>Custom Dimensions</strong> will also work with Matomo tracking code', 'wp-seopress') . '</p>';
|
3003 |
}
|
3004 |
|
3005 |
+
public function print_section_info_advanced_image() {
|
3006 |
+
echo __('<p>Image SEO options.</p>', 'wp-seopress');
|
3007 |
+
}
|
3008 |
+
|
3009 |
public function print_section_info_advanced_advanced() {
|
3010 |
echo __('<p>Advanced SEO options.</p>', 'wp-seopress');
|
3011 |
}
|
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.6
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 4.4.0.
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -320,6 +320,10 @@ You're theme is probably using a deprecated function to handle the title. <a hre
|
|
320 |
9. Schemas metabox
|
321 |
|
322 |
== Changelog ==
|
|
|
|
|
|
|
|
|
323 |
= 4.4.0.5 (19/02/2021) =
|
324 |
* FIX "Use the target keywords if not alternative text set for the image" option
|
325 |
= 4.4.0.4 (18/02/2021) =
|
6 |
Requires at least: 4.7+
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 4.4.0.6
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
320 |
9. Schemas metabox
|
321 |
|
322 |
== Changelog ==
|
323 |
+
= 4.4.0.6 (26/02/2021) =
|
324 |
+
* INFO Improve UI by adding a new tab (Image SEO) to the Advanced settings page
|
325 |
+
* FIX Quick edit metadata from posts list
|
326 |
+
* FIX WooCommerce Breadcrumbs Shop page
|
327 |
= 4.4.0.5 (19/02/2021) =
|
328 |
* FIX "Use the target keywords if not alternative text set for the image" option
|
329 |
= 4.4.0.4 (18/02/2021) =
|
seopress.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: SEOPress
|
|
4 |
Plugin URI: https://www.seopress.org/
|
5 |
Description: One of the best SEO plugins for WordPress.
|
6 |
Author: SEOPress
|
7 |
-
Version: 4.4.0.
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
10 |
Text Domain: wp-seopress
|
@@ -55,7 +55,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
|
|
55 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
56 |
//Define
|
57 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
58 |
-
define('SEOPRESS_VERSION', '4.4.0.
|
59 |
define('SEOPRESS_AUTHOR', 'Benjamin Denis');
|
60 |
define('SEOPRESS_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
|
61 |
define('SEOPRESS_TEMPLATE_DIR', SEOPRESS_PLUGIN_DIR_PATH . 'templates');
|
4 |
Plugin URI: https://www.seopress.org/
|
5 |
Description: One of the best SEO plugins for WordPress.
|
6 |
Author: SEOPress
|
7 |
+
Version: 4.4.0.6
|
8 |
Author URI: https://www.seopress.org/
|
9 |
License: GPLv2
|
10 |
Text Domain: wp-seopress
|
55 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
56 |
//Define
|
57 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
58 |
+
define('SEOPRESS_VERSION', '4.4.0.6');
|
59 |
define('SEOPRESS_AUTHOR', 'Benjamin Denis');
|
60 |
define('SEOPRESS_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
|
61 |
define('SEOPRESS_TEMPLATE_DIR', SEOPRESS_PLUGIN_DIR_PATH . 'templates');
|
src/Actions/Admin/ManageColumn.php
CHANGED
@@ -115,25 +115,24 @@ class ManageColumn implements ExecuteHooksBackend {
|
|
115 |
public function displayColumn($column, $post_id) {
|
116 |
switch ($column) {
|
117 |
case 'seopress_title':
|
118 |
-
$
|
|
|
119 |
$context = seopress_get_service('ContextPage')->buildContextWithCurrentId($post_id)->getContext();
|
120 |
-
$title = $this->tagsToStringService->replace($
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
</div>
|
125 |
-
<?php
|
126 |
break;
|
127 |
|
128 |
case 'seopress_desc':
|
129 |
-
$
|
130 |
-
$context
|
131 |
-
$description
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
</div>
|
136 |
-
<?php
|
137 |
break;
|
138 |
|
139 |
case 'seopress_redirect_enable':
|
115 |
public function displayColumn($column, $post_id) {
|
116 |
switch ($column) {
|
117 |
case 'seopress_title':
|
118 |
+
$metaPostTitle = get_post_meta($post_id, '_seopress_titles_title', true);
|
119 |
+
|
120 |
$context = seopress_get_service('ContextPage')->buildContextWithCurrentId($post_id)->getContext();
|
121 |
+
$title = $this->tagsToStringService->replace($metaPostTitle, $context);
|
122 |
+
if (empty($title)) {
|
123 |
+
$title = $metaPostTitle;
|
124 |
+
}
|
125 |
+
echo sprintf('<div id="seopress_title-%s">%s</div>', esc_attr($post_id), $title);
|
|
|
126 |
break;
|
127 |
|
128 |
case 'seopress_desc':
|
129 |
+
$metaDescription = get_post_meta($post_id, '_seopress_titles_desc', true);
|
130 |
+
$context = seopress_get_service('ContextPage')->buildContextWithCurrentId($post_id)->getContext();
|
131 |
+
$description = $this->tagsToStringService->replace($metaDescription, $context);
|
132 |
+
if (empty($description)) {
|
133 |
+
$description = $metaDescription;
|
134 |
+
}
|
135 |
+
echo sprintf('<div id="seopress_desc-%s">%s</div>', esc_attr($post_id), $description);
|
|
|
136 |
break;
|
137 |
|
138 |
case 'seopress_redirect_enable':
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -29,7 +29,7 @@ private static $installed = array (
|
|
29 |
'aliases' =>
|
30 |
array (
|
31 |
),
|
32 |
-
'reference' => '
|
33 |
'name' => 'wp-seopress/wp-seopress',
|
34 |
),
|
35 |
'versions' =>
|
@@ -41,7 +41,7 @@ private static $installed = array (
|
|
41 |
'aliases' =>
|
42 |
array (
|
43 |
),
|
44 |
-
'reference' => '
|
45 |
),
|
46 |
),
|
47 |
);
|
29 |
'aliases' =>
|
30 |
array (
|
31 |
),
|
32 |
+
'reference' => 'dc1b13e2afd276e8e283386d16f25b759614663a',
|
33 |
'name' => 'wp-seopress/wp-seopress',
|
34 |
),
|
35 |
'versions' =>
|
41 |
'aliases' =>
|
42 |
array (
|
43 |
),
|
44 |
+
'reference' => 'dc1b13e2afd276e8e283386d16f25b759614663a',
|
45 |
),
|
46 |
),
|
47 |
);
|
vendor/composer/installed.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
-
'reference' => '
|
10 |
'name' => 'wp-seopress/wp-seopress',
|
11 |
),
|
12 |
'versions' =>
|
@@ -18,7 +18,7 @@
|
|
18 |
'aliases' =>
|
19 |
array (
|
20 |
),
|
21 |
-
'reference' => '
|
22 |
),
|
23 |
),
|
24 |
);
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
+
'reference' => 'dc1b13e2afd276e8e283386d16f25b759614663a',
|
10 |
'name' => 'wp-seopress/wp-seopress',
|
11 |
),
|
12 |
'versions' =>
|
18 |
'aliases' =>
|
19 |
array (
|
20 |
),
|
21 |
+
'reference' => 'dc1b13e2afd276e8e283386d16f25b759614663a',
|
22 |
),
|
23 |
),
|
24 |
);
|