[wp-trac] Re: [WordPress Trac] #9918: Disable Flash Upload Option

WordPress Trac wp-trac at lists.automattic.com
Sun May 31 23:15:58 GMT 2009


#9918: Disable Flash Upload Option
-----------------------------+----------------------------------------------
 Reporter:  robertaccettura  |       Owner:  westi            
     Type:  feature request  |      Status:  assigned         
 Priority:  normal           |   Milestone:  Future Release   
Component:  Upload           |     Version:  2.8              
 Severity:  minor            |    Keywords:  reporter-feedback
-----------------------------+----------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:9 robertaccettura]:
 > It would only disable if FORCE_BROWSER_UPLOAD is defined and set to
 true, this is similar to several other constants that can be put in wp-
 config including WP_CACHE, FORCE_SSL_ADMIN.
 >
 > We could change it to  !defined('FORCE_BROWSER_UPLOAD') though note
 defined() only checks that it's defined, not the value, a bug in several
 plugins I've seen in the past that use such a technique.

 You missed the point:

 {{{
 var_dump( my_undefined_variable ); // my_undefined_variable
 var_dump( (bool) my_undefined_variable ); // true
 var_dump( defined('my_undefined_variable') && my_undefined_variable ); //
 false
 }}}

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


More information about the wp-trac mailing list