[wp-trac] [WordPress Trac] #31126: wp_register_script() should return boolean success/failure value

WordPress Trac noreply at wordpress.org
Sun Jan 25 18:36:53 UTC 2015


#31126: wp_register_script() should return boolean success/failure value
---------------------------+-----------------------------
 Reporter:  katzwebdesign  |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 `wp_register_script()` currently returns no value. When registering a
 script fails, it fails silently.

 The `wp_register_script()` function is essentially a wrapper for
 `$wp_scripts->add()`, so `wp_register_script()` should return the same
 boolean "True on success, false on failure." value.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31126>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list