[wp-trac] [WordPress Trac] #20062: Don't use $title as var name if it's in global context

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 17 19:19:05 UTC 2012


#20062: Don't use $title as var name if it's in global context
----------------------------+------------------
 Reporter:  ocean90         |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.4
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by nacin):

 Let's consider reducing our reliance on $title. Perhaps introduce
 set_admin_page_title( $title = null ), where if null it returns the set
 value. Then we take a $title and set it in admin-header, and use it inside
 get_admin_page_title(). Kills reliance on the global (while we could still
 set it up, if we wanted).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20062#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list