WordPress/wp-admin
Sergey Biryukov b1847ef3e2 Menus: In wp_setup_nav_menu_item() and Walker_Nav_Menu_Edit::start_el(), check if the post or term associated with the menu item still exists to avoid a PHP notice.
If the associated post or term no longer exists, mark the menu item as invalid.

Props mehulkaklotar, kamrankhorsandi, cristiano.zanca, SergeyBiryukov.
Fixes #31703.
Built from https://develop.svn.wordpress.org/trunk@45891


git-svn-id: http://core.svn.wordpress.org/trunk@45702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-25 21:32:59 +00:00
..
css Plugins: Adjust margin for plugin headings on "Add Plugins" screen to avoid overlapping with "Network Activate" button. 2019-08-17 14:33:56 +00:00
images Build: Minify images 2019-02-25 15:21:52 +00:00
includes Menus: In wp_setup_nav_menu_item() and Walker_Nav_Menu_Edit::start_el(), check if the post or term associated with the menu item still exists to avoid a PHP notice. 2019-08-25 21:32:59 +00:00
js Customizer: Trim whitespace from custom link URLs. 2019-08-21 00:27:57 +00:00
maint Upgrade/Install: Bring some consistency to installation screen styles. 2019-07-25 19:11:55 +00:00
network Networks and Sites: Trim site domain when creating a new site on Add New Site screen before further validation. 2019-08-15 01:21:55 +00:00
user Code is Poetry. 2017-11-30 23:11:00 +00:00
about.php I18N: Update translator comments after [45674]. 2019-07-25 22:52:56 +00:00
admin-ajax.php Administration: In admin-ajax.php, send X-Robots-Tag header earlier, so that it applies before wp_die() when no action parameter was provided. 2019-07-17 01:11:56 +00:00
admin-footer.php Coding Standards: Mark the handful of hook names with uppercase characters or hyphens as ignored. 2019-07-05 01:45:56 +00:00
admin-functions.php Code is Poetry. 2017-11-30 23:11:00 +00:00
admin-header.php Docs: Add missing description for $current_screen global. 2019-08-04 02:03:55 +00:00
admin-post.php Admin: Use is_user_logged_in() instead of wp_validate_auth_cookie() in admin-post.php. 2019-01-16 05:41:50 +00:00
admin.php Docs: Move the do_mu_upgrade DocBlock out of the preceding if statement. 2019-07-16 13:15:58 +00:00
async-upload.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin. 2019-07-01 12:52:01 +00:00
comment.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
credits.php Coding Standards: Improve spacing of printf() calls in the admin About pages. 2019-07-19 00:09:58 +00:00
custom-background.php Coding Standards: Move wp-admin/custom-background.php to wp-admin/includes/class-custom-background.php 2019-07-19 04:02:55 +00:00
custom-header.php Coding Standards: Move wp-admin/custom-header.php to wp-admin/includes/class-custom-image-header.php 2019-07-17 06:17:56 +00:00
customize.php Coding Standards: Fix instances of WordPress.PHP.NoSilencedErrors.Discouraged. 2019-07-09 05:45:58 +00:00
edit-comments.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
edit-form-advanced.php Docs: Add missing description for $post global. 2019-08-04 12:28:56 +00:00
edit-form-blocks.php Docs: Add missing description for $post global. 2019-08-04 12:28:56 +00:00
edit-form-comment.php Accessibility: Improve settings tables and forms after [45403]. 2019-05-25 15:19:53 +00:00
edit-link-form.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
edit-tag-form.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
edit-tags.php Accessibility: Taxonomy: When a new category or tag is being added, show a spinner and noop the button to avoid multiple requests. 2019-07-26 17:46:56 +00:00
edit.php Coding Standards: Use strict comparison in wp-admin/edit.php. 2019-08-07 11:40:55 +00:00
erase-personal-data.php Privacy tools: remove some left-over code and fix inline comment. 2019-06-08 00:30:51 +00:00
export-personal-data.php Privacy tools: remove some left-over code and fix inline comment. 2019-06-08 00:30:51 +00:00
export.php Docs: Add missing description for $wp_locale global. 2019-08-04 01:46:55 +00:00
freedoms.php Coding Standards: Improve spacing of printf() calls in the admin About pages. 2019-07-19 00:09:58 +00:00
import.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
index.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
install-helper.php Code is Poetry. 2017-11-30 23:11:00 +00:00
install.php Bootstrap/Load: Change "Insufficient Requirements" wp_die() heading to "Requirements Not Met", which is more appropriate for the context it's used in. 2019-08-08 12:54:56 +00:00
link-add.php Code is Poetry. 2017-11-30 23:11:00 +00:00
link-manager.php Coding Standards: Fix all WordPress.WhiteSpace.PrecisionAlignment issues. 2019-07-05 05:21:56 +00:00
link-parse-opml.php Coding Standards: Fix/ignore the WordPress.NamingConventions.ValidFunctionName violations. 2019-07-01 08:01:57 +00:00
link.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin. 2019-07-01 12:52:01 +00:00
load-scripts.php Script Loader: Send a 400 Bad Request status code in load-scripts.php and load-styles.php if the required load[] parameter is not set. 2019-08-03 22:17:57 +00:00
load-styles.php Script Loader: Send a 400 Bad Request status code in load-scripts.php and load-styles.php if the required load[] parameter is not set. 2019-08-03 22:17:57 +00:00
media-new.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
media-upload.php Coding Standards: Fix instances of WordPress.PHP.NoSilencedErrors.Discouraged. 2019-07-09 05:45:58 +00:00
media.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
menu-header.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin. 2019-07-01 12:52:01 +00:00
menu.php Site health: Introduce view_site_health_checks capability. 2019-06-10 07:42:52 +00:00
moderation.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-admin.php
ms-delete-site.php I18N: Use a complete translatable string for the "Delete My Site" email subject. 2019-05-23 22:15:54 +00:00
ms-edit.php
ms-options.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-sites.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-themes.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-upgrade-network.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-users.php Code is Poetry. 2017-11-30 23:11:00 +00:00
my-sites.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
nav-menus.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
network.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
options-discussion.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
options-general.php Add admin email verification screen. Shown every six months after an admin has logged in. 2019-08-07 00:04:56 +00:00
options-head.php Administration: Replace legacy updated message type in add_settings_error() calls with success. 2019-08-16 00:39:55 +00:00
options-media.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
options-permalink.php Administration: Replace legacy updated message type in add_settings_error() calls with success. 2019-08-16 00:39:55 +00:00
options-privacy.php Administration: Replace legacy updated message type in add_settings_error() calls with success. 2019-08-16 00:39:55 +00:00
options-reading.php Administration: Show a warning in Reading Settings when a Privacy Policy page is accidentally set as a Homepage or Posts page. 2019-08-07 23:03:54 +00:00
options-writing.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
options.php Administration: Replace legacy updated message type in add_settings_error() calls with success. 2019-08-16 00:39:55 +00:00
plugin-editor.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
plugin-install.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
plugins.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
post-new.php Docs: Add missing description for $post global. 2019-08-04 12:28:56 +00:00
post.php Docs: Add missing description for $post global. 2019-08-04 12:28:56 +00:00
press-this.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
privacy-policy-guide.php Coding Standards: Fix all WordPress.WhiteSpace.PrecisionAlignment issues. 2019-07-05 05:21:56 +00:00
privacy.php Coding Standards: Improve spacing of printf() calls in the admin About pages. 2019-07-19 00:09:58 +00:00
profile.php Code is Poetry. 2017-11-30 23:11:00 +00:00
revision.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
setup-config.php Docs: Add missing description for $wp_locale global. 2019-08-04 01:46:55 +00:00
site-health-info.php Site Health: Simplify the language in Status Health Info page introduction, add a link to Status page. 2019-08-13 23:35:56 +00:00
site-health.php Site health: Introduce view_site_health_checks capability. 2019-06-10 07:42:52 +00:00
term.php General: Further improve error messages following [42648]. 2018-02-19 02:13:32 +00:00
theme-editor.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
theme-install.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
themes.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
tools.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
update-core.php Docs: Add missing description for $wpdb, $wp_db_version, and $wp_current_db_version globals. 2019-08-04 01:12:56 +00:00
update.php Coding Standards: Fix instances of WordPress.PHP.NoSilencedErrors.Discouraged. 2019-07-09 05:45:58 +00:00
upgrade-functions.php Code is Poetry. 2017-11-30 23:11:00 +00:00
upgrade.php Upgrade/Install: Remove debugging artifacts from wp-admin/upgrade.php added in [1229]. 2019-07-14 14:39:57 +00:00
upload.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
user-edit.php Users: Use case-insensitive email address comparison when checking whether "Grant this user super admin privileges" checkbox should be displayed on Edit User screen. 2019-07-28 17:42:55 +00:00
user-new.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
users.php Users: Adjust [45806] to make sure $all_userids is always defined. 2019-08-25 20:03:57 +00:00
widgets.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00