You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coding Standards: Explicitly return null in wp_get_nav_menu_to_edit().
This commit updates the function to explicitly return `null` if a valid `$menu_id` is not passed or the term does not exist. Previously, the function could return `void`, but was typed as only returning a string or a `WP_Error` object.
Follow-up to [14248].
Props justlevine.
See #63268.
git-svn-id: https://develop.svn.wordpress.org/trunk@60180 602fd350-edb4-49c9-b593-d223f7449a82
0 commit comments