Wordpress/wp-admin
Daryl Koopersmith 5a4a17687a Add new media workflow scripts, styles, and templates.
Please note that this commit does not integrate media into the existing UI. If you would like to see the new UI, navigate to the post editor and run the following in your browser's Javascript console:

	new wp.media.controller.Workflow().render().modal.open();


The Javascript is broken up into two files, with the slugs media-models and media-views.

* media-models: The models are UI agnostic, and can be used independent of the views. If you'd like to create custom UIs, this is the script for you.

* media-views: This is the Media Experience. The views (and controllers) depend on the models (which are listed as a dependency and will automatically be included thanks to wp_enqueue_script). The views also require the media templates, media-view styles, and the plupload bridge settings. Perhaps we should create a function to include the whole shebang, but in the meantime...

To include media-views in the admin, run the following PHP in or after 'admin_enqueue_scripts':

	wp_enqueue_script( 'media-views' );
	wp_enqueue_style( 'media-views' );
	wp_plupload_default_settings();
	add_action( 'admin_footer', 'wp_print_media_templates' );

see #21390.



git-svn-id: https://develop.svn.wordpress.org/trunk@21683 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 04:54:23 +00:00
..
css Compress scripts/styles: 3.5-alpha-21673. 2012-08-30 18:59:30 +00:00
images Replace the dark spinner with the light on the widgets screen and retire wpspin_dark.gif, props helenyhou and lessbloat, fixes #20957 2012-08-22 02:02:37 +00:00
includes Fix a misnamed variable, which caused the query-attachments ajax handler to ignore all input. see #21390. 2012-08-31 04:32:25 +00:00
js Update some code comments from .dev.js to .js. props georgestephanis. see #21633. 2012-08-30 02:15:57 +00:00
maint Do not perform nonce checks in maint/repair.php. 2012-05-30 16:22:53 +00:00
network Hide the link manager from the UI on upgrade, if the site has no links. New DB option, link_manager_enabled. 2012-08-13 16:18:42 +00:00
user Remove index-extra.php. Move dashboard widget XHR callbacks to ajax-actions.php. fixes #20242. 2012-03-15 13:20:00 +00:00
about.php New section on Twitter Embeds on the about page. props georgestephanis, chexee, azaozz, SergeyBiryukov, jane. fixes #20796. 2012-06-02 01:16:35 +00:00
admin-ajax.php Add get-attachment and query-attachments Ajax handlers. props koopersmith. see #21390. 2012-08-31 02:58:51 +00:00
admin-footer.php Improve code readability and execution in admin-footer by removing a now-unnecessary implode(). props TobiasBg, fixes #21422. 2012-07-30 19:37:51 +00:00
admin-functions.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
admin-header.php Improve the layout and accessibility of the admin menu: simplify the HTML structure, move the submenus off the viewport (still visible for screen readers) instead of hiding them with display: none, make it possible to unfold the menu on small/narrow screens, see #21349 2012-08-21 22:46:30 +00:00
admin-post.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
admin.php Set jQuery Color to be a dependency for wp-lists, rather than enqueueing it everywhere. 2012-08-28 17:51:35 +00:00
async-upload.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
comment.php Allow comment.php?action=editcomment to be accessible for a comment that is spam. props josephscott, fixes #19977, see #18340. 2012-02-07 19:13:30 +00:00
credits.php Copy 3.4 about.php header text to credits and freedoms. props pavelevap. fixes #20794. 2012-06-07 15:34:21 +00:00
custom-background.php Pinking shears 2012-06-12 19:27:41 +00:00
custom-header.php Fix display issues in the custom header screen when height is not specified. Use get_header_image() instead of header_image() so that esc_url() can do its job. Props JarretC, SergeyBiryukov, georgestephanis. fixes #21130 #21433 2012-08-14 19:24:36 +00:00
customize.php Refresh nonces in the customizer. props koopersmith. see #20876. 2012-06-26 18:48:18 +00:00
edit-comments.php Convert a bulleted list to paragraphs in the Moderating Comments help tab. props pavelevap, see #19788. 2012-02-01 14:45:19 +00:00
edit-form-advanced.php Add new media workflow scripts, styles, and templates. 2012-08-31 04:54:23 +00:00
edit-form-comment.php Remove nearly all tabindex attributes from the admin, leaving them only where absolutely necessary (for now that's only the toolbar). 2012-07-24 00:15:15 +00:00
edit-link-form.php Remove nearly all tabindex attributes from the admin, leaving them only where absolutely necessary (for now that's only the toolbar). 2012-07-24 00:15:15 +00:00
edit-tag-form.php Remove nearly all tabindex attributes from the admin, leaving them only where absolutely necessary (for now that's only the toolbar). 2012-07-24 00:15:15 +00:00
edit-tags.php Give Add New button on edit taxonomy pages primary button styling. Props JustinSainton. fixes #21406 2012-07-30 18:41:42 +00:00
edit.php Remove return ref from all calls to get_post() 2012-08-23 20:01:10 +00:00
export.php Add line breaks before most form field descriptions (the italicized gray text on General Settings and other screens). props johnbillion, helenyhou, fixes #17390. 2012-04-26 00:58:16 +00:00
freedoms.php Copy 3.4 about.php header text to credits and freedoms. props pavelevap. fixes #20794. 2012-06-07 15:34:21 +00:00
import.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
index.php Pinking shears 2012-05-03 16:41:59 +00:00
install-helper.php Deprecate ancient "debugging" tools. 2012-02-17 00:02:42 +00:00
install.php Pinking shears 2012-05-03 16:41:59 +00:00
link-add.php Add the jQuery UI Touch Punch plugin to handle dragging on mobile devices, props georgestephanis, see #20014 2012-04-11 02:20:51 +00:00
link-manager.php Pinking shears 2011-12-01 04:51:35 +00:00
link-parse-opml.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
link.php Add the jQuery UI Touch Punch plugin to handle dragging on mobile devices, props georgestephanis, see #20014 2012-04-11 02:20:51 +00:00
load-scripts.php If a plugin triggers the WP_Scripts constructor prior to init, fire wp_default_scripts() 2012-06-26 05:33:19 +00:00
load-styles.php One newline is enough. 2012-01-05 20:10:39 +00:00
media-new.php Don't hide links to the upload form and show an error for mobile devices that cannot upload, see #20410 2012-04-12 00:16:37 +00:00
media-upload.php Restrict post IDs 2012-06-10 17:37:49 +00:00
media.php Restrict the media editor to posts with the attachment post type. Props helenyhou. fixes #20625 2012-05-09 16:16:03 +00:00
menu-header.php Improve the layout and accessibility of the admin menu: simplify the HTML structure, move the submenus off the viewport (still visible for screen readers) instead of hiding them with display: none, make it possible to unfold the menu on small/narrow screens, see #21349 2012-08-21 22:46:30 +00:00
menu.php Un-indent after [21198]. see #19824. 2012-06-30 12:55:09 +00:00
moderation.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-admin.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-delete-site.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-edit.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-options.php
ms-sites.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-themes.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-upgrade-network.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-users.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
my-sites.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
nav-menus.php Add the jQuery UI Touch Punch plugin to handle dragging on mobile devices, props georgestephanis, see #20014 2012-04-11 02:20:51 +00:00
network.php Align the spacing of the multisite constants with what has been long-established in wp-config and wp-config-sample. props ryanduff, fixes #19869. 2012-02-20 16:35:03 +00:00
options-discussion.php It is possible for comments_per_page to be 0, which turns off pagination. See sanitize_option(); wp_list_commnts(); get_comment_link(). see #17863. 2012-03-16 04:36:12 +00:00
options-general.php Add line breaks before most form field descriptions (the italicized gray text on General Settings and other screens). props johnbillion, helenyhou, fixes #17390. 2012-04-26 00:58:16 +00:00
options-head.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
options-media.php Add line breaks before most form field descriptions (the italicized gray text on General Settings and other screens). props johnbillion, helenyhou, fixes #17390. 2012-04-26 00:58:16 +00:00
options-permalink.php Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546. 2012-02-28 20:29:33 +00:00
options-privacy.php Help text tweaks for the Settings screens. props jane. see #19020. 2011-12-01 00:52:31 +00:00
options-reading.php Remove reference to blog_charset option in Settings > Reading help. fixes #21507. 2012-08-29 05:50:10 +00:00
options-writing.php Hide the link manager from the UI on upgrade, if the site has no links. New DB option, link_manager_enabled. 2012-08-13 16:18:42 +00:00
options.php Remove unused multisite option 'language'. props wonderboymusic. fixes #21545. 2012-08-20 16:43:44 +00:00
plugin-editor.php Move the description for tabbing out of the plugin and theme editors textareas to the Help tab, fixes #21347 2012-07-27 16:49:48 +00:00
plugin-install.php Have the correct screen icon in place when the top level Plugins menu is plugin-install.php. This occurs when the user can install but not activate plugins. see #19824. 2012-06-30 12:12:26 +00:00
plugins.php Enforce multisite plugins menu preference in map_meta_cap(). This means a simple current_user_can('activate_plugins') check will handle the 'Enable administration menus' setting. 2012-06-30 12:40:25 +00:00
post-new.php Schedule auto-draft deletion from post-new.php instead of from admin.php. This provides better throttling for large multisite installs and reduces the risk of a delete avalanche. 2012-04-12 18:49:48 +00:00
post.php Add tags_input, page_template, and post_category get magic to WP_Post. 2012-08-28 19:08:28 +00:00
press-this.php Remove nearly all tabindex attributes from the admin, leaving them only where absolutely necessary (for now that's only the toolbar). 2012-07-24 00:15:15 +00:00
profile.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
revision.php
setup-config.php setup-config.php cleanups 2012-04-30 21:56:32 +00:00
theme-editor.php Move the description for tabbing out of the plugin and theme editors textareas to the Help tab, fixes #21347 2012-07-27 16:49:48 +00:00
theme-install.php Fix help text on the Install Themes screen, props SergeyBiryukov, fixes #20925 2012-08-22 02:28:30 +00:00
themes.php Allow switch_theme() to take a single $stylesheet argument. 2012-06-26 05:21:04 +00:00
tools.php Update contextual help for Tools screen. Props SergeyBiryukov, ajacommerce, DrewAPicture. fixes #19523 2012-05-05 19:09:08 +00:00
update-core.php Remove more code not specific to updating core from core_upgrade_preamble(). fixes #21124. 2012-06-30 12:58:03 +00:00
update.php Theme Customizer: Allow the customize iframe to be accessed directly (with full feature support). see #19910. 2012-04-16 14:02:28 +00:00
upgrade-functions.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
upgrade.php Update login-logo.png to use proper color. Copy it over wordpress-logo.png. Make that one canonical, and stop using login-logo.png. Leave it for plugins. props iammattthomas. see #19955. 2012-02-17 04:57:56 +00:00
upload.php Clean attachment cache after a manual update, not before. props mdawaffe. fixes #20786. 2012-08-24 15:32:23 +00:00
user-edit.php Allow passing stdClass and WP_User to wp_insert_user() and wp_update_user(). Introduce WP_User::to_array(). Eliminate uses of get_object_vars() when passing to wp_*_user(). fixes #21429 2012-08-10 15:36:54 +00:00
user-new.php s/newuserconfimation/newuserconfirmation/ 2012-07-30 16:13:18 +00:00
users.php Hide the link manager from the UI on upgrade, if the site has no links. New DB option, link_manager_enabled. 2012-08-13 16:18:42 +00:00
widgets.php Replace the dark spinner with the light on the widgets screen and retire wpspin_dark.gif, props helenyhou and lessbloat, fixes #20957 2012-08-22 02:02:37 +00:00