Per page add to head - Version 1.2.1

Version Description

  • Fixed a critical installation error introduced in version 1.2
Download this release

Release Info

Developer Erikvona
Plugin Icon wp plugin Per page add to head
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2 to 1.2.1

Files changed (3) hide show
  1. installdeinstall.php +1 -0
  2. perpagehead.php +1 -1
  3. readme.txt +3 -1
installdeinstall.php CHANGED
@@ -11,6 +11,7 @@ function PerPageATHInstallStep2(){
11
  fclose($htmlcreatehandle);
12
  }
13
  }
 
14
  $roleobject = $wp_roles->get_role('administrator');
15
  $roleobject->add_cap('add-to-head');
16
  add_option('ppath_types_allowed', array('post', 'page'), '', 'no');
11
  fclose($htmlcreatehandle);
12
  }
13
  }
14
+ global $wp_roles;
15
  $roleobject = $wp_roles->get_role('administrator');
16
  $roleobject->add_cap('add-to-head');
17
  add_option('ppath_types_allowed', array('post', 'page'), '', 'no');
perpagehead.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Per page head
5
  Plugin URI: http://www.evona.nl/plugins/per-page-head
6
  Description: Allows you to add content into the <head> section for a specific page, like custom JS or custom HTML, using post meta. Also allows you to add content for every page, under Settings -> Per Page Add To Head
7
- Version: 1.2
8
  Author: Erik von Asmuth
9
  Author URI: http://evona.nl/about-me/
10
  License: GPLv2
4
  Plugin Name: Per page head
5
  Plugin URI: http://www.evona.nl/plugins/per-page-head
6
  Description: Allows you to add content into the <head> section for a specific page, like custom JS or custom HTML, using post meta. Also allows you to add content for every page, under Settings -> Per Page Add To Head
7
+ Version: 1.2.1
8
  Author: Erik von Asmuth
9
  Author URI: http://evona.nl/about-me/
10
  License: GPLv2
readme.txt CHANGED
@@ -6,7 +6,7 @@ Author URI: http://evona.nl/over-mij
6
  Author: Erik von Asmuth (Erikvona)
7
  Requires at least: 3.5
8
  Tested up to: 4.2.1
9
- Stable tag: 1.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -35,6 +35,8 @@ Installation is plain and simple
35
  1. You can also add head to all posts! Just use settings -> per page add to head
36
 
37
  == Changelog ==
 
 
38
 
39
  = 1.2 =
40
  - Added support for user roles: you can prevent certain user roles from editing the head segment. Note: administrators can't be excluded, and edit the "add head to every page" segment.
6
  Author: Erik von Asmuth (Erikvona)
7
  Requires at least: 3.5
8
  Tested up to: 4.2.1
9
+ Stable tag: 1.2.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
35
  1. You can also add head to all posts! Just use settings -> per page add to head
36
 
37
  == Changelog ==
38
+ = 1.2.1 =
39
+ - Fixed a critical installation error introduced in version 1.2
40
 
41
  = 1.2 =
42
  - Added support for user roles: you can prevent certain user roles from editing the head segment. Note: administrators can't be excluded, and edit the "add head to every page" segment.