Commit Graph

10102 Commits

Author SHA1 Message Date
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
Daryl Koopersmith 84a9e47c0d Fix a misnamed variable, which caused the query-attachments ajax handler to ignore all input. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@21682 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 04:32:25 +00:00
Andrew Nacin 215be466c3 Add get-attachment and query-attachments Ajax handlers. props koopersmith. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@21681 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 02:58:51 +00:00
bumpbot 56b3860a86 Compress scripts/styles: 3.5-alpha-21673.
git-svn-id: https://develop.svn.wordpress.org/trunk@21673 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 18:59:30 +00:00
Andrew Ozz ceaf979590 Fix min row height in .widefat, see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21671 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 18:47:22 +00:00
Ryan Boren 92ea34f6a2 Use set_url_scheme(). Props johnbillion, MarcusPope. see #19037 #20759
git-svn-id: https://develop.svn.wordpress.org/trunk@21664 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 13:33:00 +00:00
bumpbot bca5b5538d Compress scripts/styles: 3.5-alpha-21663.
git-svn-id: https://develop.svn.wordpress.org/trunk@21663 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 04:09:57 +00:00
Andrew Nacin d17a70efde Update old files array:
* Remove old names for jQuery UI Effects files. see #21736.
 * Remove un-minified version of Jcrop and jQuery Color. see #21692, #20728.
 * Remove .dev.css and .dev.js. see #21633.



git-svn-id: https://develop.svn.wordpress.org/trunk@21660 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 02:35:30 +00:00
Andrew Nacin 0dbb4dfb27 Update some code comments from .dev.js to .js. props georgestephanis. see #21633.
git-svn-id: https://develop.svn.wordpress.org/trunk@21659 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 02:15:57 +00:00
Andrew Nacin 5986fef232 Remove reference to blog_charset option in Settings > Reading help. fixes #21507.
git-svn-id: https://develop.svn.wordpress.org/trunk@21653 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-29 05:50:10 +00:00
Ryan Boren 01527025c9 Add tags_input, page_template, and post_category get magic to WP_Post.
Deprecate get_post_to_edit() and wp_get_single_post().
Props scribu
see #21309


git-svn-id: https://develop.svn.wordpress.org/trunk@21651 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 19:08:28 +00:00
Andrew Nacin b502460093 Remove paths to where theme files are located from theme details on themes.php. props lessbloat, see #17944.
git-svn-id: https://develop.svn.wordpress.org/trunk@21650 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 18:48:50 +00:00
Ryan Boren 5b6667c43e Initialize to avoid 'Creating default object from empty value' warning in PHP 5.4.4.
git-svn-id: https://develop.svn.wordpress.org/trunk@21647 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 18:03:12 +00:00
Andrew Nacin 48a3353f5e Set jQuery Color to be a dependency for wp-lists, rather than enqueueing it everywhere.
Any plugin wishing to use jQuery color animations must set jquery-color as a dependency
(or enqueue it).

Remove the un-minified version of jQuery Color.

props scribu.
fixes #21692.



git-svn-id: https://develop.svn.wordpress.org/trunk@21646 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 17:51:35 +00:00
Andrew Ozz 575e541b27 More visible :focus style for form elements, props lessbloat, see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21641 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 05:48:58 +00:00
Andrew Ozz 1c98a9a04f Fix admin menu glitch with pending count bubbles, props SergeyBiryukov, fixes #20502
git-svn-id: https://develop.svn.wordpress.org/trunk@21631 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-27 22:39:01 +00:00
Andrew Nacin 5a9dd669a2 Clean attachment cache after a manual update, not before. props mdawaffe. fixes #20786.
git-svn-id: https://develop.svn.wordpress.org/trunk@21605 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-24 15:32:23 +00:00
Andrew Nacin e1d2b7baa0 Add new 'flexible-header' tag for themes. Add it to Twenty Ten and Twenty Eleven. [21533] added it for Twenty Twelve.
props lancewillett. fixes #21065.



git-svn-id: https://develop.svn.wordpress.org/trunk@21604 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-24 15:22:14 +00:00
Ryan Boren 9905abe697 Update phpdoc for functions that return WP_Post. Soft deprecate get_page(). see #21309
git-svn-id: https://develop.svn.wordpress.org/trunk@21598 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 20:34:41 +00:00
Ryan Boren de06b81360 Remove return ref from all calls to get_post()
Return WP_Post from get_default_post_to_edit()
Replace all calls to get_page() with get_post()
see #21309


git-svn-id: https://develop.svn.wordpress.org/trunk@21597 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 20:01:10 +00:00
Andrew Nacin 4a797c0b62 Remove references to still-existing files from the old files array. see #20980.
git-svn-id: https://develop.svn.wordpress.org/trunk@21594 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:58:43 +00:00
Andrew Nacin 64caad03e7 Remove Prototype and script.aculo.us from core.
Continue to register them, pulling from ajax.googleapis.com. This is only being done for backwards compatibility;
libraries in use will continue to be local sources.

In the process, update to the latest versions of Prototype (1.7.1, June 5) and script.aculo.us (1.9.0, from 2010).

props helenyhou.
fixes #21661, #16664, #16665.



git-svn-id: https://develop.svn.wordpress.org/trunk@21593 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:51:08 +00:00
Andrew Nacin db981a3b27 Switch to .min for compressed JS and CSS files.
* This moves our "development" versions from .dev.js to .js (same for css).
 * The compressed version then moves from .js to .min.js (same for css).

By switching to the standard .min convention, it sets expectations for developers,
and works nicely with existing tools such as ack.

fixes #21633.



git-svn-id: https://develop.svn.wordpress.org/trunk@21592 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:04:18 +00:00
bumpbot 5623f1ca85 Compress scripts/styles: 3.5-alpha-21589.
git-svn-id: https://develop.svn.wordpress.org/trunk@21589 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 20:58:31 +00:00
Andrew Ozz efcde9517c Better styling of theme filter, props SergeyBiryukov, fixes #21637
git-svn-id: https://develop.svn.wordpress.org/trunk@21588 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 19:16:31 +00:00
bumpbot 54c5743c66 Compress scripts/styles: 3.5-alpha-21587.
git-svn-id: https://develop.svn.wordpress.org/trunk@21587 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 18:58:32 +00:00
Andrew Ozz 877e8f6a2a Don't hide the label for the Title on the Edit Post screen, use 'screen-reader-text' instead, props SergeyBiryukov, fixes #21458
git-svn-id: https://develop.svn.wordpress.org/trunk@21584 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 17:40:17 +00:00
bumpbot a748fa33c4 Compress scripts/styles: 3.5-alpha-21583.
git-svn-id: https://develop.svn.wordpress.org/trunk@21583 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 16:58:25 +00:00
Andrew Ozz 991c78713e Remove erroneous vertical-align: center values, props helenyhou, fixes #20586
git-svn-id: https://develop.svn.wordpress.org/trunk@21582 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 15:23:10 +00:00
bumpbot ebcef178df Compress scripts/styles: 3.5-alpha-21580. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21580 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 02:58:28 +00:00
Andrew Ozz 29471da7bd Fix help text on the Install Themes screen, props SergeyBiryukov, fixes #20925
git-svn-id: https://develop.svn.wordpress.org/trunk@21579 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 02:28:30 +00:00
Andrew Ozz 200beacacf Remove text-shadow on hover from update and comments bubbles in the admin menu, props markjaquith, fixes #21449
git-svn-id: https://develop.svn.wordpress.org/trunk@21578 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 02:25:28 +00:00
Andrew Ozz e4759ac950 Replace the dark spinner with the light on the widgets screen and retire wpspin_dark.gif, props helenyhou and lessbloat, fixes #20957
git-svn-id: https://develop.svn.wordpress.org/trunk@21577 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 02:02:37 +00:00
bumpbot 562ce55e89 Compress scripts/styles: 3.5-alpha-21575.
git-svn-id: https://develop.svn.wordpress.org/trunk@21575 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-21 22:58:27 +00:00
Andrew Ozz 27fdffa9db 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
git-svn-id: https://develop.svn.wordpress.org/trunk@21574 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-21 22:46:30 +00:00
Andrew Nacin 8cac9d023a Remove unused multisite option 'language'. props wonderboymusic. fixes #21545.
git-svn-id: https://develop.svn.wordpress.org/trunk@21551 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-20 16:43:44 +00:00
bumpbot c699530ab6 Compress scripts/styles: 3.5-alpha-21548.
git-svn-id: https://develop.svn.wordpress.org/trunk@21548 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-19 18:58:22 +00:00
Mark Jaquith 40c77861db Fix the display of widgets in wp-admin when their descriptions wrap to two lines. props mattdanner. fixes #15180
git-svn-id: https://develop.svn.wordpress.org/trunk@21547 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-19 18:16:52 +00:00
Andrew Nacin 3bd03e0826 Output a hidden input of blog_charset when we are hiding the option. props SergeyBiryukov. see #21507.
git-svn-id: https://develop.svn.wordpress.org/trunk@21539 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-17 16:46:47 +00:00
Ryan Boren 98864bbb7e Send Content-Type with charset for iframe_header(). Props SergeyBiryukov, sergey.s.betke@novgaro.ru. fixes #19454
git-svn-id: https://develop.svn.wordpress.org/trunk@21538 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-17 14:19:03 +00:00
Andrew Nacin 48a78c01a3 Disable the Link Manager on any future upgrade if it is still enabled but there are no links. see #21307.
git-svn-id: https://develop.svn.wordpress.org/trunk@21536 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-16 23:08:07 +00:00
bumpbot 4ce19368bf Compress scripts/styles: 3.5-alpha-21535.
git-svn-id: https://develop.svn.wordpress.org/trunk@21535 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-16 16:58:26 +00:00
Andrew Ozz ffba15c130 Fix typo in [21529], props toscho. Simplify the :focus styles for the Screen Options and Help toggles, see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21534 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-16 15:45:31 +00:00
bumpbot 36a3924822 Compress scripts/styles: 3.5-alpha-21530.
git-svn-id: https://develop.svn.wordpress.org/trunk@21530 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 18:58:27 +00:00
Andrew Ozz f0d18a35dd Add :focus style to all links, use JS to blur() them on click so the style is only visible when tabbing, props lessbloat, see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21529 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 18:40:11 +00:00
bumpbot 06112b685f Compress scripts/styles: 3.5-alpha-21514.
git-svn-id: https://develop.svn.wordpress.org/trunk@21514 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 20:58:23 +00:00
Andrew Ozz 94be7cf95b Stop Chrome from applying outline to DIVs that have tabindex="-1", see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21510 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 19:37:27 +00:00
Ryan Boren 082f515280 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
git-svn-id: https://develop.svn.wordpress.org/trunk@21508 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 19:24:36 +00:00
bumpbot cd93e31cfa Compress scripts/styles: 3.5-alpha-21505.
git-svn-id: https://develop.svn.wordpress.org/trunk@21505 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 18:58:20 +00:00
Ryan Boren 4974f5f233 Remove post type from post nonces. Fixes attachment deletion when EMPTY_TRASH_DAYS is 0. Props c3mdigital, kurtpayne, SergeyBiryukov. fixes #21194
git-svn-id: https://develop.svn.wordpress.org/trunk@21504 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 18:39:15 +00:00