WP Meta SEO - Version 1.0.3

Version Description

=

Download this release

Release Info

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

Code changes from version v1.0.0 to 1.0.3

img/globe-sm.jpg ADDED
Binary file
img/icon_tip.png ADDED
Binary file
inc/class.metaseo-content-list-table.php CHANGED
@@ -293,7 +293,9 @@ class MetaSeo_Content_List_Table extends WP_List_Table {
293
  break;
294
 
295
  case 'col_title':
296
- echo sprintf('<td %2$s><div class="action-wrapper"><strong id="post-title-'.$rec->ID.'">%1$s</strong>', stripslashes($rec->post_title), $attributes);
 
 
297
 
298
  $post_type_object = get_post_type_object($rec->post_type);
299
  $can_edit_post = current_user_can($post_type_object->cap->edit_post, $rec->ID);
@@ -379,7 +381,7 @@ class MetaSeo_Content_List_Table extends WP_List_Table {
379
  $current_url = set_url_scheme('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
380
  $redirect = false;
381
 
382
- if (isset($_POST['do_filter']) and $_POST['do_filter'] === 'Filter') {
383
  $current_url = add_query_arg(array( "post_type_filter" => $_POST['post_type_filter']), $current_url);
384
  $redirect = true;
385
  }
293
  break;
294
 
295
  case 'col_title':
296
+ $post_title = stripslashes($rec->post_title);
297
+ if($post_title == '') $post_title = __('(no title)' , 'wp-meta-seo');
298
+ echo sprintf('<td %2$s><div class="action-wrapper"><strong id="post-title-'.$rec->ID.'">%1$s</strong>', $post_title, $attributes);
299
 
300
  $post_type_object = get_post_type_object($rec->post_type);
301
  $can_edit_post = current_user_can($post_type_object->cap->edit_post, $rec->ID);
381
  $current_url = set_url_scheme('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
382
  $redirect = false;
383
 
384
+ if (isset($_POST['do_filter']) and $_POST['do_filter'] === __('Filter')) {
385
  $current_url = add_query_arg(array( "post_type_filter" => $_POST['post_type_filter']), $current_url);
386
  $redirect = true;
387
  }
inc/pages/dashboard.php CHANGED
@@ -74,8 +74,16 @@ $dashboard = new MetaSeo_Dashboard();
74
  optimizationChecking(updateChart);
75
  var height_left = jQuery("#dashboard-left").height();
76
  jQuery(".dashboard-right").css('height',height_left);
 
77
  });
78
 
 
 
 
 
 
 
 
79
 
80
  function updateChart(response) {
81
  // console.log(response);
74
  optimizationChecking(updateChart);
75
  var height_left = jQuery("#dashboard-left").height();
76
  jQuery(".dashboard-right").css('height',height_left);
77
+ replace_url_img();
78
  });
79
 
80
+ function replace_url_img(){
81
+ var url = '<?php echo WPMETASEO_PLUGIN_URL; ?>';
82
+ var icon_tip = url + 'img/icon_tip.png';
83
+ var globe_sm = url + 'img/globe-sm.jpg';
84
+ jQuery('.img-inline').attr('src',globe_sm);
85
+ jQuery('#alexa-ranking .tt img').attr('src',icon_tip);
86
+ }
87
 
88
  function updateChart(response) {
89
  // console.log(response);
js/dashboard-chart.js CHANGED
@@ -9,12 +9,10 @@ function optimizationChecking(call_back) {
9
  beforeSend: function() {
10
  },
11
  success: function(response) {
12
- console.log(response);
13
  ret = response;
14
  for (sid in response) {
15
  jQuery('#' + sid).removeClass('hz-loading').text(response[sid][0] + '/' + response[sid][1]);
16
  }
17
- console.log(typeof (call_back));
18
  if (typeof (call_back) == "function") {
19
  call_back(response);
20
  }
@@ -70,7 +68,6 @@ function drawChart(metacontent,notmetacontent, imagemeta,notimagemeta, imageopti
70
 
71
  ];
72
 
73
- console.log(doughnutData);
74
  var ctx = document.getElementById("chart-area").getContext("2d");
75
  window.myDoughnut = new Chart(ctx).Doughnut(doughnutData, {
76
  responsive: true,
9
  beforeSend: function() {
10
  },
11
  success: function(response) {
 
12
  ret = response;
13
  for (sid in response) {
14
  jQuery('#' + sid).removeClass('hz-loading').text(response[sid][0] + '/' + response[sid][1]);
15
  }
 
16
  if (typeof (call_back) == "function") {
17
  call_back(response);
18
  }
68
 
69
  ];
70
 
 
71
  var ctx = document.getElementById("chart-area").getContext("2d");
72
  window.myDoughnut = new Chart(ctx).Doughnut(doughnutData, {
73
  responsive: true,
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: JoomUnited
3
  Tags: bing, description, google, google webmaster tools, keywords, meta, meta description, meta keywords, robots meta, search engine optimization, seo, Webmaster Tools, wordpress seo, yahoo, image optimization, image resize, photo, custom post, post, posts, page
4
  Requires at least: 4.0
5
- Tested up to: 4.1.0
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -72,6 +72,9 @@ Once the plugin is installed, just load the main plugin view to configure all me
72
  == Revisions ==
73
 
74
  * 1.0.0 Initial (free) release
 
 
 
75
 
76
  == Changelog ==
77
 
@@ -79,6 +82,14 @@ Once the plugin is installed, just load the main plugin view to configure all me
79
 
80
  * Initial release
81
 
 
 
 
 
 
 
 
 
82
 
83
  == Upgrade Notice ==
84
 
@@ -87,4 +98,4 @@ Install new version over the old one
87
 
88
  == Requirements ==
89
 
90
- PHP 5.3+
2
  Contributors: JoomUnited
3
  Tags: bing, description, google, google webmaster tools, keywords, meta, meta description, meta keywords, robots meta, search engine optimization, seo, Webmaster Tools, wordpress seo, yahoo, image optimization, image resize, photo, custom post, post, posts, page
4
  Requires at least: 4.0
5
+ Tested up to: 4.2.1
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
72
  == Revisions ==
73
 
74
  * 1.0.0 Initial (free) release
75
+ * 1.0.1
76
+ * 1.0.2
77
+ * 1.0.3
78
 
79
  == Changelog ==
80
 
82
 
83
  * Initial release
84
 
85
+ = 1.0.1 =
86
+
87
+ * display (no title) in column title if post is no titled
88
+
89
+ = 1.0.2 =
90
+
91
+ * Fix filter broken and icons broken
92
+ = 1.0.3 =
93
 
94
  == Upgrade Notice ==
95
 
98
 
99
  == Requirements ==
100
 
101
+ PHP 5.3+
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: 1.0.0
8
  * Author: JoomUnited
9
  * Author URI: http://www.joomunited.com
10
  * License: GPL2
@@ -75,26 +75,28 @@ if (is_admin()) {
75
  // modify buffer here, and then return the updated code
76
  global $wp_query;
77
  $meta_title = get_post_meta($wp_query->post->ID, '_metaseo_metatitle', true);
 
78
  $meta_description = get_post_meta($wp_query->post->ID, '_metaseo_metadesc', true);
 
79
  $patterns = array(
80
  '_title' => array('#<title>[^<>]+?<\/title>#i', '<title>'.$meta_title.'</title>',
81
  ($meta_title != '' ? true : false) ),
82
  'title' => array(
83
  '#<meta name="title" [^<>]+ ?>#i',
84
- '<meta name="title" content="'. $meta_title .'" />',
85
- ($meta_title != '' ? true : false) ),
86
  'description' => array(
87
  '#<meta name="description" [^<>]+ ?>#i',
88
- '<meta name="description" content="'. $meta_description .'" />',
89
- ($meta_description != '' ? true : false) ),
90
  'og:title' => array(
91
  '#<meta property="og:title" [^<>]+ ?>#i',
92
- '<meta name="og:title" content="'. $meta_title .'" />',
93
- ($meta_title != '' ? true : false) ),
94
  'og:description' => array(
95
  '#<meta property="og:description" [^<>]+ ?>#i',
96
- '<meta name="og:description" content="'. $meta_description .'" />',
97
- ($meta_description != '' ? true : false) )
98
  );
99
 
100
  //
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: 1.0.3
8
  * Author: JoomUnited
9
  * Author URI: http://www.joomunited.com
10
  * License: GPL2
75
  // modify buffer here, and then return the updated code
76
  global $wp_query;
77
  $meta_title = get_post_meta($wp_query->post->ID, '_metaseo_metatitle', true);
78
+ $meta_title_esc = esc_attr($meta_title_esc);
79
  $meta_description = get_post_meta($wp_query->post->ID, '_metaseo_metadesc', true);
80
+ $meta_description_esc = esc_attr($meta_description);
81
  $patterns = array(
82
  '_title' => array('#<title>[^<>]+?<\/title>#i', '<title>'.$meta_title.'</title>',
83
  ($meta_title != '' ? true : false) ),
84
  'title' => array(
85
  '#<meta name="title" [^<>]+ ?>#i',
86
+ '<meta name="title" content="'. $meta_title_esc .'" />',
87
+ ($meta_title_esc != '' ? true : false) ),
88
  'description' => array(
89
  '#<meta name="description" [^<>]+ ?>#i',
90
+ '<meta name="description" content="'. $meta_description_esc .'" />',
91
+ ($meta_description_esc != '' ? true : false) ),
92
  'og:title' => array(
93
  '#<meta property="og:title" [^<>]+ ?>#i',
94
+ '<meta name="og:title" content="'. $meta_title_esc .'" />',
95
+ ($meta_title_esc != '' ? true : false) ),
96
  'og:description' => array(
97
  '#<meta property="og:description" [^<>]+ ?>#i',
98
+ '<meta name="og:description" content="'. $meta_description_esc .'" />',
99
+ ($meta_description_esc != '' ? true : false) )
100
  );
101
 
102
  //