[wp-trac] [WordPress Trac] #38444: WP_ADMIN_DIR not set properly

WordPress Trac noreply at wordpress.org
Sat Oct 22 11:10:34 UTC 2016


#38444: WP_ADMIN_DIR not set properly
--------------------------+-----------------------------
 Reporter:  perochak      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 In file
 wp-includes/theme.php
 on lines 1759 and 1772, there should be constant WP_ADMIN_DIR rather then
 wp_admin.

 Line 1759

 {{{#!php
 <?php
 require_once( ABSPATH .'wp-admin/custom-header.php' );
 }}}

 Which should be

 {{{#!php
 <?php
 require_once( ABSPATH . WP_ADMIN_DIR.'/custom-header.php' );
 }}}

 Same is true for line 1772

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38444>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list