WP Meta SEO - Version 1.7.2

Version Description

  • Page title as content title or as SEO meta title (option)
Download this release

Release Info

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

Code changes from version 1.7.1 to 1.7.2

inc/class.metaseo-admin.php CHANGED
@@ -19,7 +19,8 @@ class MetaSeo_Admin {
19
  "metaseo_showtmetablock"=>1,
20
  "metaseo_showsocial" => 1,
21
  "metaseo_seovalidate" => 0,
22
- "metaseo_linkfield" => 1
 
23
  );
24
  $settings = get_option( '_metaseo_settings' );
25
 
@@ -318,6 +319,7 @@ class MetaSeo_Admin {
318
  add_settings_field('metaseo_showfacebook', __('Facebook profile URL', 'wp-meta-seo'), array( $this, 'showfacebook' ), 'metaseo_settings', 'metaseo_dashboard');
319
  add_settings_field('metaseo_showtwitter', __('Twitter Username', 'wp-meta-seo'), array( $this, 'showtwitter' ), 'metaseo_settings', 'metaseo_dashboard');
320
  add_settings_field('metaseo_twitter_card', __('The default card type to use', 'wp-meta-seo'), array( $this, 'showtwittercard' ), 'metaseo_settings', 'metaseo_dashboard');
 
321
  add_settings_field('metaseo_showkeywords', __('Meta keywords', 'wp-meta-seo'), array( $this, 'showkeywords' ), 'metaseo_settings', 'metaseo_dashboard');
322
  add_settings_field('metaseo_showtmetablock', __('Meta block edition', 'wp-meta-seo'), array( $this, 'showtmetablock' ), 'metaseo_settings', 'metaseo_dashboard');
323
  add_settings_field('metaseo_showsocial', __('Social networks meta', 'wp-meta-seo'), array( $this, 'showsocial' ), 'metaseo_settings', 'metaseo_dashboard');
@@ -325,6 +327,15 @@ class MetaSeo_Admin {
325
  add_settings_field('metaseo_linkfield', __('Link text field', 'wp-meta-seo'), array( $this, 'showlinkfield' ), 'metaseo_settings', 'metaseo_dashboard');
326
  }
327
 
 
 
 
 
 
 
 
 
 
328
  public function showSettings(){
329
 
330
  }
19
  "metaseo_showtmetablock"=>1,
20
  "metaseo_showsocial" => 1,
21
  "metaseo_seovalidate" => 0,
22
+ "metaseo_linkfield" => 1,
23
+ "metaseo_metatitle_tab" => 0,
24
  );
25
  $settings = get_option( '_metaseo_settings' );
26
 
319
  add_settings_field('metaseo_showfacebook', __('Facebook profile URL', 'wp-meta-seo'), array( $this, 'showfacebook' ), 'metaseo_settings', 'metaseo_dashboard');
320
  add_settings_field('metaseo_showtwitter', __('Twitter Username', 'wp-meta-seo'), array( $this, 'showtwitter' ), 'metaseo_settings', 'metaseo_dashboard');
321
  add_settings_field('metaseo_twitter_card', __('The default card type to use', 'wp-meta-seo'), array( $this, 'showtwittercard' ), 'metaseo_settings', 'metaseo_dashboard');
322
+ add_settings_field('metaseo_metatitle_tab', __('Meta title as page title', 'wp-meta-seo'), array( $this, 'showmetatitletab' ), 'metaseo_settings', 'metaseo_dashboard');
323
  add_settings_field('metaseo_showkeywords', __('Meta keywords', 'wp-meta-seo'), array( $this, 'showkeywords' ), 'metaseo_settings', 'metaseo_dashboard');
324
  add_settings_field('metaseo_showtmetablock', __('Meta block edition', 'wp-meta-seo'), array( $this, 'showtmetablock' ), 'metaseo_settings', 'metaseo_dashboard');
325
  add_settings_field('metaseo_showsocial', __('Social networks meta', 'wp-meta-seo'), array( $this, 'showsocial' ), 'metaseo_settings', 'metaseo_dashboard');
327
  add_settings_field('metaseo_linkfield', __('Link text field', 'wp-meta-seo'), array( $this, 'showlinkfield' ), 'metaseo_settings', 'metaseo_dashboard');
328
  }
329
 
330
+ public function showmetatitletab(){
331
+ echo '<input name="_metaseo_settings[metaseo_metatitle_tab]" type="hidden" value="0"/>';
332
+ ?>
333
+ <label><input name="_metaseo_settings[metaseo_metatitle_tab]" type="checkbox" id="metaseo_metatitle_tab" value="1" <?php checked( 1, $this->settings['metaseo_metatitle_tab']); ?> />
334
+ <?php _e( 'When meta title is filled use it as page title instead of the content title','wp-meta-seo' ); ?></label>
335
+ <?php
336
+ }
337
+
338
+
339
  public function showSettings(){
340
 
341
  }
languages/wp-meta-seo-en_US.po CHANGED
@@ -648,4 +648,10 @@ msgid "Link text"
648
  msgstr "Link text"
649
 
650
  msgid "Link Meta"
651
- msgstr "Link Meta"
 
 
 
 
 
 
648
  msgstr "Link text"
649
 
650
  msgid "Link Meta"
651
+ msgstr "Link Meta"
652
+
653
+ msgid "Meta title as page title"
654
+ msgstr "Meta title as page title"
655
+
656
+ msgid "When meta title is filled use it as page title instead of the content title"
657
+ msgstr "When meta title is filled use it as page title instead of the content title"
languages/wp-meta-seo-fr_FR.po CHANGED
@@ -662,3 +662,9 @@ msgstr "Text lien"
662
 
663
  msgid "Link Meta"
664
  msgstr "Meta lien"
 
 
 
 
 
 
662
 
663
  msgid "Link Meta"
664
  msgstr "Meta lien"
665
+
666
+ msgid "Meta title as page title"
667
+ msgstr ""
668
+
669
+ msgid "When meta title is filled use it as page title instead of the content title"
670
+ msgstr ""
languages/wp-meta-seo.pot CHANGED
@@ -545,4 +545,10 @@ msgid "Link text"
545
  msgstr ""
546
 
547
  msgid "Link Meta"
 
 
 
 
 
 
548
  msgstr ""
545
  msgstr ""
546
 
547
  msgid "Link Meta"
548
+ msgstr ""
549
+
550
+ msgid "Meta title as page title"
551
+ msgstr ""
552
+
553
+ msgid "When meta title is filled use it as page title instead of the content title"
554
  msgstr ""
readme.txt CHANGED
@@ -2,8 +2,8 @@
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
4
  Requires at least: 4.0
5
- Tested up to: 4.4.0
6
- Stable tag: 1.7.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -86,6 +86,7 @@ WP Meta SEO also include this feature in the bulk edition view, you are notified
86
  * Check for SEO error: is robot.txt blocking search engine
87
  * Bulk edit SEO link title in your content
88
  * Add SEO link title box in editor link manager
 
89
 
90
  = Main plugins from JoomUnited: =
91
  * WP Media Folder: https://www.joomunited.com/wordpress-products/wp-media-folder
@@ -94,6 +95,8 @@ WP Meta SEO also include this feature in the bulk edition view, you are notified
94
  * WP Meta SEO: https://www.joomunited.com/wordpress-products/wp-meta-seo
95
  * WP Latest Posts: https://www.joomunited.com/wordpress-products/wp-latest-posts
96
 
 
 
97
  = Support =
98
 
99
  A PDF support document is provided with WP Meta SEO on JoomUnited website
@@ -171,6 +174,9 @@ This manual SEO validation on click on the reload analysis button.
171
 
172
  == Changelog ==
173
 
 
 
 
174
  = 1.7.1 =
175
  * Fix RSS feed is broken with WP Meta SEO 1.7.0
176
  * Edit separatelly the content title from the meta title (for search engine)
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
4
  Requires at least: 4.0
5
+ Tested up to: 4.4.1
6
+ Stable tag: 1.7.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
86
  * Check for SEO error: is robot.txt blocking search engine
87
  * Bulk edit SEO link title in your content
88
  * Add SEO link title box in editor link manager
89
+ * Page title display as content title or SEO meta title
90
 
91
  = Main plugins from JoomUnited: =
92
  * WP Media Folder: https://www.joomunited.com/wordpress-products/wp-media-folder
95
  * WP Meta SEO: https://www.joomunited.com/wordpress-products/wp-meta-seo
96
  * WP Latest Posts: https://www.joomunited.com/wordpress-products/wp-latest-posts
97
 
98
+ **Still not sure! test the plugin live on a demo website:** https://addendio.com/try-plugin/?slug=wp-meta-seo
99
+
100
  = Support =
101
 
102
  A PDF support document is provided with WP Meta SEO on JoomUnited website
174
 
175
  == Changelog ==
176
 
177
+ = 1.7.2 =
178
+ * Page title as content title or as SEO meta title (option)
179
+
180
  = 1.7.1 =
181
  * Fix RSS feed is broken with WP Meta SEO 1.7.0
182
  * Edit separatelly the content title from the meta title (for search engine)
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.7.1
8
  * Text Domain: wp-meta-seo
9
  * Domain Path: /languages
10
  * Author: JoomUnited
@@ -47,7 +47,7 @@ if (!defined('URL'))
47
  define('URL', get_site_url());
48
 
49
  if (!defined('WPMSEO_VERSION'))
50
- define('WPMSEO_VERSION', '1.7.1');
51
 
52
  if (!defined('WPMSEO_FILE'))
53
  define('WPMSEO_FILE', __FILE__);
@@ -218,6 +218,8 @@ if (is_admin()) {
218
  '#<meta name="twitter:title" [^<>]+ ?>#i',
219
  '<meta name="twitter:title" content="' . $meta_twitter_title . '" />',
220
  ($meta_twitter_title != '' ? true : false)),
 
 
221
  'facebook_admin' => array(
222
  '#<meta property="fb:admins" [^<>]+ ?>#i',
223
  '<meta property="fb:admins" content="' . $facebook_admin . '" />',
@@ -303,13 +305,18 @@ if (is_admin()) {
303
  "metaseo_twitter_card"=>"summary",
304
  "metaseo_showkeywords"=>0,
305
  "metaseo_showtmetablock"=>1,
306
- "metaseo_showsocial" => 1
 
307
  );
308
 
309
  if(is_array($settings)){
310
  $default_settings = array_merge($default_settings, $settings);
311
  }
312
 
 
 
 
 
313
  if((isset($default_settings['metaseo_showsocial']) && $default_settings['metaseo_showsocial'] == 0)){
314
  unset($patterns['twitter_image']);
315
  unset($patterns['twitter_card']);
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.7.2
8
  * Text Domain: wp-meta-seo
9
  * Domain Path: /languages
10
  * Author: JoomUnited
47
  define('URL', get_site_url());
48
 
49
  if (!defined('WPMSEO_VERSION'))
50
+ define('WPMSEO_VERSION', '1.7.2');
51
 
52
  if (!defined('WPMSEO_FILE'))
53
  define('WPMSEO_FILE', __FILE__);
218
  '#<meta name="twitter:title" [^<>]+ ?>#i',
219
  '<meta name="twitter:title" content="' . $meta_twitter_title . '" />',
220
  ($meta_twitter_title != '' ? true : false)),
221
+ '_title' => array('#<title>[^<>]+?<\/title>#i', '<title>' . $meta_title . '</title>',
222
+ ($meta_title != '' ? true : false)),
223
  'facebook_admin' => array(
224
  '#<meta property="fb:admins" [^<>]+ ?>#i',
225
  '<meta property="fb:admins" content="' . $facebook_admin . '" />',
305
  "metaseo_twitter_card"=>"summary",
306
  "metaseo_showkeywords"=>0,
307
  "metaseo_showtmetablock"=>1,
308
+ "metaseo_showsocial" => 1,
309
+ "metaseo_metatitle_tab" => 0
310
  );
311
 
312
  if(is_array($settings)){
313
  $default_settings = array_merge($default_settings, $settings);
314
  }
315
 
316
+ if(empty($default_settings['metaseo_metatitle_tab'])){
317
+ unset($patterns['_title']);
318
+ }
319
+
320
  if((isset($default_settings['metaseo_showsocial']) && $default_settings['metaseo_showsocial'] == 0)){
321
  unset($patterns['twitter_image']);
322
  unset($patterns['twitter_card']);