Version Description
- Fixed major issue with 1.2.2
=
Download this release
Release Info
Developer | Hit Reach |
Plugin | Allow PHP in Posts and Pages |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- README.txt +5 -2
- allowphp.php +4 -4
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: post, pages, posts, code, php, shortcode,
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 3.0.1
|
7 |
-
Stable tag: 1.2.
|
8 |
|
9 |
Allow PHP in posts and pages allows you to add php functionality to Wordpress Posts and Pages
|
10 |
|
@@ -14,6 +14,8 @@ Allow PHP in posts and pages adds the functionality to include PHP in wordpress
|
|
14 |
|
15 |
This plugin strips away the automatically generated wordpress <p> and <br/> tags but still allows the addition of your own <p> and <br/> tags
|
16 |
|
|
|
|
|
17 |
== Usage ==
|
18 |
|
19 |
To add the PHP code to your post or page simply place any PHP code inside the shortcode tags.
|
@@ -86,7 +88,8 @@ Version: 1.0 <a href='http://www.hitreach.co.uk/wordpress-plugins/allow-php-in-p
|
|
86 |
* Bug fix for the conversion of the right square bracket
|
87 |
= 1.2 =
|
88 |
* Character Conversion Fixes
|
89 |
-
|
|
|
90 |
|
91 |
== Frequently Asked Questions ==
|
92 |
= What Tags Are Automatically Removed? =
|
4 |
Tags: post, pages, posts, code, php, shortcode,
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 3.0.1
|
7 |
+
Stable tag: 1.2.3
|
8 |
|
9 |
Allow PHP in posts and pages allows you to add php functionality to Wordpress Posts and Pages
|
10 |
|
14 |
|
15 |
This plugin strips away the automatically generated wordpress <p> and <br/> tags but still allows the addition of your own <p> and <br/> tags
|
16 |
|
17 |
+
Please update immeadiatly if using version 1.2.2
|
18 |
+
|
19 |
== Usage ==
|
20 |
|
21 |
To add the PHP code to your post or page simply place any PHP code inside the shortcode tags.
|
88 |
* Bug fix for the conversion of the right square bracket
|
89 |
= 1.2 =
|
90 |
* Character Conversion Fixes
|
91 |
+
= 1.2.3 =
|
92 |
+
* Fixed major issue with 1.2.2
|
93 |
|
94 |
== Frequently Asked Questions ==
|
95 |
= What Tags Are Automatically Removed? =
|
allowphp.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Allow PHP in posts and pages
|
4 |
-
version: 1.2.
|
5 |
Plugin URI: http://www.hitreach.co.uk/wordpress-plugins/allow-php-in-posts-and-pages/
|
6 |
Description: Allow PHP in posts and pages allows you to add php functionality to Wordpress Posts and Pages whilst still retaining HTML tags
|
7 |
Author: Hit Reach
|
@@ -11,7 +11,7 @@ add_shortcode('php','php_handler');
|
|
11 |
add_action('admin_menu', 'allow_php_menu');
|
12 |
|
13 |
function php_handler($args, $content=null){
|
14 |
-
define("ALLOWPHPVERSION","1.2.
|
15 |
global $is_comment;
|
16 |
if($is_comment){return "";}
|
17 |
extract( shortcode_atts(array('debug' => 0), $args));
|
@@ -27,7 +27,7 @@ function php_handler($args, $content=null){
|
|
27 |
$content = str_replace("&#8221;","\"",$content);
|
28 |
$content = str_replace("&#8243;","\"",$content);
|
29 |
$content = str_replace("&#039;","'",$content);
|
30 |
-
$content = str_replace("
|
31 |
$content = str_replace("&#038;","&",$content);
|
32 |
$content = str_replace("&lt;br /&gt;"," ", $content);
|
33 |
$content = htmlspecialchars_decode($content);
|
@@ -65,7 +65,7 @@ function allow_php_options(){
|
|
65 |
<div style='float:right; display:inline; margin-left:25px; margin-bottom:10px; margin-right:15px; padding:5px; background-color:#ffffcc; border:1px solid #ddddaa;'>
|
66 |
<span style='font-size:1em; color:#999; display:block; line-height:1.2em;'>Developed by <a href='http://www.hitreach.co.uk' target="_blank" style='text-decoration:none;'>Hit Reach</a></span>
|
67 |
<span style='font-size:1em; color:#999; display:block; line-height:1.2em;'>Check out our other <a href='http://www.hitreach.co.uk/services/wordpress-plugins/' target="_blank" style='text-decoration:none;'>Wordpress Plugins</a></span>
|
68 |
-
<span style='font-size:1em; color:#999; display:block; line-height:1.2em;'>Version: 1.2.
|
69 |
|
70 |
<p>Allow PHP in posts and pages adds the functionality to include PHP in wordpress posts and pages by adding a simple shortcode <span style='color:green'>[php]</span><em>.code.</em><span style='color:green'>[/php]</span></p>
|
71 |
<p>This plugin strips away the automatically generated wordpress <p> and <br/> tags but still allows the addition of your own <p> and <br/> tags
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Allow PHP in posts and pages
|
4 |
+
version: 1.2.3
|
5 |
Plugin URI: http://www.hitreach.co.uk/wordpress-plugins/allow-php-in-posts-and-pages/
|
6 |
Description: Allow PHP in posts and pages allows you to add php functionality to Wordpress Posts and Pages whilst still retaining HTML tags
|
7 |
Author: Hit Reach
|
11 |
add_action('admin_menu', 'allow_php_menu');
|
12 |
|
13 |
function php_handler($args, $content=null){
|
14 |
+
define("ALLOWPHPVERSION","1.2.3");
|
15 |
global $is_comment;
|
16 |
if($is_comment){return "";}
|
17 |
extract( shortcode_atts(array('debug' => 0), $args));
|
27 |
$content = str_replace("&#8221;","\"",$content);
|
28 |
$content = str_replace("&#8243;","\"",$content);
|
29 |
$content = str_replace("&#039;","'",$content);
|
30 |
+
$content = str_replace("'","'",$content);
|
31 |
$content = str_replace("&#038;","&",$content);
|
32 |
$content = str_replace("&lt;br /&gt;"," ", $content);
|
33 |
$content = htmlspecialchars_decode($content);
|
65 |
<div style='float:right; display:inline; margin-left:25px; margin-bottom:10px; margin-right:15px; padding:5px; background-color:#ffffcc; border:1px solid #ddddaa;'>
|
66 |
<span style='font-size:1em; color:#999; display:block; line-height:1.2em;'>Developed by <a href='http://www.hitreach.co.uk' target="_blank" style='text-decoration:none;'>Hit Reach</a></span>
|
67 |
<span style='font-size:1em; color:#999; display:block; line-height:1.2em;'>Check out our other <a href='http://www.hitreach.co.uk/services/wordpress-plugins/' target="_blank" style='text-decoration:none;'>Wordpress Plugins</a></span>
|
68 |
+
<span style='font-size:1em; color:#999; display:block; line-height:1.2em;'>Version: 1.2.3 <a href='http://www.hitreach.co.uk/wordpress-plugins/allow-php-in-posts-and-pages/' target="_blank" style='text-decoration:none;'>Support, Comments & questions</a></span></div>
|
69 |
|
70 |
<p>Allow PHP in posts and pages adds the functionality to include PHP in wordpress posts and pages by adding a simple shortcode <span style='color:green'>[php]</span><em>.code.</em><span style='color:green'>[/php]</span></p>
|
71 |
<p>This plugin strips away the automatically generated wordpress <p> and <br/> tags but still allows the addition of your own <p> and <br/> tags
|