[wp-trac] [WordPress Trac] #34035: Document $args parameter for plugins_api()

WordPress Trac noreply at wordpress.org
Sat Sep 26 13:36:20 UTC 2015


#34035: Document $args parameter for plugins_api()
--------------------------+-------------------
 Reporter:  ocean90       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4
Component:  Plugins       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+-------------------

Comment (by ocean90):

 I think we should also switch the default value of $args. It should be an
 empty array otherwise `plugins_api( 'hot_tags' );` is producing a warning:
 "Warning: Creating default object from empty value in /src/wp-
 admin/includes/plugin-install.php on line 71".

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34035#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list