Version Description
- Check DOM PHP activation install to avoid fatal error
- Fix image inforamtion edition with greek characters
Download this release
Release Info
Developer | JoomUnited |
Plugin | WP Meta SEO |
Version | 3.2.5 |
Comparing to | |
See all releases |
Code changes from version 3.2.4 to 3.2.5
- css/broken_link.css +1 -1
- inc/class.metaseo-admin.php +2 -2
- inc/class.metaseo-broken-link-table.php +9 -4
- inc/class.metaseo-image-list-table.php +7 -11
- inc/class.wp-metaseo.php +5 -0
- inc/pages/sitemaps/metaseo-source_posts_custom.php +1 -1
- languages/wp-meta-seo.pot +3 -0
- readme.txt +7 -3
- wp-meta-seo.php +2 -2
css/broken_link.css
CHANGED
@@ -54,5 +54,5 @@ table.metaseo_images .wpms-input-text-wrap input{
|
|
54 |
}
|
55 |
|
56 |
.wpms_outgoing{
|
57 |
-
color: #
|
58 |
}
|
54 |
}
|
55 |
|
56 |
.wpms_outgoing{
|
57 |
+
color: #555;
|
58 |
}
|
inc/class.metaseo-admin.php
CHANGED
@@ -559,7 +559,7 @@ class MetaSeo_Admin {
|
|
559 |
$post = get_post($link_detail->source_id);
|
560 |
if (!empty($post)) {
|
561 |
$old_value = $post->post_content;
|
562 |
-
$edit_result = $this->wpms_edit_linkhtml($old_value, $link_detail->link_url, $link_detail->link_url, $_POST['meta_title']);
|
563 |
$my_post = array(
|
564 |
'ID' => $link_detail->source_id,
|
565 |
'post_content' => $edit_result['content']
|
@@ -695,7 +695,7 @@ class MetaSeo_Admin {
|
|
695 |
/*
|
696 |
* Render new content when edit a link
|
697 |
*/
|
698 |
-
public function wpms_edit_linkhtml($content, $new_url, $old_url, $meta_title, $follow, $new_text = null) {
|
699 |
//Save the old & new URLs for use in the edit callback.
|
700 |
$args = array(
|
701 |
'old_url' => $old_url,
|
559 |
$post = get_post($link_detail->source_id);
|
560 |
if (!empty($post)) {
|
561 |
$old_value = $post->post_content;
|
562 |
+
$edit_result = $this->wpms_edit_linkhtml($old_value, $link_detail->link_url, $link_detail->link_url, $_POST['meta_title'] , $link_detail->follow);
|
563 |
$my_post = array(
|
564 |
'ID' => $link_detail->source_id,
|
565 |
'post_content' => $edit_result['content']
|
695 |
/*
|
696 |
* Render new content when edit a link
|
697 |
*/
|
698 |
+
public function wpms_edit_linkhtml($content, $new_url, $old_url, $meta_title, $follow , $new_text = null) {
|
699 |
//Save the old & new URLs for use in the edit callback.
|
700 |
$args = array(
|
701 |
'old_url' => $old_url,
|
inc/class.metaseo-broken-link-table.php
CHANGED
@@ -454,9 +454,9 @@ class MetaSeo_Broken_Link_Table extends WP_List_Table {
|
|
454 |
}
|
455 |
|
456 |
$row_action = array(
|
457 |
-
'edit' => '<a class="wpms_action_link wpms-edit-button" title="'.__('Edit redirect','wp-meta-seo').'"><div class="wpms_icon_action"><i class="material-icons">mode_edit</i></div><span>' . __('
|
458 |
-
'delete' => '<a class="wpms_action_link submitdelete wpms-unlink-button" data-link_id="' . $rec->id . '" data-type="' . $rec->type . '" data-source_id="' . $rec->source_id . '" title="' . __('Remove redirect', 'wp-meta-seo') . '"><div class="wpms_icon_action"><i class="material-icons">delete_forever</i></div><span>' . __('Remove
|
459 |
-
'recheck' => '<a class="wpms_action_link wpms-recheck-button" data-link_id="' . $rec->id . '" data-type="' . $rec->type . '" data-source_id="' . $rec->source_id . '" title="' . __('Check
|
460 |
);
|
461 |
echo $this->row_actions($row_action, false);
|
462 |
if (!empty($rec->source_id)) {
|
@@ -1284,7 +1284,7 @@ class MetaSeo_Broken_Link_Table extends WP_List_Table {
|
|
1284 |
$value = MetaSeo_Broken_Link_Table::wpms_check_internal_link($links[0]->link_url, $site_url, $value);
|
1285 |
$value['status_code'] = $status;
|
1286 |
$value['status_text'] = $status_text;
|
1287 |
-
if ($links[0]->follow != $link['follow'] || $links[0]->meta_title != $link['meta_title'] || $links[0]->internal != $value['internal'] || $links[0]->
|
1288 |
$wpdb->update(
|
1289 |
$wpdb->prefix . 'wpms_links', $value, array('id' => $links[0]->id)
|
1290 |
);
|
@@ -1297,6 +1297,11 @@ class MetaSeo_Broken_Link_Table extends WP_List_Table {
|
|
1297 |
*/
|
1298 |
public static function wpms_check_internal_link($link, $siteUrl, $value) {
|
1299 |
$info_link = parse_url($link);
|
|
|
|
|
|
|
|
|
|
|
1300 |
if(empty($info_link['host'])){
|
1301 |
$value['internal'] = 0;
|
1302 |
return $value;
|
454 |
}
|
455 |
|
456 |
$row_action = array(
|
457 |
+
'edit' => '<a class="wpms_action_link wpms-edit-button" title="'.__('Edit redirect','wp-meta-seo').'"><div class="wpms_icon_action"><i class="material-icons">mode_edit</i></div><span>' . __('Edit', 'wp-meta-seo') . '</span></a>',
|
458 |
+
'delete' => '<a class="wpms_action_link submitdelete wpms-unlink-button" data-link_id="' . $rec->id . '" data-type="' . $rec->type . '" data-source_id="' . $rec->source_id . '" title="' . __('Remove redirect or link', 'wp-meta-seo') . '"><div class="wpms_icon_action"><i class="material-icons">delete_forever</i></div><span>' . __('Remove redirect', 'wp-meta-seo') . '</span></a>',
|
459 |
+
'recheck' => '<a class="wpms_action_link wpms-recheck-button" data-link_id="' . $rec->id . '" data-type="' . $rec->type . '" data-source_id="' . $rec->source_id . '" title="' . __('Check the link', 'wp-meta-seo') . '"><div class="wpms_icon_action"><i class="material-icons">loop</i></div><span>' . __('Check', 'wp-meta-seo') . '</span></a>'
|
460 |
);
|
461 |
echo $this->row_actions($row_action, false);
|
462 |
if (!empty($rec->source_id)) {
|
1284 |
$value = MetaSeo_Broken_Link_Table::wpms_check_internal_link($links[0]->link_url, $site_url, $value);
|
1285 |
$value['status_code'] = $status;
|
1286 |
$value['status_text'] = $status_text;
|
1287 |
+
if ($links[0]->follow != $link['follow'] || $links[0]->meta_title != $link['meta_title'] || $links[0]->internal != $value['internal'] || $links[0]->status_code != $value['status_code']) {
|
1288 |
$wpdb->update(
|
1289 |
$wpdb->prefix . 'wpms_links', $value, array('id' => $links[0]->id)
|
1290 |
);
|
1297 |
*/
|
1298 |
public static function wpms_check_internal_link($link, $siteUrl, $value) {
|
1299 |
$info_link = parse_url($link);
|
1300 |
+
if(empty($info_link['path'])){
|
1301 |
+
$value['internal'] = 0;
|
1302 |
+
return $value;
|
1303 |
+
}
|
1304 |
+
|
1305 |
if(empty($info_link['host'])){
|
1306 |
$value['internal'] = 0;
|
1307 |
return $value;
|
inc/class.metaseo-image-list-table.php
CHANGED
@@ -1301,18 +1301,14 @@ class MetaSeo_Image_List_Table extends WP_List_Table {
|
|
1301 |
$pattern = '/\/>/i';
|
1302 |
$replacement = $meta_type . '="' . $meta_value . '" />';
|
1303 |
}
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
$tags->item(0)->setAttribute($meta_type, $meta_value);
|
1312 |
-
$img_tags[$meta_order] = $doc->saveHtml();
|
1313 |
-
}
|
1314 |
}
|
1315 |
-
|
1316 |
// create new post content
|
1317 |
$post_content = '';
|
1318 |
foreach ($post_content_split as $key => $split) {
|
1301 |
$pattern = '/\/>/i';
|
1302 |
$replacement = $meta_type . '="' . $meta_value . '" />';
|
1303 |
}
|
1304 |
+
|
1305 |
+
preg_match('/'.$meta_type.'="(.+?)"/', $img_tags[$meta_order], $matches);
|
1306 |
+
$find = $matches[1];
|
1307 |
+
if(isset($find)){
|
1308 |
+
$img_tags[$meta_order] = preg_replace('/<img([^>]*)'.$meta_type.'=["\']["\'\\/]?([^"\']*)["\']/', '<img\1'.$meta_type.'="'.$meta_value.'"', $img_tags[$meta_order]);
|
1309 |
+
}else{
|
1310 |
+
$img_tags[$meta_order] = preg_replace('/(<img\b[^><]*)>/i', '$1 '.$meta_type.'="'.$meta_value.'">', $img_tags[$meta_order]);
|
|
|
|
|
|
|
1311 |
}
|
|
|
1312 |
// create new post content
|
1313 |
$post_content = '';
|
1314 |
foreach ($post_content_split as $key => $split) {
|
inc/class.wp-metaseo.php
CHANGED
@@ -33,6 +33,11 @@ class WpMetaSeo {
|
|
33 |
wp_die('<p>The <strong>WP Meta SEO</strong> plugin requires WordPress ' . WPMETASEO_MINIMUM_WP_VERSION . ' or higher.</p>', 'Plugin Activation Error', array('response' => 200, 'back_link' => TRUE));
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
global $wpdb;
|
38 |
//Set two param as flags that determine whether show import meta data from other SEO plugin button or not to 0
|
33 |
wp_die('<p>The <strong>WP Meta SEO</strong> plugin requires WordPress ' . WPMETASEO_MINIMUM_WP_VERSION . ' or higher.</p>', 'Plugin Activation Error', array('response' => 200, 'back_link' => TRUE));
|
34 |
}
|
35 |
|
36 |
+
if (!class_exists('DOMDocument')) {
|
37 |
+
deactivate_plugins(basename(__FILE__));
|
38 |
+
wp_die('<p>To active WP Meta SEO plugin , please install “dom” PHP extension </p>', 'Plugin Activation Error', array('response' => 200, 'back_link' => TRUE));
|
39 |
+
}
|
40 |
+
|
41 |
|
42 |
global $wpdb;
|
43 |
//Set two param as flags that determine whether show import meta data from other SEO plugin button or not to 0
|
inc/pages/sitemaps/metaseo-source_posts_custom.php
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
if(!in_array($post->taxo, $check)){
|
30 |
$check[] = $post->taxo;
|
31 |
if($post->taxo == 'product_type'){
|
32 |
-
echo '<div class="wpms_row"><h1>'.__('
|
33 |
}elseif($post->taxo == 'product_cat'){
|
34 |
echo '<div class="wpms_row"><h1>'.__('Products categories','wp-meta-seo').'</h1></div>';
|
35 |
}else{
|
29 |
if(!in_array($post->taxo, $check)){
|
30 |
$check[] = $post->taxo;
|
31 |
if($post->taxo == 'product_type'){
|
32 |
+
echo '<div class="wpms_row"><h1>'.__('Product Type','wp-meta-seo').'</h1></div>';
|
33 |
}elseif($post->taxo == 'product_cat'){
|
34 |
echo '<div class="wpms_row"><h1>'.__('Products categories','wp-meta-seo').'</h1></div>';
|
35 |
}else{
|
languages/wp-meta-seo.pot
CHANGED
@@ -629,4 +629,7 @@ msgid "Use ImageRecycle image compression plugin to activate this feature"
|
|
629 |
msgstr ""
|
630 |
|
631 |
msgid "Images represent around 60% of a web page weight. An image compression reduce the image size by up to 70% while preserving the same visual quality. Small loading time is great for SEO!"
|
|
|
|
|
|
|
632 |
msgstr ""
|
629 |
msgstr ""
|
630 |
|
631 |
msgid "Images represent around 60% of a web page weight. An image compression reduce the image size by up to 70% while preserving the same visual quality. Small loading time is great for SEO!"
|
632 |
+
msgstr ""
|
633 |
+
|
634 |
+
msgid "Product Type"
|
635 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
=== WP Meta SEO ===
|
2 |
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: 4.7.
|
6 |
-
Stable tag: 3.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -254,6 +254,10 @@ It could be! if you have a lot of pages that need to be indexed with no specific
|
|
254 |
|
255 |
== Changelog ==
|
256 |
|
|
|
|
|
|
|
|
|
257 |
= 3.2.4 =
|
258 |
* WP Meta SEO Addon compatibility
|
259 |
* Fix conflict with DIVI layout injector plugin
|
1 |
+
=== WP Meta SEO ===
|
2 |
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: 4.7.2
|
6 |
+
Stable tag: 3.2.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
254 |
|
255 |
== Changelog ==
|
256 |
|
257 |
+
= 3.2.5 =
|
258 |
+
* Check DOM PHP activation install to avoid fatal error
|
259 |
+
* Fix image inforamtion edition with greek characters
|
260 |
+
|
261 |
= 3.2.4 =
|
262 |
* WP Meta SEO Addon compatibility
|
263 |
* Fix conflict with DIVI layout injector plugin
|
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: 3.2.
|
8 |
* Text Domain: wp-meta-seo
|
9 |
* Domain Path: /languages
|
10 |
* Author: JoomUnited
|
@@ -46,7 +46,7 @@ if (!defined('URL'))
|
|
46 |
define('URL', get_site_url());
|
47 |
|
48 |
if (!defined('WPMSEO_VERSION')) {
|
49 |
-
define('WPMSEO_VERSION', '3.2.
|
50 |
}
|
51 |
|
52 |
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: 3.2.5
|
8 |
* Text Domain: wp-meta-seo
|
9 |
* Domain Path: /languages
|
10 |
* Author: JoomUnited
|
46 |
define('URL', get_site_url());
|
47 |
|
48 |
if (!defined('WPMSEO_VERSION')) {
|
49 |
+
define('WPMSEO_VERSION', '3.2.5');
|
50 |
}
|
51 |
|
52 |
if (!defined('WPMS_CLIENTID')) {
|