Version Description
- Fixed broken wpautop filter. Checkbox on widget works now.
Download this release
Release Info
| Developer | Otto42 |
| Plugin | |
| Version | 2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0 to 2.1
- execphp.php +12 -1
- readme.txt +19 -4
execphp.php
CHANGED
|
@@ -4,8 +4,9 @@ Plugin Name: Executable PHP widget
|
|
| 4 |
Plugin URI: http://wordpress.org/extend/plugins/php-code-widget/
|
| 5 |
Description: Like the Text widget, but it will take PHP code as well. Heavily derived from the Text widget code in WordPress.
|
| 6 |
Author: Otto
|
| 7 |
-
Version: 2.
|
| 8 |
Author URI: http://ottodestruct.com
|
|
|
|
| 9 |
|
| 10 |
Copyright 2009 Samuel Wood (email : otto@ottodestruct.com)
|
| 11 |
|
|
@@ -76,3 +77,13 @@ class PHP_Code_Widget extends WP_Widget {
|
|
| 76 |
}
|
| 77 |
|
| 78 |
add_action('widgets_init', create_function('', 'return register_widget("PHP_Code_Widget");'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
Plugin URI: http://wordpress.org/extend/plugins/php-code-widget/
|
| 5 |
Description: Like the Text widget, but it will take PHP code as well. Heavily derived from the Text widget code in WordPress.
|
| 6 |
Author: Otto
|
| 7 |
+
Version: 2.1
|
| 8 |
Author URI: http://ottodestruct.com
|
| 9 |
+
License: GPL2
|
| 10 |
|
| 11 |
Copyright 2009 Samuel Wood (email : otto@ottodestruct.com)
|
| 12 |
|
| 77 |
}
|
| 78 |
|
| 79 |
add_action('widgets_init', create_function('', 'return register_widget("PHP_Code_Widget");'));
|
| 80 |
+
|
| 81 |
+
// donate link on manage plugin page
|
| 82 |
+
add_filter('plugin_row_meta', 'execphp_donate_link', 10, 2);
|
| 83 |
+
function execphp_donate_link($links, $file) {
|
| 84 |
+
if ($file == plugin_basename(__FILE__)) {
|
| 85 |
+
$donate_link = '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=otto%40ottodestruct%2ecom">Donate</a>';
|
| 86 |
+
$links[] = $donate_link;
|
| 87 |
+
}
|
| 88 |
+
return $links;
|
| 89 |
+
}
|
readme.txt
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
=== PHP Code Widget ===
|
| 2 |
-
Contributors:
|
| 3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=otto%40ottodestruct%2ecom
|
| 4 |
Tags: php, widget, execphp
|
| 5 |
Requires at least: 2.8
|
| 6 |
-
Tested up to:
|
| 7 |
-
Stable tag: 2.
|
|
|
|
|
|
|
| 8 |
|
| 9 |
Like the Text widget, but also allows working PHP code to be inserted.
|
| 10 |
|
|
@@ -21,6 +23,16 @@ WARNING: Upgrading to 2.0 from 1.2 may cause loss of your existing widgets.
|
|
| 21 |
Copy the code you have in them elsewhere first, then recreate your widgets
|
| 22 |
afterwards.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
== Installation ==
|
| 25 |
|
| 26 |
1. Upload `execphp.php` to the `/wp-content/plugins/` directory
|
|
@@ -40,7 +52,7 @@ No, it's not.
|
|
| 40 |
Really.
|
| 41 |
|
| 42 |
This widget has no bugs, it's about the simplest widget one can possibly
|
| 43 |
-
make. Any errors coming out of the "execphp
|
| 44 |
put into one of the widgets. The reason that it shows the error being in the
|
| 45 |
execphp.php file is because that is where your code is actually being run
|
| 46 |
from.
|
|
@@ -54,6 +66,9 @@ is yours. Please don't email me about that error.
|
|
| 54 |
2. The output of the widget on the site.
|
| 55 |
|
| 56 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 57 |
= 2.0 =
|
| 58 |
* Changed widget to use new Class methods for creating widget. This simplifies the widget and should eliminate any problems with it losing code or disappearing from sidebars and so forth.
|
| 59 |
* WARNING: Version 2.0 REQUIRES WordPress 2.8 and up. It will not work with older versions.
|
| 1 |
=== PHP Code Widget ===
|
| 2 |
+
Contributors: Otto42
|
| 3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=otto%40ottodestruct%2ecom
|
| 4 |
Tags: php, widget, execphp
|
| 5 |
Requires at least: 2.8
|
| 6 |
+
Tested up to: 3.4
|
| 7 |
+
Stable tag: 2.1
|
| 8 |
+
License: GPLv2
|
| 9 |
+
License URI: http://www.opensource.org/licenses/GPL-2.0
|
| 10 |
|
| 11 |
Like the Text widget, but also allows working PHP code to be inserted.
|
| 12 |
|
| 23 |
Copy the code you have in them elsewhere first, then recreate your widgets
|
| 24 |
afterwards.
|
| 25 |
|
| 26 |
+
Want regular WordPress news and code updates? Become a fan of my sites on Facebook!
|
| 27 |
+
|
| 28 |
+
* http://www.facebook.com/pages/Nothing-to-See-Here/241409175928000
|
| 29 |
+
* http://www.facebook.com/ottopress
|
| 30 |
+
|
| 31 |
+
Or follow my sites on Twitter!
|
| 32 |
+
|
| 33 |
+
* http://twitter.com/ottodestruct
|
| 34 |
+
|
| 35 |
+
|
| 36 |
== Installation ==
|
| 37 |
|
| 38 |
1. Upload `execphp.php` to the `/wp-content/plugins/` directory
|
| 52 |
Really.
|
| 53 |
|
| 54 |
This widget has no bugs, it's about the simplest widget one can possibly
|
| 55 |
+
make. Any errors coming out of the "execphp.php" file are errors in code you
|
| 56 |
put into one of the widgets. The reason that it shows the error being in the
|
| 57 |
execphp.php file is because that is where your code is actually being run
|
| 58 |
from.
|
| 66 |
2. The output of the widget on the site.
|
| 67 |
|
| 68 |
== Changelog ==
|
| 69 |
+
= 2.1 =
|
| 70 |
+
* Fixed broken wpautop filter. Checkbox on widget works now.
|
| 71 |
+
|
| 72 |
= 2.0 =
|
| 73 |
* Changed widget to use new Class methods for creating widget. This simplifies the widget and should eliminate any problems with it losing code or disappearing from sidebars and so forth.
|
| 74 |
* WARNING: Version 2.0 REQUIRES WordPress 2.8 and up. It will not work with older versions.
|
