HeadSpace2 SEO - Version 3.6.41

Version Description

  • Fix problem with 'plugins' module causing post edit page to stop loading fully
Download this release

Release Info

Developer johnny5
Plugin Icon wp plugin HeadSpace2 SEO
Version 3.6.41
Comparing to
See all releases

Code changes from version 3.6.40 to 3.6.41

Files changed (4) hide show
  1. headspace.php +12 -15
  2. modules/page/plugin.php +2 -4
  3. modules/page/theme.php +1 -1
  4. readme.txt +6 -1
headspace.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: HeadSpace2
4
  Plugin URI: http://urbangiraffe.com/plugins/headspace2/
5
  Description: Meta-data manager on steroids, allowing complete control over all SEO needs such as keywords/tags, titles, description, stylesheets, and many many other goodies.
6
- Version: 3.6.39
7
  Author: John Godley
8
  Author URI: http://urbangiraffe.com/
9
  ============================================================================================================
@@ -43,7 +43,10 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
43
 
44
  if (is_admin ()) {
45
  $this->add_action( 'admin_menu' );
46
- $this->add_action( 'load-settings_page_headspace', 'admin_Head' );
 
 
 
47
 
48
  $this->add_action( 'save_post', 'save_tags' );
49
 
@@ -190,21 +193,13 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
190
  }
191
 
192
  function metabox($post) {
193
- global $wp_meta_boxes;
194
-
195
- if (isset ($wp_meta_boxes['post']['normal']['sorted']['headspacestuff']))
196
- unset ($wp_meta_boxes['post']['normal']['sorted']['headspacestuff']);
197
-
198
- if (isset ($wp_meta_boxes['page']['normal']['sorted']['headspacestuff']))
199
- unset ($wp_meta_boxes['page']['normal']['sorted']['headspacestuff']);
200
-
201
  $headspace = HeadSpace2::get ();
202
  $settings = $headspace->get_current_settings ();
203
 
204
  $simple = $headspace->modules->get_restricted ($headspace->get_simple_modules (), $settings, 'page' );
205
  $advanced = $headspace->modules->get_restricted ($headspace->get_advanced_modules (), $settings, 'page' );
206
 
207
- $this->render_admin( 'page-settings-edit', array ('simple' => $simple, 'advanced' => $advanced, 'width' => 140, 'area' => 'page'));
208
  }
209
 
210
 
@@ -413,13 +408,15 @@ class HeadSpace2_Admin extends HeadSpace_Plugin {
413
  $this->render_admin( 'import', array ('modules' => $importmanager->available ()));
414
  }
415
 
 
 
 
 
 
 
416
  function admin_head() {
417
  global $wp_scripts;
418
 
419
- add_meta_box ('headspacestuff', __ ('HeadSpace', 'headspace'), array (&$this, 'metabox'), 'post', 'normal', 'high' );
420
- add_meta_box ('headspacestuff', __ ('HeadSpace', 'headspace'), array (&$this, 'metabox'), 'page', 'normal', 'high' );
421
- add_meta_box ('tagsdiv', __ ('Tags', 'headspace'), array (&$this, 'metabox_tags'), 'page', 'side', 'high' );
422
-
423
  // Rejig the localization
424
  if ($this->is_page ())
425
  $wp_scripts->registered['page']->extra['l10n'] = $wp_scripts->registered['post']->extra['l10n'];
3
  Plugin Name: HeadSpace2
4
  Plugin URI: http://urbangiraffe.com/plugins/headspace2/
5
  Description: Meta-data manager on steroids, allowing complete control over all SEO needs such as keywords/tags, titles, description, stylesheets, and many many other goodies.
6
+ Version: 3.6.41
7
  Author: John Godley
8
  Author URI: http://urbangiraffe.com/
9
  ============================================================================================================
43
 
44
  if (is_admin ()) {
45
  $this->add_action( 'admin_menu' );
46
+ $this->add_action( 'load-settings_page_headspace', 'admin_head' );
47
+ $this->add_action( 'load-post.php', 'admin_head' );
48
+ $this->add_action( 'load-post-new.php', 'admin_head' );
49
+ $this->add_action( 'add_meta_boxes' );
50
 
51
  $this->add_action( 'save_post', 'save_tags' );
52
 
193
  }
194
 
195
  function metabox($post) {
 
 
 
 
 
 
 
 
196
  $headspace = HeadSpace2::get ();
197
  $settings = $headspace->get_current_settings ();
198
 
199
  $simple = $headspace->modules->get_restricted ($headspace->get_simple_modules (), $settings, 'page' );
200
  $advanced = $headspace->modules->get_restricted ($headspace->get_advanced_modules (), $settings, 'page' );
201
 
202
+ $this->render_admin( 'page-settings-edit', array ('simple' => $simple, 'advanced' => $advanced, 'width' => 140, 'area' => 'page' ) );
203
  }
204
 
205
 
408
  $this->render_admin( 'import', array ('modules' => $importmanager->available ()));
409
  }
410
 
411
+ function add_meta_boxes() {
412
+ add_meta_box( 'headspacestuff', __ ('HeadSpace', 'headspace'), array (&$this, 'metabox'), 'post', 'normal', 'high' );
413
+ add_meta_box( 'headspacestuff', __ ('HeadSpace', 'headspace'), array (&$this, 'metabox'), 'page', 'normal', 'high' );
414
+ add_meta_box( 'tagsdiv', __ ('Tags', 'headspace'), array (&$this, 'metabox_tags'), 'page', 'side', 'high' );
415
+ }
416
+
417
  function admin_head() {
418
  global $wp_scripts;
419
 
 
 
 
 
420
  // Rejig the localization
421
  if ($this->is_page ())
422
  $wp_scripts->registered['page']->extra['l10n'] = $wp_scripts->registered['post']->extra['l10n'];
modules/page/plugin.php CHANGED
@@ -137,13 +137,13 @@ class HSM_Plugin extends HSM_Module
137
  <option value="<?php echo $name ?>"><?php echo $details['Name']; ?></option>
138
  <?php endforeach; ?>
139
  </select>
140
- <a href="#" onclick="return add_plugin ()"><img valign="bottom" src="<?php echo plugins_url( '/images/add.png', $headspace->base_url() ); ?>" alt="add"/></a>
141
 
142
  <ul id="headspace_plugins">
143
  <?php if (!empty ($this->plugins)) : ?>
144
  <?php foreach ($this->plugins AS $name) : ?>
145
  <li>
146
- <div class="delete"><a href="#" onclick="return delete_plugin(this);"><img src="<?php echo plugins_url( '/images/delete.png', $headspace->base_url() ); ?>" alt="delete" width="16" height="16"/></a></div>
147
  <?php echo $plugins[$name]['Name'] ?>
148
  <input type='hidden' name='headspace_plugins[]' value='<?php echo $name ?>'/>
149
  </li>
@@ -194,5 +194,3 @@ class HSM_Plugin extends HSM_Module
194
  return basename (__FILE__);
195
  }
196
  }
197
-
198
- ?>
137
  <option value="<?php echo $name ?>"><?php echo $details['Name']; ?></option>
138
  <?php endforeach; ?>
139
  </select>
140
+ <a href="#" onclick="return add_plugin ()"><img valign="bottom" src="<?php echo plugins_url( '/images/add.png', $headspace2->base_url() ); ?>" alt="add"/></a>
141
 
142
  <ul id="headspace_plugins">
143
  <?php if (!empty ($this->plugins)) : ?>
144
  <?php foreach ($this->plugins AS $name) : ?>
145
  <li>
146
+ <div class="delete"><a href="#" onclick="return delete_plugin(this);"><img src="<?php echo plugins_url( '/images/delete.png', $headspace2->base_url() ); ?>" alt="delete" width="16" height="16"/></a></div>
147
  <?php echo $plugins[$name]['Name'] ?>
148
  <input type='hidden' name='headspace_plugins[]' value='<?php echo $name ?>'/>
149
  </li>
194
  return basename (__FILE__);
195
  }
196
  }
 
 
modules/page/theme.php CHANGED
@@ -34,7 +34,7 @@ class HSM_Theme extends HSM_Module
34
 
35
  if (isset ($_GET['page_id']))
36
  $url = '/?page_id='.intval ($_GET['page_id']);
37
- else
38
  $url = '/?p='.intval ($_GET['p']);
39
 
40
  if (isset ($_GET['page_id']))
34
 
35
  if (isset ($_GET['page_id']))
36
  $url = '/?page_id='.intval ($_GET['page_id']);
37
+ elseif ( isset( $_GET['p'] ) )
38
  $url = '/?p='.intval ($_GET['p']);
39
 
40
  if (isset ($_GET['page_id']))
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: johnny5
3
  Tags: seo, post, page, meta-data, title, keywords, tags, tagging, google, head, meta, crazyegg, piwik, awstats, analytics, webmaster, feedburner
4
  Requires at least: 3.0
5
  Tested up to: 3.4
6
- Stable tag: 3.6.39
7
 
8
  Controls almost every aspect of your site's meta-data, including advanced tagging, Analytics, and dozens of plugins. The best WordPress SEO solution!
9
 
@@ -120,6 +120,11 @@ You can find full details of installing a plugin on the [plugin installation pag
120
  Full documentation can be found on the [HeadSpace2](http://urbangiraffe.com/plugins/headspace2/) page.
121
 
122
  == Changelog ==
 
 
 
 
 
123
 
124
  = 3.6.39 =
125
  * Update some old crufty code
3
  Tags: seo, post, page, meta-data, title, keywords, tags, tagging, google, head, meta, crazyegg, piwik, awstats, analytics, webmaster, feedburner
4
  Requires at least: 3.0
5
  Tested up to: 3.4
6
+ Stable tag: trunk
7
 
8
  Controls almost every aspect of your site's meta-data, including advanced tagging, Analytics, and dozens of plugins. The best WordPress SEO solution!
9
 
120
  Full documentation can be found on the [HeadSpace2](http://urbangiraffe.com/plugins/headspace2/) page.
121
 
122
  == Changelog ==
123
+ = 3.6.41 =
124
+ * Fix problem with 'plugins' module causing post edit page to stop loading fully
125
+
126
+ = 3.6.40 =
127
+ * Fix HS not appearing on post edit page
128
 
129
  = 3.6.39 =
130
  * Update some old crufty code