Commit 2e4be8b
committed
Coding Standards: Explicitly return
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-d223f7449a82null in wp_get_nav_menu_to_edit().1 parent d9534e1 commit 2e4be8b
File tree
1 file changed
+4
-1
lines changed- src/wp-admin/includes
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1239 | 1239 | | |
1240 | 1240 | | |
1241 | 1241 | | |
1242 | | - | |
| 1242 | + | |
| 1243 | + | |
1243 | 1244 | | |
1244 | 1245 | | |
1245 | 1246 | | |
| |||
1321 | 1322 | | |
1322 | 1323 | | |
1323 | 1324 | | |
| 1325 | + | |
| 1326 | + | |
1324 | 1327 | | |
1325 | 1328 | | |
1326 | 1329 | | |
| |||
0 commit comments