Version Description
- Fix : Update successfully message after save settings
- Fix : See more posts in category in the sitemap
- Fix : Display XML sitemap link in multisite
Download this release
Release Info
Developer | JoomUnited |
Plugin | WP Meta SEO |
Version | 4.2.3 |
Comparing to | |
See all releases |
Code changes from version 4.2.2 to 4.2.3
- assets/css/metaseo_sitemap.css +2 -2
- assets/css/settings.css +6 -0
- assets/js/metaseo_sitemap.js +10 -4
- assets/js/settings.js +4 -0
- inc/class.metaseo-admin.php +9 -0
- inc/class.metaseo-sitemap.php +3 -3
- inc/pages/settings.php +1 -1
- inc/pages/settings/general.php +6 -1
- inc/pages/settings/search_console.php +5 -0
- inc/pages/settings/social.php +6 -1
- inc/pages/sitemaps/metaseo-source_posts.php +9 -11
- languages/wp-meta-seo-en_US.mo +0 -0
- readme.txt +6 -1
- wp-meta-seo.php +2 -2
assets/css/metaseo_sitemap.css
CHANGED
@@ -193,7 +193,7 @@ a:active {
|
|
193 |
width: calc(100% - 30px);
|
194 |
}
|
195 |
|
196 |
-
|
197 |
width: calc(100% - 320px);
|
198 |
max-width: 1200px;
|
199 |
height: 550px;
|
@@ -201,7 +201,7 @@ a:active {
|
|
201 |
overflow: auto;
|
202 |
}
|
203 |
|
204 |
-
|
205 |
width: 100%;
|
206 |
padding: 20px;
|
207 |
}
|
193 |
width: calc(100% - 30px);
|
194 |
}
|
195 |
|
196 |
+
.open-popup-posts-lists-content {
|
197 |
width: calc(100% - 320px);
|
198 |
max-width: 1200px;
|
199 |
height: 550px;
|
201 |
overflow: auto;
|
202 |
}
|
203 |
|
204 |
+
.open-popup-posts-lists-content .list_posts_sitemap {
|
205 |
width: 100%;
|
206 |
padding: 20px;
|
207 |
}
|
assets/css/settings.css
CHANGED
@@ -197,4 +197,10 @@
|
|
197 |
min-width: unset;
|
198 |
max-width: unset;
|
199 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
}
|
197 |
min-width: unset;
|
198 |
max-width: unset;
|
199 |
}
|
200 |
+
}
|
201 |
+
|
202 |
+
.save-settings-mess {
|
203 |
+
margin-left: 6% !important;
|
204 |
+
width: 90% !important;
|
205 |
+
padding: 10px 1% !important;
|
206 |
}
|
assets/js/metaseo_sitemap.js
CHANGED
@@ -20,13 +20,15 @@
|
|
20 |
});
|
21 |
|
22 |
$('.open-popup-posts-list').on('click', function () {
|
23 |
-
$('.list_posts_sitemap').html('');
|
24 |
-
$('.img-links-loader').show();
|
25 |
var category_id = $(this).data('category');
|
26 |
var slug = $(this).data('slug');
|
27 |
if (typeof category_id === "undefined") {
|
28 |
return;
|
29 |
}
|
|
|
|
|
|
|
|
|
30 |
$('.list_posts_sitemap .img-links-loader').show();
|
31 |
$.ajax({
|
32 |
url: wpms_localize.ajax_url,
|
@@ -40,7 +42,7 @@
|
|
40 |
},
|
41 |
success: function (res) {
|
42 |
$('.img-links-loader').hide();
|
43 |
-
$('.list_posts_sitemap').html(res);
|
44 |
if ($('#category' + slug + ':checked').length) {
|
45 |
$('.category' + slug).prop('checked', true);
|
46 |
}
|
@@ -146,6 +148,10 @@
|
|
146 |
wpms_save_create_sitemaps(link_sitemap);
|
147 |
});
|
148 |
|
|
|
|
|
|
|
|
|
149 |
/**
|
150 |
* Create sitemap
|
151 |
*/
|
@@ -250,7 +256,7 @@
|
|
250 |
var menu_id = $(v).data('menu_id');
|
251 |
columns_menu[menu_id] = $(v).val()
|
252 |
});
|
253 |
-
|
254 |
var datas = {
|
255 |
action: 'wpms_save_sitemap_settings',
|
256 |
wpms_sitemap_posts: JSON.stringify(posts),
|
20 |
});
|
21 |
|
22 |
$('.open-popup-posts-list').on('click', function () {
|
|
|
|
|
23 |
var category_id = $(this).data('category');
|
24 |
var slug = $(this).data('slug');
|
25 |
if (typeof category_id === "undefined") {
|
26 |
return;
|
27 |
}
|
28 |
+
|
29 |
+
$('#open-popup-posts-list-'+category_id+' .list_posts_sitemap').html('');
|
30 |
+
$('.img-links-loader').show();
|
31 |
+
|
32 |
$('.list_posts_sitemap .img-links-loader').show();
|
33 |
$.ajax({
|
34 |
url: wpms_localize.ajax_url,
|
42 |
},
|
43 |
success: function (res) {
|
44 |
$('.img-links-loader').hide();
|
45 |
+
$('#open-popup-posts-list-'+category_id+' .list_posts_sitemap').html(res);
|
46 |
if ($('#category' + slug + ':checked').length) {
|
47 |
$('.category' + slug).prop('checked', true);
|
48 |
}
|
148 |
wpms_save_create_sitemaps(link_sitemap);
|
149 |
});
|
150 |
|
151 |
+
$('.wpms-save-popup-posts-button').on('click', function() {
|
152 |
+
wpms_save_create_sitemaps();
|
153 |
+
});
|
154 |
+
|
155 |
/**
|
156 |
* Create sitemap
|
157 |
*/
|
256 |
var menu_id = $(v).data('menu_id');
|
257 |
columns_menu[menu_id] = $(v).val()
|
258 |
});
|
259 |
+
|
260 |
var datas = {
|
261 |
action: 'wpms_save_sitemap_settings',
|
262 |
wpms_sitemap_posts: JSON.stringify(posts),
|
assets/js/settings.js
CHANGED
@@ -38,5 +38,9 @@
|
|
38 |
}
|
39 |
|
40 |
});
|
|
|
|
|
|
|
|
|
41 |
});
|
42 |
})(jQuery);
|
38 |
}
|
39 |
|
40 |
});
|
41 |
+
|
42 |
+
$('.wpms-settings-dismiss').click(function() {
|
43 |
+
$(this).parent('.save-settings-mess').hide('fade');
|
44 |
+
});
|
45 |
});
|
46 |
})(jQuery);
|
inc/class.metaseo-admin.php
CHANGED
@@ -3309,6 +3309,15 @@ class MetaSeoAdmin
|
|
3309 |
case 'metaseo_settings':
|
3310 |
if (isset($_POST['_metaseo_settings'])) {
|
3311 |
update_option('_metaseo_settings', $_POST['_metaseo_settings']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3312 |
}
|
3313 |
$posts = get_posts(array('post_type' => 'page', 'posts_per_page' => - 1, 'numberposts' => - 1));
|
3314 |
$types_404 = array(
|
3309 |
case 'metaseo_settings':
|
3310 |
if (isset($_POST['_metaseo_settings'])) {
|
3311 |
update_option('_metaseo_settings', $_POST['_metaseo_settings']);
|
3312 |
+
if (isset($_POST['_metaseo_settings']['wpms_save_general'])) {
|
3313 |
+
$_SESSION['_metaseo_settings_general'] = 1;
|
3314 |
+
}
|
3315 |
+
if (isset($_POST['_metaseo_settings']['wpms_save_social'])) {
|
3316 |
+
$_SESSION['_metaseo_settings_social'] = 1;
|
3317 |
+
}
|
3318 |
+
if (isset($_POST['gscapi']['save'])) {
|
3319 |
+
$_SESSION['_metaseo_settings_search_console'] = 1;
|
3320 |
+
}
|
3321 |
}
|
3322 |
$posts = get_posts(array('post_type' => 'page', 'posts_per_page' => - 1, 'numberposts' => - 1));
|
3323 |
$types_404 = array(
|
inc/class.metaseo-sitemap.php
CHANGED
@@ -344,10 +344,10 @@ class MetaSeoSitemap
|
|
344 |
$home_url = preg_replace(
|
345 |
'/[^a-zA-ZА-Яа-я0-9\s]/',
|
346 |
'_',
|
347 |
-
str_replace('http://', '', str_replace('https://', '',
|
348 |
);
|
349 |
-
$value = ABSPATH . '/
|
350 |
-
$link =
|
351 |
} else {
|
352 |
$value = ABSPATH . '/' . $this->wpms_sitemap_name;
|
353 |
$link = get_option('siteurl') . '/' . $this->wpms_sitemap_name;
|
344 |
$home_url = preg_replace(
|
345 |
'/[^a-zA-ZА-Яа-я0-9\s]/',
|
346 |
'_',
|
347 |
+
str_replace('http://', '', str_replace('https://', '', site_url()))
|
348 |
);
|
349 |
+
$value = ABSPATH . '/sitemap_' . $home_url . '.xml';
|
350 |
+
$link = network_home_url('', 'relative') . 'sitemap_' . $home_url . '.xml';
|
351 |
} else {
|
352 |
$value = ABSPATH . '/' . $this->wpms_sitemap_name;
|
353 |
$link = get_option('siteurl') . '/' . $this->wpms_sitemap_name;
|
inc/pages/settings.php
CHANGED
@@ -22,7 +22,7 @@ if (is_plugin_active(WPMSEO_ADDON_FILENAME)) {
|
|
22 |
|
23 |
$tabs_data[] = array(
|
24 |
'id' => 'redirections_404',
|
25 |
-
'title' => __('
|
26 |
'icon' => 'directions'
|
27 |
);
|
28 |
|
22 |
|
23 |
$tabs_data[] = array(
|
24 |
'id' => 'redirections_404',
|
25 |
+
'title' => __('404 & Redirect', 'wp-meta-seo'),
|
26 |
'icon' => 'directions'
|
27 |
);
|
28 |
|
inc/pages/settings/general.php
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
<?php
|
2 |
/* Prohibit direct script loading */
|
3 |
defined('ABSPATH') || die('No direct script access allowed!');
|
|
|
|
|
|
|
|
|
|
|
4 |
?>
|
5 |
<div id="general" class="content-box">
|
6 |
<input type="hidden" name="wpms_hash" class="wpms_hash" value="">
|
@@ -87,7 +92,7 @@ defined('ABSPATH') || die('No direct script access allowed!');
|
|
87 |
<?php endforeach; ?>
|
88 |
|
89 |
<div class="wpms_width_100 wpms_left">
|
90 |
-
<button type="submit"
|
91 |
class="btn_wpms_save ju-button orange-button waves-effect waves-light"><?php esc_html_e('Save Changes', 'wp-meta-seo') ?></button>
|
92 |
</div>
|
93 |
</div>
|
1 |
<?php
|
2 |
/* Prohibit direct script loading */
|
3 |
defined('ABSPATH') || die('No direct script access allowed!');
|
4 |
+
if (isset($_SESSION['_metaseo_settings_general']) && $_SESSION['_metaseo_settings_general']) {
|
5 |
+
echo '<div class="save-settings-mess top_bar ju-notice-success"><strong>' . esc_html__('Setting saved successfully', 'wp-meta-seo') . '</strong>
|
6 |
+
<button type="button" class="wpms-settings-dismiss notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
|
7 |
+
unset($_SESSION['_metaseo_settings_general']);
|
8 |
+
}
|
9 |
?>
|
10 |
<div id="general" class="content-box">
|
11 |
<input type="hidden" name="wpms_hash" class="wpms_hash" value="">
|
92 |
<?php endforeach; ?>
|
93 |
|
94 |
<div class="wpms_width_100 wpms_left">
|
95 |
+
<button type="submit" name="_metaseo_settings[wpms_save_general]"
|
96 |
class="btn_wpms_save ju-button orange-button waves-effect waves-light"><?php esc_html_e('Save Changes', 'wp-meta-seo') ?></button>
|
97 |
</div>
|
98 |
</div>
|
inc/pages/settings/search_console.php
CHANGED
@@ -2,6 +2,11 @@
|
|
2 |
/* Prohibit direct script loading */
|
3 |
defined('ABSPATH') || die('No direct script access allowed!');
|
4 |
if (is_plugin_active(WPMSEO_ADDON_FILENAME)) {
|
|
|
|
|
|
|
|
|
|
|
5 |
// phpcs:ignore WordPress.Security.EscapeOutput -- Content escaped in 'wp-meta-seo-addon/inc/page/local_business.php' file
|
6 |
echo $search_console_html;
|
7 |
}
|
2 |
/* Prohibit direct script loading */
|
3 |
defined('ABSPATH') || die('No direct script access allowed!');
|
4 |
if (is_plugin_active(WPMSEO_ADDON_FILENAME)) {
|
5 |
+
if (isset($_SESSION['_metaseo_settings_search_console']) && $_SESSION['_metaseo_settings_search_console']) {
|
6 |
+
echo '<div class="save-settings-mess top_bar ju-notice-success"><strong>' . esc_html__('Setting saved successfully', 'wp-meta-seo') . '</strong>
|
7 |
+
<button type="button" class="wpms-settings-dismiss notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
|
8 |
+
unset($_SESSION['_metaseo_settings_search_console']);
|
9 |
+
}
|
10 |
// phpcs:ignore WordPress.Security.EscapeOutput -- Content escaped in 'wp-meta-seo-addon/inc/page/local_business.php' file
|
11 |
echo $search_console_html;
|
12 |
}
|
inc/pages/settings/social.php
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
<?php
|
2 |
/* Prohibit direct script loading */
|
3 |
defined('ABSPATH') || die('No direct script access allowed!');
|
|
|
|
|
|
|
|
|
|
|
4 |
?>
|
5 |
<div id="social" class="content-box">
|
6 |
<div class="ju-settings-option height_160 p-lrb-20">
|
@@ -110,7 +115,7 @@ defined('ABSPATH') || die('No direct script access allowed!');
|
|
110 |
</div>
|
111 |
|
112 |
<div class="wpms_width_100 wpms_left">
|
113 |
-
<button type="submit"
|
114 |
class="btn_wpms_save ju-button orange-button waves-effect waves-light"><?php esc_html_e('Save Changes', 'wp-meta-seo') ?></button>
|
115 |
</div>
|
116 |
</div>
|
1 |
<?php
|
2 |
/* Prohibit direct script loading */
|
3 |
defined('ABSPATH') || die('No direct script access allowed!');
|
4 |
+
if (isset($_SESSION['_metaseo_settings_social']) && $_SESSION['_metaseo_settings_social']) {
|
5 |
+
echo '<div class="save-settings-mess top_bar ju-notice-success"><strong>' . esc_html__('Setting saved successfully', 'wp-meta-seo') . '</strong>
|
6 |
+
<button type="button" class="wpms-settings-dismiss notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
|
7 |
+
unset($_SESSION['_metaseo_settings_social']);
|
8 |
+
}
|
9 |
?>
|
10 |
<div id="social" class="content-box">
|
11 |
<div class="ju-settings-option height_160 p-lrb-20">
|
115 |
</div>
|
116 |
|
117 |
<div class="wpms_width_100 wpms_left">
|
118 |
+
<button type="submit" name="_metaseo_settings[wpms_save_social]"
|
119 |
class="btn_wpms_save ju-button orange-button waves-effect waves-light"><?php esc_html_e('Save Changes', 'wp-meta-seo') ?></button>
|
120 |
</div>
|
121 |
</div>
|
inc/pages/sitemaps/metaseo-source_posts.php
CHANGED
@@ -196,20 +196,18 @@ defined('ABSPATH') || die('No direct script access allowed!');
|
|
196 |
}
|
197 |
|
198 |
if ($value->count_posts > 10) {
|
199 |
-
echo '<a href="#open-popup-posts-list" class="open-popup-posts-list ju-button wpms-small-btn wpms_left m-t-10 see-more-posts" data-slug="' . esc_attr($value->slug) . '" data-category="' . esc_attr($value->cat_ID) . '"><i class="material-icons wpms-middle">arrow_right_alt</i><label>' . esc_html__('See more posts in this category', 'wp-meta-seo') . '</label></a>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
}
|
201 |
}
|
202 |
?>
|
203 |
</div>
|
204 |
-
|
205 |
-
<div id="open-popup-posts-list" class="white-popup mfp-hide">
|
206 |
-
<div style="width: 100%; float: left; text-align: center">
|
207 |
-
<img class="img-links-loader" src="<?php echo esc_url(WPMETASEO_PLUGIN_URL . 'assets/images/ajax-loader.gif') ?>">
|
208 |
-
</div>
|
209 |
-
|
210 |
-
<div class="list_posts_sitemap">
|
211 |
-
|
212 |
-
</div>
|
213 |
-
</div>
|
214 |
<div class="holder holder_posts"></div>
|
215 |
</div>
|
196 |
}
|
197 |
|
198 |
if ($value->count_posts > 10) {
|
199 |
+
echo '<a href="#open-popup-posts-list-'.esc_attr($value->cat_ID).'" class="open-popup-posts-list ju-button wpms-small-btn wpms_left m-t-10 see-more-posts" data-slug="' . esc_attr($value->slug) . '" data-category="' . esc_attr($value->cat_ID) . '"><i class="material-icons wpms-middle">arrow_right_alt</i><label>' . esc_html__('See more posts in this category', 'wp-meta-seo') . '</label></a>';
|
200 |
+
// Popup per category
|
201 |
+
echo '<div id="open-popup-posts-list-' . esc_attr($value->cat_ID) . '" class="open-popup-posts-lists-content white-popup mfp-hide">';
|
202 |
+
echo '<div style="width: 100%; float: left; text-align: center">';
|
203 |
+
echo '<img class="img-links-loader" src="' . esc_url(WPMETASEO_PLUGIN_URL . 'assets/images/ajax-loader.gif') . '">';
|
204 |
+
echo '</div>';
|
205 |
+
echo '<div class="list_posts_sitemap">';
|
206 |
+
echo '</div>';
|
207 |
+
echo '</div>';
|
208 |
}
|
209 |
}
|
210 |
?>
|
211 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
<div class="holder holder_posts"></div>
|
213 |
</div>
|
languages/wp-meta-seo-en_US.mo
CHANGED
Binary file
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: JoomUnited
|
|
3 |
Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.3.2
|
6 |
-
Stable tag: 4.2.
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -259,6 +259,11 @@ Yes WP Meta SEO is compatible with Gutenberg editor since 3.7 version.
|
|
259 |
|
260 |
== Changelog ==
|
261 |
|
|
|
|
|
|
|
|
|
|
|
262 |
= 4.2.2 =
|
263 |
* Fix : JS error in Gutenberg editor that prevent the metabox to be 100% loaded
|
264 |
|
3 |
Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.3.2
|
6 |
+
Stable tag: 4.2.3
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
259 |
|
260 |
== Changelog ==
|
261 |
|
262 |
+
= 4.2.3 =
|
263 |
+
* Fix : Update successfully message after save settings
|
264 |
+
* Fix : See more posts in category in the sitemap
|
265 |
+
* Fix : Display XML sitemap link in multisite
|
266 |
+
|
267 |
= 4.2.2 =
|
268 |
* Fix : JS error in Gutenberg editor that prevent the metabox to be 100% loaded
|
269 |
|
wp-meta-seo.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: WP Meta SEO
|
5 |
* Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
|
6 |
* Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
|
7 |
-
* Version: 4.2.
|
8 |
* Text Domain: wp-meta-seo
|
9 |
* Domain Path: /languages
|
10 |
* Author: JoomUnited
|
@@ -132,7 +132,7 @@ if (!defined('WPMSEO_VERSION')) {
|
|
132 |
/**
|
133 |
* Plugin version
|
134 |
*/
|
135 |
-
define('WPMSEO_VERSION', '4.2.
|
136 |
}
|
137 |
|
138 |
if (!defined('WPMS_CLIENTID')) {
|
4 |
* Plugin Name: WP Meta SEO
|
5 |
* Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
|
6 |
* Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
|
7 |
+
* Version: 4.2.3
|
8 |
* Text Domain: wp-meta-seo
|
9 |
* Domain Path: /languages
|
10 |
* Author: JoomUnited
|
132 |
/**
|
133 |
* Plugin version
|
134 |
*/
|
135 |
+
define('WPMSEO_VERSION', '4.2.3');
|
136 |
}
|
137 |
|
138 |
if (!defined('WPMS_CLIENTID')) {
|