• Very nice plugin. Does exactly what I want.
    Though, the editing of the PHP code with the WP editor can be a pain, because it chooses sometime to come up with the “visual” instead of “text” mode. This screws up the code with htmlentities. To avoid this it would help to enclose the code in <script>…</script> tags:

    [insert_php]
    <script>
    ... PHP code ...
    </script>
    [/insert_php]

    This protects the php code.
    The plugin has to remove the <script> tag befor evaluating the php code.
    Here my modification in insert_php.php to achieve this:

     	function will_bontrager_insert_php($content)
    	{
    		// CZ: remove added <script>..</script> tags
    		$will_bontrager_content = preg_replace('/(\[insert_php\]\s*)(<script>\s*)(.*?)(<\/script>\s*)(\[\/insert_php\])/is','${1}${3}${5}',$content);
    

    Cheers
    Christian

Viewing 1 replies (of 1 total)
  • Plugin Author WillBontrager

    (@willbontrager)

    Christian, that is really cool and a great idea.

    Yes, I think I will incorporate something like that in the next version.

    Would you like credit for the idea? If yes, how do you prefer to be named?

    Will

Viewing 1 replies (of 1 total)
  • The topic ‘Feature request: Add support for tag’ is closed to new replies.