WordPress/wp-admin/includes
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
..
admin-filters.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
admin.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
ajax-actions.php Docs: Add missing description for `$post` global. 2019-08-04 12:28:56 +00:00
bookmark.php Coding Standards: Rename `$r` variable used with `wp_parse_args()` to `$parsed_args` for clarity. 2019-07-25 00:48:58 +00:00
class-automatic-upgrader-skin.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-bulk-plugin-upgrader-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-bulk-theme-upgrader-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-bulk-upgrader-skin.php I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders. 2018-03-11 16:44:34 +00:00
class-core-upgrader.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
class-custom-background.php Coding Standards: Dynamic hooks should be named using interpolation not concatenation. 2019-08-22 19:08:55 +00:00
class-custom-image-header.php Coding Standards: Dynamic hooks should be named using interpolation not concatenation. 2019-08-22 19:08:55 +00:00
class-file-upload-upgrader.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
class-ftp-pure.php Docs: Correct grammar in PemFTP description. 2019-03-17 01:20:49 +00:00
class-ftp-sockets.php Docs: Correct grammar in PemFTP description. 2019-03-17 01:20:49 +00:00
class-ftp.php PHP 7.4 compatibility fix / accessing arrays/string using curly brace syntax 2019-08-03 20:21:55 +00:00
class-language-pack-upgrader-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-language-pack-upgrader.php I18N: Merge duplicate "Your plugins/themes/translations are all up to date" strings. 2019-07-16 22:13:58 +00:00
class-pclzip.php Filesystem API: Ensure memory limit calculations by PclZip are using integers. 2016-07-19 11:55:30 +00:00
class-plugin-installer-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-plugin-upgrader-skin.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-plugin-upgrader.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-theme-installer-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-theme-upgrader-skin.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
class-theme-upgrader.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-walker-category-checklist.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-walker-nav-menu-checklist.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-walker-nav-menu-edit.php 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
class-wp-ajax-upgrader-skin.php Upgrade/Install: Correct operator precedence for an error code in `WP_Ajax_Upgrader_Skin::error()`. 2019-05-31 14:14:52 +00:00
class-wp-automatic-updater.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
class-wp-comments-list-table.php Docs: Add missing description for `$post` global. 2019-08-04 12:28:56 +00:00
class-wp-community-events.php Date/Time: Simplify the date comparing logic in `WP_Community_Events::trim_events()`. 2019-08-23 02:15:55 +00:00
class-wp-debug-data.php Site Health: Add timezone to Site Health Info page. 2019-08-24 19:37:57 +00:00
class-wp-filesystem-base.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
class-wp-filesystem-direct.php Filesystem API: Check correct variable in `WP_Filesystem_Direct::dirlist()` after [45611]. 2019-07-09 15:58:57 +00:00
class-wp-filesystem-ftpext.php PHP 7.4 compatibility fix / accessing arrays/string using curly brace syntax 2019-08-03 20:21:55 +00:00
class-wp-filesystem-ftpsockets.php Coding Standards: Fix instances of `WordPress.PHP.NoSilencedErrors.Discouraged`. 2019-07-09 05:45:58 +00:00
class-wp-filesystem-ssh2.php Coding Standards: Fix instances of `WordPress.PHP.NoSilencedErrors.Discouraged`. 2019-07-09 05:45:58 +00:00
class-wp-importer.php PHP 7.4 compatibility fix / accessing arrays/string using curly brace syntax 2019-08-03 20:21:55 +00:00
class-wp-internal-pointers.php Privacy: Remove privacy feature related admin pointers. 2019-03-04 20:47:50 +00:00
class-wp-links-list-table.php Coding Standards: Remove extra whitespace in list tables' `column_cb()` methods. 2019-07-09 21:11:58 +00:00
class-wp-list-table-compat.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-list-table.php Docs: Add missing description for `$wp_locale` global. 2019-08-04 01:46:55 +00:00
class-wp-media-list-table.php Docs: Add missing description for `$post` global. 2019-08-04 12:28:56 +00:00
class-wp-ms-sites-list-table.php Docs: Add missing description for `$wpdb`, `$wp_db_version`, and `$wp_current_db_version` globals. 2019-08-04 01:12:56 +00:00
class-wp-ms-themes-list-table.php I18N: Add context for theme filter strings in `WP_MS_Themes_List_Table::get_views()`. 2019-07-14 14:47:56 +00:00
class-wp-ms-users-list-table.php Coding Standards: Remove extra whitespace in list tables' `column_cb()` methods. 2019-07-09 21:11:58 +00:00
class-wp-plugin-install-list-table.php Plugins: Use `include_once` for `wp-admin/includes/plugin-install.php` in `WP_Plugin_Install_List_Table::prepare_items()`. 2019-08-05 11:07:55 +00:00
class-wp-plugins-list-table.php Site Health: Use correct variable when checking PHP requirements for a plugin update in `WP_Plugins_List_Table::single_row()`. 2019-08-05 10:58:56 +00:00
class-wp-post-comments-list-table.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-posts-list-table.php Docs: Add missing description for `$post` global. 2019-08-04 12:28:56 +00:00
class-wp-privacy-data-export-requests-list-table.php Privacy: Remove inline CSS within personal data request list tables. 2019-06-04 23:40:55 +00:00
class-wp-privacy-data-removal-requests-list-table.php Privacy tools: remove some left-over code and fix inline comment. 2019-06-08 00:30:51 +00:00
class-wp-privacy-policy-content.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
class-wp-privacy-requests-table.php Administration: Replace legacy `updated` message type in `add_settings_error()` calls with `success`. 2019-08-16 00:39:55 +00:00
class-wp-screen.php Docs: Add missing description for `$current_screen` global. 2019-08-04 02:03:55 +00:00
class-wp-site-health-auto-updates.php Administration: Add missing filter documentation for Site Health auto update tests. 2019-05-29 13:59:51 +00:00
class-wp-site-health.php Docs: Add missing `@since` tag for `WP_Site_Health::has_late_cron()`. 2019-08-15 00:42:55 +00:00
class-wp-site-icon.php Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:58:52 +00:00
class-wp-terms-list-table.php Taxonomy: Fix deprecated calls to `get_terms()`. 2019-08-03 03:35:56 +00:00
class-wp-theme-install-list-table.php I18N: Merge duplicate "Try Again" strings. 2019-05-26 14:40:51 +00:00
class-wp-themes-list-table.php Coding Standards: Dynamic hooks should be named using interpolation not concatenation. 2019-08-22 19:08:55 +00:00
class-wp-upgrader-skin.php Upgrade/Install: Add missing opening curly bracket after [44513]. 2019-03-21 18:03:51 +00:00
class-wp-upgrader-skins.php Load: Re-add `class-wp-upgrader-skins.php`. 2016-12-03 03:40:41 +00:00
class-wp-upgrader.php Coding Standards: Fix instances of `WordPress.PHP.NoSilencedErrors.Discouraged`. 2019-07-09 05:45:58 +00:00
class-wp-users-list-table.php Users: Allow Super Admins to remove themselves from a site on a Multisite network. 2019-05-25 00:13:53 +00:00
comment.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
continents-cities.php I18N: Update list of continents and cities for the timezone selection. 2018-07-18 11:21:25 +00:00
credits.php Code is Poetry. 2017-11-30 23:11:00 +00:00
dashboard.php Date/Time: Introduce `current_datetime()` for better time operations. 2019-08-23 01:12:55 +00:00
deprecated.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
edit-tag-messages.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
export.php Docs: Add missing description for `$post` global. 2019-08-04 12:28:56 +00:00
file.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
image-edit.php Coding Standards: Remove extra whitespace in `wp-admin/includes/image-edit.php`. 2019-07-09 21:05:57 +00:00
image.php Docs: Fix typo in `_wp_make_subsizes()` DocBlock. 2019-08-21 16:23:56 +00:00
import.php Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:58:52 +00:00
list-table.php Privacy: Remove reinstated `wp-admin/options-privacy.php` from `$_old_files`. 2019-05-27 02:40:53 +00:00
media.php Docs: Add missing description for `$wp_query` and `$wp_the_query` globals. 2019-08-04 01:59:56 +00:00
menu.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
meta-boxes.php I18N: Update translator comments after [45674]. 2019-07-25 22:52:56 +00:00
misc.php Docs: Add missing description for `$wp_rewrite` global. 2019-08-04 01:19:56 +00:00
ms-admin-filters.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-deprecated.php I18N: Merge similar strings about allowed space allocation in Multisite. 2019-04-01 12:24:51 +00:00
ms.php Docs: Add missing description for `$wpdb`, `$wp_db_version`, and `$wp_current_db_version` globals. 2019-08-04 01:12:56 +00:00
nav-menu.php Taxonomy: Fix deprecated calls to `get_terms()`. 2019-08-03 03:35:56 +00:00
network.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
noop.php Code is Poetry. 2017-11-30 23:11:00 +00:00
options.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 Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
plugin.php Coding Standards: Fix instances of `WordPress.PHP.NoSilencedErrors.Discouraged`. 2019-07-09 05:45:58 +00:00
post.php Taxonomy: Fix deprecated calls to `get_terms()`. 2019-08-03 03:35:56 +00:00
privacy-tools.php Privacy: Add descriptions for sections in a personal data export file. 2019-08-18 02:07:57 +00:00
revision.php Docs: Add missing description for `$post` global. 2019-08-04 12:28:56 +00:00
schema.php Schema: Add an index to `wp_options.autoload`. 2019-08-15 07:13:55 +00:00
screen.php Docs: Add missing description for `$current_screen` global. 2019-08-04 02:03:55 +00:00
taxonomy.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
template.php Coding Standards: Dynamic hooks should be named using interpolation not concatenation. 2019-08-22 19:08:55 +00:00
theme-install.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
theme.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
translation-install.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +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: Dynamic hooks should be named using interpolation not concatenation. 2019-08-22 19:08:55 +00:00
upgrade.php Remove trailing white space in upgrade.php. 2019-08-13 19:53:55 +00:00
user.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
widgets.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00