wordpress-develop/tests/phpunit/tests/ajax
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
..
Attachments.php Media: Remove an extra quote when sending a link of a media file to the editor. 2016-04-21 21:20:26 +00:00
Autosave.php Unit Tests: 2016-08-27 08:35:16 +00:00
Compression.php Adjust unit tests to account for change in [37144] 2016-03-30 19:52:14 +00:00
CustomizeMenus.php Customize: Allow users to more seamlessly create page-based nav menus during customization. 2016-08-29 22:58:32 +00:00
DeleteComment.php Unit Tests: 2016-08-27 08:35:16 +00:00
DeletePlugin.php Plugins: Move capability checks further up in wp_ajax_update_plugin() and wp_ajax_delete_plugin(). 2016-07-27 17:42:01 +00:00
DimComment.php Unit Tests: Remove an unused parameter from Tests_Ajax_DimComment::test_with_bad_id(). 2016-07-04 19:07:21 +00:00
EditComment.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
GetComments.php Unit Tests: 2016-08-27 08:35:16 +00:00
MediaEdit.php Media: Clean up prior image edits if IMAGE_EDIT_OVERWRITE is true. 2016-07-20 07:34:54 +00:00
QuickEdit.php Unit Tests: Change some @group annotations to @ticket. 2016-07-04 20:24:52 +00:00
ReplytoComment.php Unit Tests: 2016-08-27 08:35:16 +00:00
Response.php Tests: Remove the @runTestsInSeparateProcesses annotation for Ajax tests. 2015-10-15 21:30:52 +00:00
TagSearch.php Unit Tests: 2016-08-27 08:35:16 +00:00
UpdatePlugin.php Plugins: Move capability checks further up in wp_ajax_update_plugin() and wp_ajax_delete_plugin(). 2016-07-27 17:42:01 +00:00