WP Meta SEO - Version 4.0.5

Version Description

  • Fix : Add index to improve the query performance
    • Fix : Rredirect link with xlink
    • Fix : Display of HTML Sitemap theme with DIVI theme
    • Fix : Redirect link in custom redirect
Download this release

Release Info

Developer JoomUnited
Plugin Icon 128x128 WP Meta SEO
Version 4.0.5
Comparing to
See all releases

Code changes from version 4.0.4 to 4.0.5

assets/js/wpms-tabs.js ADDED
@@ -0,0 +1,7 @@
1
+ (function ($) {
2
+ $(document).ready(function(){
3
+ $("ul.wpmstabs .tab a").on('click', function(e) {
4
+ $(this).unbind('click').trigger('click');
5
+ });
6
+ });
7
+ }( jQuery ));
inc/class.metaseo-admin.php CHANGED
@@ -550,6 +550,21 @@ class MetaSeoAdmin
550
$wpdb->query('ALTER TABLE ' . $wpdb->prefix . 'wpms_links MODIFY `link_url` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL');
551
update_option($option_v, true);
552
}
553
}
554
555
/**
550
$wpdb->query('ALTER TABLE ' . $wpdb->prefix . 'wpms_links MODIFY `link_url` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL');
551
update_option($option_v, true);
552
}
553
+
554
+ // Add index for wpms links
555
+ $option_v = 'metaseo_db_version4.0.4';
556
+ $db_installed = get_option($option_v, false);
557
+ if (!$db_installed) {
558
+ // Add index for wpms_links table;
559
+ $wpdb->query('ALTER TABLE ' . $wpdb->prefix . 'wpms_links ADD INDEX linkurl(link_url(256))');
560
+ $wpdb->query('ALTER TABLE ' . $wpdb->prefix . 'wpms_links ADD INDEX typeurl(type(50))');
561
+ $wpdb->query('ALTER TABLE ' . $wpdb->prefix . 'wpms_links ADD INDEX sourceid(source_id)');
562
+
563
+ // Add index for metaseo_images table;
564
+ $wpdb->query('ALTER TABLE ' . $wpdb->prefix . 'metaseo_images ADD INDEX postid(post_id)');
565
+ // Update option metaseo_db
566
+ update_option($option_v, true);
567
+ }
568
}
569
570
/**
inc/class.metaseo-sitemap.php CHANGED
@@ -1528,6 +1528,13 @@ ORDER BY p.post_date DESC', array('publish', $post_type, $taxo, $cat->slug)));
1528
WPMSEO_VERSION,
1529
true
1530
);
1531
wp_enqueue_style(
1532
'wpms_materialize_style',
1533
plugins_url('assets/css/materialize/materialize_frontend_tab_theme.css', dirname(__FILE__)),
@@ -1538,8 +1545,9 @@ ORDER BY p.post_date DESC', array('publish', $post_type, $taxo, $cat->slug)));
1538
require_once(WPMETASEO_ADDON_PLUGIN_DIR . 'inc/page/sitemaps/theme/tab/menu_bar.php');
1539
require_once(WPMETASEO_ADDON_PLUGIN_DIR . 'inc/page/sitemaps/theme/tab/source_posts.php');
1540
require_once(WPMETASEO_ADDON_PLUGIN_DIR . 'inc/page/sitemaps/theme/tab/source_pages.php');
1541
- require_once(WPMETASEO_ADDON_PLUGIN_DIR . 'inc/page/sitemaps/theme/tab/source_urlcustom.php');
1542
-
1543
// source menu
1544
$ids_menu = array(0);
1545
$check_menu = array();
1528
WPMSEO_VERSION,
1529
true
1530
);
1531
+ wp_enqueue_script(
1532
+ 'wpms_tabs_js',
1533
+ plugins_url('assets/js/wpms-tabs.js', dirname(__FILE__)),
1534
+ array('jquery'),
1535
+ WPMSEO_VERSION,
1536
+ true
1537
+ );
1538
wp_enqueue_style(
1539
'wpms_materialize_style',
1540
plugins_url('assets/css/materialize/materialize_frontend_tab_theme.css', dirname(__FILE__)),
1545
require_once(WPMETASEO_ADDON_PLUGIN_DIR . 'inc/page/sitemaps/theme/tab/menu_bar.php');
1546
require_once(WPMETASEO_ADDON_PLUGIN_DIR . 'inc/page/sitemaps/theme/tab/source_posts.php');
1547
require_once(WPMETASEO_ADDON_PLUGIN_DIR . 'inc/page/sitemaps/theme/tab/source_pages.php');
1548
+ if (!empty($this->settings_sitemap['wpms_sitemap_customUrl'])) {
1549
+ require_once(WPMETASEO_ADDON_PLUGIN_DIR . 'inc/page/sitemaps/theme/tab/source_urlcustom.php');
1550
+ }
1551
// source menu
1552
$ids_menu = array(0);
1553
$check_menu = array();
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.0
5
Tested up to: 5.1.1
6
- Stable tag: 4.0.4
7
Requires PHP: 5.3
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -277,6 +277,12 @@ Yes WP Meta SEO is compatible with Gutenberg editor since 3.7 version.
277
278
== Changelog ==
279
280
= 4.0.4 =
281
* Add : Compatible of the SEO checker and ACF fields
282
* Add : Change meta title and meta description length
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.0
5
Tested up to: 5.1.1
6
+ Stable tag: 4.0.5
7
Requires PHP: 5.3
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
277
278
== Changelog ==
279
280
+ = 4.0.5 =
281
+ * Fix : Add index to improve the query performance
282
+ * Fix : Rredirect link with xlink
283
+ * Fix : Display of HTML Sitemap theme with DIVI theme
284
+ * Fix : Redirect link in custom redirect
285
+
286
= 4.0.4 =
287
* Add : Compatible of the SEO checker and ACF fields
288
* Add : Change meta title and meta description length
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.0.4
8
* Text Domain: wp-meta-seo
9
* Domain Path: /languages
10
* Author: JoomUnited
@@ -121,7 +121,7 @@ if (!defined('WPMSEO_VERSION')) {
121
/**
122
* Plugin version
123
*/
124
- define('WPMSEO_VERSION', '4.0.4');
125
}
126
127
if (!defined('WPMS_CLIENTID')) {
@@ -229,7 +229,7 @@ function wpmsGetDefaultSettings()
229
function wpmsRetrieveDate($current_post)
230
{
231
$replacement = null;
232
- if ($current_post->post_date !== '') {
233
$replacement = mysql2date(get_option('date_format'), $current_post->post_date, true);
234
} else {
235
if (get_query_var('day') && get_query_var('day') !== '') {
@@ -915,6 +915,19 @@ function wpmsTemplateRedirect()
915
$target = '';
916
$status_redirect = 302;
917
foreach ($redirects as $link) {
918
$link->link_url = str_replace(' ', '%20', $link->link_url);
919
$matches = false;
920
// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged -- remove warning if match the URL
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.0.5
8
* Text Domain: wp-meta-seo
9
* Domain Path: /languages
10
* Author: JoomUnited
121
/**
122
* Plugin version
123
*/
124
+ define('WPMSEO_VERSION', '4.0.5');
125
}
126
127
if (!defined('WPMS_CLIENTID')) {
229
function wpmsRetrieveDate($current_post)
230
{
231
$replacement = null;
232
+ if (isset($current_post->post_date) && $current_post->post_date !== '') {
233
$replacement = mysql2date(get_option('date_format'), $current_post->post_date, true);
234
} else {
235
if (get_query_var('day') && get_query_var('day') !== '') {
915
$target = '';
916
$status_redirect = 302;
917
foreach ($redirects as $link) {
918
+ // If redirect success, not redirect again
919
+ $parse_url = parse_url($link->link_url_redirect);
920
+ if (isset($parse_url['path'])) {
921
+ if (rtrim($parse_url['path'], '/') === rtrim($url, '/')) {
922
+ break;
923
+ }
924
+ }
925
+ // Fix with xlink
926
+ $query_str = parse_url($url, PHP_URL_QUERY);
927
+ if (!empty($query_str) && strpos($query_str, 'xlink') !== false) {
928
+ break;
929
+ }
930
+
931
$link->link_url = str_replace(' ', '%20', $link->link_url);
932
$matches = false;
933
// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged -- remove warning if match the URL