Per page add to head - Version 0.3

Version Description

Fixed an issue that could occur when WordPress was hosted inside a subfolder of the domain

Download this release

Release Info

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

Code changes from version 0.2-beta to 0.3

trunk/installdeinstall.php → installdeinstall.php RENAMED
File without changes
trunk/perpagehead.php → perpagehead.php RENAMED
@@ -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
7
- Version: 0.2 beta
8
  Author: Erik von Asmuth
9
  Author URI: http://evona.nl/over-mij/ (Dutch)
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
7
+ Version: 0.3
8
  Author: Erik von Asmuth
9
  Author URI: http://evona.nl/over-mij/ (Dutch)
10
  License: GPLv2
trunk/readme.txt → readme.txt RENAMED
@@ -2,11 +2,11 @@
2
  Contributors: Erikvona
3
  Plugin Name: Per page add to head
4
  Tags: head, css, favicon
5
- Author URI: http://erikvona.com/over-mij
6
  Author: Erik von Asmuth (Erikvona)
7
  Requires at least: 3.5
8
  Tested up to: 3.6
9
- Stable tag: 0.2 beta
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -36,6 +36,9 @@ Installation is plain and simple
36
 
37
  == Changelog ==
38
 
 
 
 
39
  = 0.2 beta =
40
  Initial release for the WordPress plugin repository
41
 
2
  Contributors: Erikvona
3
  Plugin Name: Per page add to head
4
  Tags: head, css, favicon
5
+ Author URI: http://evona.com/over-mij
6
  Author: Erik von Asmuth (Erikvona)
7
  Requires at least: 3.5
8
  Tested up to: 3.6
9
+ Stable tag: 0.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
36
 
37
  == Changelog ==
38
 
39
+ = 0.3 =
40
+ Fixed an issue that could occur when WordPress was hosted inside a subfolder of the domain
41
+
42
  = 0.2 beta =
43
  Initial release for the WordPress plugin repository
44
 
trunk/settings.php → settings.php RENAMED
@@ -1,5 +1,7 @@
1
  <?php
2
  function perpageath_config(){
 
 
3
  $htmlfile = dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'evonapluginconfig'.DIRECTORY_SEPARATOR.'everyheadpage.html';
4
  ?>
5
  <div class="wrap">
@@ -29,7 +31,7 @@ function perpageath_config(){
29
  }
30
  fclose($htmlhandle);
31
  ?>
32
- <form method="post" action="<?php echo htmlentities(get_site_url(NULL, $_SERVER["REQUEST_URI"])); ?>">
33
  <textarea style="white-space:pre; width:80%; min-width:600px; height:300px;" name="html"><?php echo $html; ?></textarea>
34
  <?php
35
  submit_button();
1
  <?php
2
  function perpageath_config(){
3
+ $request_uri_array = explode("/", $_SERVER['REQUEST_URI']);
4
+ $currenturl = htmlentities(get_site_url(NULL, "/". $request_uri_array[count($request_uri_array)-2]."/" .end($request_uri_array)));
5
  $htmlfile = dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'evonapluginconfig'.DIRECTORY_SEPARATOR.'everyheadpage.html';
6
  ?>
7
  <div class="wrap">
31
  }
32
  fclose($htmlhandle);
33
  ?>
34
+ <form method="post" action="<?php echo $currenturl; ?>">
35
  <textarea style="white-space:pre; width:80%; min-width:600px; height:300px;" name="html"><?php echo $html; ?></textarea>
36
  <?php
37
  submit_button();