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

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 4 12:38:40 UTC 2011


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

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Replying to [comment:2 dd32]:
 > This is the expected behaviour.
 >
 > You can pass a `NULL` parameter in as the version to prevent any version
 number being printed. See the
 [http://core.trac.wordpress.org/browser/trunk/wp-includes/functions.wp-
 scripts.php#L37 documentation] for this.

 Passing NULL to optional parameters in PHP can trigger the default value
 (might vary accross PHP versions), which is FALSE here. So do you wanted
 to say that passing FALSE prevent any version number being printed?

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


More information about the wp-trac mailing list