Wordpress/src/wp-admin
Weston Ruter 7105787ced Customize: Allow users to more seamlessly create page-based nav menus during customization.
Introduces the ability to create stubs for the various post types to add to a given menu. This eliminates the need to leave the customizer to first create the post in the admin and then return to managing menus. Only the title of the newly-created post can be supplied; the post content will be blank and will need to be provided in the normal edit post screen outside the customizer, unless a plugin enables a post editing in the customizer experience. When a post is created and added to a nav menu in the customizer, the newly created post that is added to a menu is given the `auto-draft` status, and if the changes are not published, the `auto-draft` post will be automatically deleted within 7 days via `wp_delete_auto_drafts()`. However, if the customizer changes are saved, then these nav menu item `auto-draft` post stubs will be transitioned to `publish`.

Includes portions of code from the Customize Posts <https://github.com/xwp/wp-customize-posts> and Front-end Editor <https://github.com/iseulde/wp-front-end-editor> plugins.

For more information, see https://make.wordpress.org/core/2016/06/16/feature-proposal-content-authorship-in-menus-with-live-preview/

Props celloexpressions, westonruter, valendesigns, afercia, melchoyce, mapk, iseulde, mrahmadawais.
Fixes #34923.


git-svn-id: https://develop.svn.wordpress.org/trunk@38436 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-29 22:58:32 +00:00
..
css Customize: Allow users to more seamlessly create page-based nav menus during customization. 2016-08-29 22:58:32 +00:00
images Customize: Add a RTL version of "browser.png" for the site icon preview. 2016-07-05 11:31:13 +00:00
includes I18N: Correct various instances of incorrect usage of esc_attr_e(). 2016-08-28 18:05:02 +00:00
js Customize: Allow users to more seamlessly create page-based nav menus during customization. 2016-08-29 22:58:32 +00:00
maint I18N: Make the translator comment added in [37858] more explicit and consistent with other similar instances. 2016-07-04 13:09:07 +00:00
network I18N: Replace unnecessary context with a translator comment for %s KB string on Network Settings screen. 2016-08-23 00:10:49 +00:00
user Docs: Standardize hook docs in wp-admin/* to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:00:23 +00:00
about.php About Page: Add release video and move images to CDN. 2016-08-16 17:57:06 +00:00
admin-ajax.php TinyMCE, inline link: 2016-07-26 23:23:21 +00:00
admin-footer.php Hooks: Standardize naming of dynamic hooks to use interpolation vs concatenation. 2016-08-22 18:24:48 +00:00
admin-functions.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:39:01 +00:00
admin-header.php Hooks: Standardize naming of dynamic hooks to use interpolation vs concatenation. 2016-08-22 18:24:48 +00:00
admin-post.php Spelling: Standardize on "front end"/"back end" (noun) and "front-end"/"back-end" (adjective). 2016-02-25 12:52:33 +00:00
admin.php Hooks: Standardize naming of dynamic hooks to use interpolation vs concatenation. 2016-08-22 18:24:48 +00:00
async-upload.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
comment.php I18N: Correct various instances of incorrect usage of esc_attr_e(). 2016-08-28 18:05:02 +00:00
credits.php About Page: Third pass for 4.6. 2016-08-10 23:32:27 +00:00
custom-background.php Docs: Standardize capitalization of Ajax throughout core documentation per the core spelling guide. 2016-07-10 00:50:21 +00:00
custom-header.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
customize.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
edit-comments.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
edit-form-advanced.php Hooks: Standardize naming of dynamic hooks to use interpolation vs concatenation. 2016-08-22 18:24:48 +00:00
edit-form-comment.php DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:49:09 +00:00
edit-link-form.php Bump H3 headings to H2 on the legacy Link Manager screen for better accessibility. 2015-10-14 17:31:29 +00:00
edit-tag-form.php I18N: Add context and translator comments to Back to %s strings. 2016-06-14 21:50:57 +00:00
edit-tags.php Text Changes: Add a full stop to "Invalid taxonomy" and "Invalid term ID" strings, for consistency with similar post-related messages. 2016-07-17 16:14:27 +00:00
edit.php I18N: Combine two duplicate "Invalid post type" strings. 2016-07-17 16:04:50 +00:00
export.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
freedoms.php I18N: Allow for WordPress Plugin/Theme Directory URLs to be localized. 2016-08-23 01:18:53 +00:00
import.php Import: Enhance accessibility on the Import screen. 2016-07-17 15:31:29 +00:00
index.php Update/Install: Fix plugin updates from the details modal on the Dashboard. 2016-07-05 15:36:43 +00:00
install-helper.php Docs: Add missing descriptions for the $wpdb global in DocBlocks all the places. 2015-10-14 23:43:10 +00:00
install.php Bootstrap: after r38409 and r38410, revert r38402 which reverted r38399. 2016-08-27 22:31:11 +00:00
link-add.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
link-manager.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
link-parse-opml.php
link.php Docs: Standardize capitalization of Ajax throughout core documentation per the core spelling guide. 2016-07-10 00:50:21 +00:00
load-scripts.php Script Loader: autoload in load-{scripts|styles}.php. 2016-08-28 00:06:45 +00:00
load-styles.php Script Loader: autoload in load-{scripts|styles}.php. 2016-08-28 00:06:45 +00:00
media-new.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
media-upload.php Hooks: Standardize naming of dynamic hooks to use interpolation vs concatenation. 2016-08-22 18:24:48 +00:00
media.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
menu-header.php Docs: Standardize hook docs in wp-admin/* to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:00:23 +00:00
menu.php Docs: Standardize on 'backward compatibility/compatible' nomenclature in core inline docs. 2016-05-13 18:40:19 +00:00
moderation.php
ms-admin.php
ms-delete-site.php Multisite: Use hash_equals() when comparing hashes to mitigate timing attacks. 2016-07-10 19:42:02 +00:00
ms-edit.php
ms-options.php
ms-sites.php
ms-themes.php
ms-upgrade-network.php
ms-users.php
my-sites.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
nav-menus.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
network.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
options-discussion.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
options-general.php Multisite: Add a nonce to the "Cancel" URL when changing a site's admin email. 2016-07-07 17:12:54 +00:00
options-head.php Docs: Standardize on 'backward compatibility/compatible' nomenclature in core inline docs. 2016-05-13 18:40:19 +00:00
options-media.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
options-permalink.php Permalinks: Rename $usingpi to $using_index_permalinks for clarity. 2016-07-16 12:45:01 +00:00
options-reading.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
options-writing.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
options.php Multisite: Use hash_equals() when comparing hashes to mitigate timing attacks. 2016-07-10 19:42:02 +00:00
plugin-editor.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
plugin-install.php I18N: Allow for WordPress Plugin/Theme Directory URLs to be localized. 2016-08-23 01:18:53 +00:00
plugins.php I18N: Allow for WordPress Plugin/Theme Directory URLs to be localized. 2016-08-23 01:18:53 +00:00
post-new.php I18N: Combine two duplicate "Invalid post type" strings. 2016-07-17 16:04:50 +00:00
post.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
press-this.php Bootstrap: after r38409 and r38410, revert r38402 which reverted r38399. 2016-08-27 22:31:11 +00:00
profile.php
revision.php Revisions: Allow autosaves to be restored when revisions are disabled. 2016-07-08 01:15:19 +00:00
setup-config.php I18N: Correct various instances of incorrect usage of esc_attr_e(). 2016-08-28 18:05:02 +00:00
term.php On term.php, use $taxnow when fetching currently edited term. 2016-07-16 18:36:15 +00:00
theme-editor.php I18N: Correct various instances of incorrect usage of esc_attr_e(). 2016-08-28 18:05:02 +00:00
theme-install.php I18N: After [38057], consistently use a context for other instances of Activate %s, Network Activate %s, and Delete %s strings. 2016-07-16 23:19:05 +00:00
themes.php I18N: Allow for WordPress Plugin/Theme Directory URLs to be localized. 2016-08-23 01:18:53 +00:00
tools.php
update-core.php Bootstrap: after r38409 and r38410, revert r38402 which reverted r38399. 2016-08-27 22:31:11 +00:00
update.php Bootstrap: after r38409 and r38410, revert r38402 which reverted r38399. 2016-08-27 22:31:11 +00:00
upgrade-functions.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:39:01 +00:00
upgrade.php Install/Upgrade: Keep indexing bots away until a site is ready to be seen. 2015-12-08 21:55:48 +00:00
upload.php Text Changes: Remove duplicate string, use the one we already have. 2016-07-04 21:47:19 +00:00
user-edit.php Users: Check zxcvbn is defined before calling. 2016-07-01 12:44:43 +00:00
user-new.php I18N: Remove unnecessary context for two strings on "Add New User" screen. 2016-08-23 12:53:54 +00:00
users.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00
widgets.php Text Changes: Unify permission error messages. 2016-06-29 15:15:40 +00:00