[wp-trac] [WordPress Trac] #27745: Incorrect return value PHPdoc for wp_create_nav_menu()

WordPress Trac noreply at wordpress.org
Wed Apr 9 22:23:32 UTC 2014


#27745: Incorrect return value PHPdoc for wp_create_nav_menu()
-----------------------------+----------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Future Release
Component:  Menus            |    Version:
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:  docs             |
-----------------------------+----------------------------
 `wp_create_nav_menu()` claims it returns a menu object, but it really
 returns a menu ID

 I think this has been in there for 4 years (r15104), so safe to just
 update the PHPdoc instead of changing the response value.

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


More information about the wp-trac mailing list