[wp-trac] [WordPress Trac] #26978: In the admin area, the WP menu to the left links to index.php for the dashboard

WordPress Trac noreply at wordpress.org
Tue Feb 4 12:45:53 UTC 2014


#26978: In the admin area, the WP menu to the left links to index.php for the
dashboard
------------------------------------+------------------------------
 Reporter:  Denis-de-Bernardy       |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Administration          |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  ui
------------------------------------+------------------------------

Comment (by Denis-de-Bernardy):

 Alternative means to do this using a drop-in plugin in the meanwhile:

 {{{
 add_filter('parent_file', function($parent) {
     ob_start(function($buffer) {
         $buffer = str_replace(array(
             "href='index.php'", 'href="index.php"'
         ), array(
             "href='./'", 'href="./"'
         ), $buffer);
         return $buffer;
     });
     return $parent;
 });

 add_action('adminmenu', function() {
     ob_end_flush();
 });
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26978#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list