[Plugin: Sniplets] New post bug
-
Hello,
the JS file for this plugin is not loaded when writing a new post. That makes the sniplets meta box and also rest of the inline JS non-functional.
Please make sure to fix sniplets.php, line 150 from:
if ( (isset($_GET['page']) && $_GET['page'] == 'sniplets.php') || strpos ($_SERVER['REQUEST_URI'], 'page.php') || strpos ($_SERVER['REQUEST_URI'], 'post.php')) {
to:
if ( (isset($_GET['page']) && $_GET['page'] == 'sniplets.php') || strpos ($_SERVER['REQUEST_URI'], 'page.php') || strpos ($_SERVER['REQUEST_URI'], 'post.php') || strpos ($_SERVER['REQUEST_URI'], 'post-new.php')) {
That adds check for /wp-admin/post-new.php address and loads the required JS.
Plugin version: 1.4.4, 1.4.5.
Thanks,
Martin
- The topic ‘[Plugin: Sniplets] New post bug’ is closed to new replies.