[wp-trac] [WordPress Trac] #57206: Incorrect doc type for `_WP_Dependency::$src`

WordPress Trac noreply at wordpress.org
Fri Nov 25 10:07:31 UTC 2022


#57206: Incorrect doc type for `_WP_Dependency::$src`
---------------------------+----------------------------------------
 Reporter:  swissspidy     |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  low            |  Milestone:  Future Release
Component:  Script Loader  |    Version:
 Severity:  trivial        |   Keywords:  needs-patch good-first-bug
  Focuses:                 |
---------------------------+----------------------------------------
 When using `wp_register_script` with `$src` set to `false`, it means the
 item is an alias of other items it depends on.

 Thus, it's possible for the `_WP_Dependency` object to have a `$src`
 that's not a string. This should be reflected in the docblock.

 {{{#!php
 /**
  * The handle source.
  *
  * @since 2.6.0
  * @var string|false
  */
 public $src;
 }}}

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


More information about the wp-trac mailing list