[wp-trac] [WordPress Trac] #16699: wp_enqueue_script prints current WordPress version not script version

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 5 09:29:16 UTC 2011


#16699: wp_enqueue_script prints current WordPress version not script version
--------------------------+----------------------
 Reporter:  rfair404      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  minor         |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------

Comment (by hakre):

 Replying to [comment:4 scribu]:
 > > So do you wanted to say that passing FALSE prevent any version number
 being printed?
 >
 > No, he meant NULL. FALSE means the WP version is used (akward, yes).

 Thanks for clarification.

 >
 > > Passing NULL to optional parameters in PHP can trigger the default
 value
 >
 > Do you have a reference for that statement?

 I'm not able to verify that in a timely manner, no. I knew that some PHP
 internal functions do so, but for user-code this does not seem to be the
 case for the PHP configurations I was able to test against.

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


More information about the wp-trac mailing list