[wp-trac] [WordPress Trac] #12492: Improper use of a variable variable ($$) in remove_all_filters()

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 3 00:54:13 UTC 2010


#12492: Improper use of a variable variable ($$) in remove_all_filters()
--------------------------+-------------------------------------------------
 Reporter:  chrisbliss18  |       Owner:  westi                  
     Type:  defect (bug)  |      Status:  new                    
 Priority:  normal        |   Milestone:  3.0                    
Component:  Plugins       |     Version:  3.0                    
 Severity:  normal        |    Keywords:  has-patch tested commit
--------------------------+-------------------------------------------------
Changes (by chrisbliss18):

 * cc: gaarai@… (added)


Comment:

 Yeah. It's an unfortunate typo that has been there as long as the function
 has been around.

 I did a search through trunk for other $$ typos and didn't see any.
 Personally, I'd like to see the $$ uses removed. The same functionality
 can be derived in numerous ways. The main issue with variable variables is
 that they are difficult to distinguish from a bug and make code clarity
 very difficult.

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


More information about the wp-trac mailing list