Changeset 988138
- Timestamp:
- 09/12/2014 09:58:27 AM (12 years ago)
- Location:
- 2mb-autocode/trunk
- Files:
-
- 2 edited
-
2mb-autocode.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
2mb-autocode/trunk/2mb-autocode.php
r988120 r988138 6 6 Plugin Name: 2MB Autocode 7 7 Plugin URI: http://2mb.solutions/plugins/autocode 8 Version: 1.1. 18 Version: 1.1.2 9 9 License: Gpl v2 or later 10 10 */ … … 115 115 } 116 116 117 add_action('the_content', ' do_php', 0);118 function do_php($content) {119 $content = preg_replace_callback('/\[php\]((.|\n)+)\[\/php\]/', ' exec_php', $content);117 add_action('the_content', 'twomb_autocode_do_php', 0); 118 function twomb_autocode_do_php($content) { 119 $content = preg_replace_callback('/\[php\]((.|\n)+)\[\/php\]/', 'twomb_autocode_exec_php', $content); 120 120 return $content; 121 121 } 122 122 123 function exec_php($matches) {123 function twomb_autocode_exec_php($matches) { 124 124 ob_start(); 125 125 eval($matches[1]); -
2mb-autocode/trunk/readme.txt
r988120 r988138 5 5 Requires at least: 2.7.0 6 6 Tested up to: 4.0 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 Simply put ##do_top_home## or ##do_bottom_home## anywhere in the post. 53 53 54 = My blog is broken and just shows the white screen of death after upgrading to 1.1 or 1.1.1! help! = 55 56 Do not worry, the fix is a simple one: 57 58 1. Delete or move the inline php plugin folder on your server, and the blog should be accessible again. 59 1. Now upgrade to 2mb autocode version 1.1.2, which fixes this particular issue. 60 1. Optional but highly recommended: Replace all [exec] or <exec> tags with [php] tags to allow 2mb autocode to do the php for you, and you will have no need for inline php. 61 54 62 == Screenshots == 55 63 … … 57 65 58 66 == Changelog == 67 68 = 1.1.2 = 69 *Very important! If you were using inline php to put php on your blog before, please upgrade to this version or uninstall inline php before upgrading to 2mb autocode 1.1. There was a problem that caused the two plugins to conflict, which has now been solved. *** NOTE *** if your blog is not accessible due to the conflict, do the following: Delete the inline php folder from your server, and all should be well. We're sorry for any inconvenience -- sometimes even plugin developers can screw up ;-). 59 70 60 71 = 1.1.1 = … … 74 85 == Upgrade Notice == 75 86 87 = 1.1.2 = 88 If you use inline php to do your php inside posts: 89 90 *You don't need to anymore, as this plugin will handle it for you. 91 *Please update to this version or uninstall the inline php plugin because the two plugins conflict. This has now been fixed. 92 *If your blog is totally broken and you cannot access the admin panel to remove the plugin inline php, then simply delete the inline php plugin folder from your server, and the problem will be solved. Sorry for any inconvenience (even coding ninjas are durps sometimes too, ;-)) 93 94 = 1.1.1 = 95 If you didn't know how to use the plugin... this update is for you. This update adds documentation inside the plugin, as well as adds ##do_top_home## and ##do_bottom_home## to force displaying the text on a per-post basis on the homepage, no matter what the checkbox says in the options pannel. 96 76 97 = 1.1 = 77 98 If you were using php at the top or bottom of a post, please upgrade to this version as this fixes a possibility that the php code would not run or the php may have echoed to the wrong part of the screen. In addition if you want to run php code in your posts without having to add it to every post, then you may like this release. Also, if you wish to turn off the placing of text on a per post basis for the home and/or single post pages, this update is for you.
Note: See TracChangeset
for help on using the changeset viewer.