Simple-code simplifies escaping

Have just added the wp-simplecode plug-in to my ever growing list. It’s very useful having a code formatting and escaping tool within Wordpress rather than having to rely on external sources.

A small fix will be needed however to suit the newer SVN builds (the interface has been changed in 2.1.x builds) - namely change the two instances of post.php to post-new.php as follows :

Locate:

add_submenu_page('post.php', 'SimpleCode', 'SimpleCode', 9, basename(__FILE__), 'sc_form');

.. and change to:

add_submenu_page('post-new.php', 'SimpleCode', 'SimpleCode', 9, basename(__FILE__), 'sc_form');

.. then scroll down and locate:

<form action="post.php?page=<?php echo basename(__FILE__); ?>" method="post">

.. and change to:

<form action="post-new.php?page=<?php echo basename(__FILE__); ?>" method="post">

≡ This is a journal entry relating to the topics of , , .

Brendan Borlase is a Systems and Network Administrator living in Adelaide, Australia, having lived, worked and breathed Information Technology for over 12 years. Learn more.

Feedback is encouraged. If you would like to read more, consider subscribing to the regularly updated RSS Feed.