Commit Graph

19978 Commits

Author SHA1 Message Date
Mark Jaquith 02975388bd Fix the adding of link categories through the "Add Link" screen. props yoavf. fixes #21590 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@21688 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 18:20:28 +00:00
Ryan Boren 7907be8f15 Introduce WP_Screen::in_admin() for determining which admin the screen is in.
Change is_*_admin() to reference in_admin() with fallback to the WP_*_ADMIN constants during early bootstrap. This allows unit tests and ajax handlers to set the admin context.

fixes #21742


git-svn-id: https://develop.svn.wordpress.org/trunk@21687 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 17:16:46 +00:00
Andrew Nacin cb60d4a2fa Restore the 'allowed_themes' filter.
This filter has wrapped the network-wide themes, outside of the network-wide
allowed function (dating back to MU), hence the unusual placement. This restores
previous behavior; we will introduce new filters to enable greater flexibility.

see #21099.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@21686 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 17:05:18 +00:00
Peter Westwood da2f11a8b8 Make sure that we always generate random numbers correctly even if the PHP build is slightly broken and truncates large integers.
Fixes #19571 props mdawaffe.


git-svn-id: https://develop.svn.wordpress.org/trunk@21685 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 09:45:50 +00:00
bumpbot 7732b3e6e9 Compress scripts/styles: 3.5-alpha-21684.
git-svn-id: https://develop.svn.wordpress.org/trunk@21684 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 06:59:25 +00:00
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
Andrew Nacin c7ba96ddaa Introduce wp_prepare_attachment_for_js(). Prepares an attachment post object to be JSON-encoded and fitted into an Attachment model, for 3.5 media.
props koopersmith. see #21390.



git-svn-id: https://develop.svn.wordpress.org/trunk@21680 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 02:04:40 +00:00
Andrew Nacin 0599fd010f Introduce wp_send_json() to json-encode a variable, print it, and die, for Ajax requests. Effectively replaces WP_Ajax_Response, which was an XML-based response.
Introduce wp_send_json_success() and wp_send_json_error(), which will allow us to fire appropriate done() or fail() callbacks in JS.

props koopersmith. see #21390.



git-svn-id: https://develop.svn.wordpress.org/trunk@21679 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 01:56:00 +00:00
bumpbot 5579211850 Compress scripts/styles: 3.5-alpha-21678.
git-svn-id: https://develop.svn.wordpress.org/trunk@21678 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 21:59:32 +00:00
Andrew Ozz d609c9b06a Update the query strings to refresh the toolbar sprites, props ocean90, see #20033
git-svn-id: https://develop.svn.wordpress.org/trunk@21677 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 21:46:37 +00:00
Andrew Ozz ad27aba8c1 Flip Admin Bar search icon, props empireoflight and lessbloat, fixes #20033
git-svn-id: https://develop.svn.wordpress.org/trunk@21676 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 21:18:07 +00:00
Lance Willett 2cee83814b Twenty Twelve: go with `echo get_the_date()` here, added in r21670 but reverted accidentally in r21674. Props obenland.
git-svn-id: https://develop.svn.wordpress.org/trunk@21675 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 19:32:05 +00:00
Lance Willett b9c884ed97 Twenty Twelve: add a better permalink markup structure to content-image.php template, for usability when image posts have no title. Props obenland, fixes #21723.
git-svn-id: https://develop.svn.wordpress.org/trunk@21674 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 19:27:27 +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 Nacin 9d6e1b33ca Have wp_script_is() and wp_style_is() accept 'enqueued', as it reads better than 'queue' and is consistent with 'registered'. fixes #21741.
git-svn-id: https://develop.svn.wordpress.org/trunk@21672 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 18:57:57 +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
Lance Willett 8e8c5b77fe Twenty Twelve: use `get_the_date()` rather than `the_date()` in content templates to ensure a date is always output and a post permalink is visible to site visitors. Props obenland and ocean90, fixes #21721.
git-svn-id: https://develop.svn.wordpress.org/trunk@21670 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 17:23:22 +00:00
potbot 3baea99e9b POT, generated from r21668
git-svn-id: https://develop.svn.wordpress.org/trunk@21669 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 17:18:55 +00:00
Lance Willett 9051dd1d06 Twenty Twelve: move Open Sans custom font loading to a body class to allow easier overriding, fixes #21694.
* Use wp_style_is() to check for the enqueued CSS file before adding the body class value.
 * Add a sample dequeue method in the comments as documentation for child themers and their ilk.

Props viniciusmassuchetto, nacin, and obenland.


git-svn-id: https://develop.svn.wordpress.org/trunk@21668 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 16:59:22 +00:00
Lance Willett 93f85f9f9f Twenty Twelve: remove aggressive text-align rule, set to inherit instead to allow editor-added styles to justify per author's desire. Props obenland, fixes #21739.
git-svn-id: https://develop.svn.wordpress.org/trunk@21667 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 16:39:49 +00:00
Lance Willett f9429df937 Twenty Twelve: move text treatment for footer anchor element up to its parent container, to allow styling any text in the footer.
git-svn-id: https://develop.svn.wordpress.org/trunk@21666 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 16:25:31 +00:00
Lance Willett ce7c75f5b5 Twenty Twelve: remove unneeded float rule from nav list items, there is nothing to override here.
Also allows authors to assign CSS classes and float menu items with something like `alignright`.


git-svn-id: https://develop.svn.wordpress.org/trunk@21665 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 16:24:29 +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 c75298604f Fix copy-paste error in get_term_feed_link() that caused the category_feed_link filter to run for tags, rather than tag_feed_link. props andrea.r, SergeyBiryukov. fixes #21589.
git-svn-id: https://develop.svn.wordpress.org/trunk@21662 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 03:49:44 +00:00
Andrew Nacin b7705ada50 Fix typo in CSS. props SergeyBiryukov. fixes #20587.
git-svn-id: https://develop.svn.wordpress.org/trunk@21661 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 03:04:10 +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 8b903f365f jQuery 1.8.1-not-quite-final. fixes #21736.
git-svn-id: https://develop.svn.wordpress.org/trunk@21658 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 02:05:08 +00:00
Andrew Nacin 7710b20d72 jQuery UI 1.9 RC.
Adds Tooltip, Menu, and Spinner.
Autocomplete depends on Menu.
Renames Effects files.

1.9 final is expected next week.
see #21736.



git-svn-id: https://develop.svn.wordpress.org/trunk@21657 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 01:49:47 +00:00
Daryl Koopersmith ff1dd048f4 Improve consistency in wp.Uploader callbacks; pass file objects to all handlers. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@21656 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-29 19:56:42 +00:00
Ryan Boren 31ae2c631a Simplify return from WP_Post::__get() now that references are no longer returned. see #21309
git-svn-id: https://develop.svn.wordpress.org/trunk@21655 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-29 13:42:11 +00:00
Ryan Boren a8e913063a Lose return ref from WP_Post::__get(). see #21309
git-svn-id: https://develop.svn.wordpress.org/trunk@21654 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-29 13:23:54 +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
Andrew Nacin 3064c6d713 Stabilize how WordPress hooks into SimplePie to implement transient caching.
Since a plugin can load a previous (< 1.3) version of SimplePie before we do,
we need to be compatible with our old method of overriding SimplePie_Cache::create().

SimplePie_Cache::create() was converted to static in 1.3 (as it was called),
requiring that we create two different definitions of WP_Feed_Cache (extends
SimplePie_Cache). Instead, we can use 1.3's new object registry, and leave
the old WP_Feed_Cache to SimplePie 1.2 versions.

see #21183.



git-svn-id: https://develop.svn.wordpress.org/trunk@21652 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-29 00:25:52 +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
potbot 331b063910 POT, generated from r21648
git-svn-id: https://develop.svn.wordpress.org/trunk@21649 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 18:18:47 +00:00
Andrew Nacin f20a84795e Remove Jcrop non-minified files. see #20728.
git-svn-id: https://develop.svn.wordpress.org/trunk@21648 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 18:03:52 +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 Nacin 96167530ce Use ABSPATH . WPINC rather than dynamically building the include path. see #21183.
git-svn-id: https://develop.svn.wordpress.org/trunk@21645 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 17:27:18 +00:00
Andrew Nacin d80e23bf88 Update to SimplePie 1.3. props rmccue.
Uses individual files for each class. We now conditionally load only the pieces
we need, resulting in less memory usage. Also easier to maintain now that it is
not a single 387KB file.

fixes #21183.



git-svn-id: https://develop.svn.wordpress.org/trunk@21644 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 17:24:33 +00:00
Lance Willett 01b8de2e0e Twenty Twelve: use sidebar ID string value for sidebar checks instead of hard-coded integer, props nacin. See #21685.
git-svn-id: https://develop.svn.wordpress.org/trunk@21643 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 17:16:18 +00:00
Lance Willett 0dae6cb745 Twenty Twelve: rename custom page templates and place in sub-directory. Closes #21715.
git-svn-id: https://develop.svn.wordpress.org/trunk@21642 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 17:12:10 +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
potbot e1817f66d2 POT, generated from r21639
git-svn-id: https://develop.svn.wordpress.org/trunk@21640 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 03:19:03 +00:00
Lance Willett 6165bfd311 Twenty Twelve: simplify custom font loading behavior, see #21694.
* Remove theme options code and support from theme.
 * Keep Open Sans font first in the stack and make it always loaded.
 * Move Customizer pieces from Theme Options out of class structure and into functions.php.


git-svn-id: https://develop.svn.wordpress.org/trunk@21639 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-28 02:18:43 +00:00