[wp-trac] [WordPress Trac] #58690: Default value for parameter update_menu_item_cache

WordPress Trac noreply at wordpress.org
Fri Jun 30 17:58:08 UTC 2023


#58690: Default value for parameter update_menu_item_cache
--------------------------+-----------------------------
 Reporter:  crstauf       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 The documentation for `WP_Query::parse_query()` indicates that the default
 value of the `update_menu_item_cache` parameter is `false`. However, the
 `wp_get_nav_menu_items()` function has the default value as `true`.

 The documentation for `wp_get_nav_menu_items()` pulls the parameters
 documentation from `WP_Query::parse_query()`, which is contradictory to
 the function's definition.

 I'm not sure what the correct fix is, or even what's appropriate.

 Reported by @matmoe in User Contributed Notes.

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


More information about the wp-trac mailing list