Commit Graph

19022 Commits

Author SHA1 Message Date
Andrew Ozz 859a659be9 Admin menu: add aria-label attributes to the links around menu images for the sake of screen readers, fixes #20373
git-svn-id: https://develop.svn.wordpress.org/trunk@20680 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:41:15 +00:00
Andrew Ozz 95808e088f Change the image caption shortcode format to [caption ...]<a><img /></a> caption text + html[/caption]. That way HTML tags in captions are better supported and the shortcode wouldn't break when using the wrong quotes. Props sushkov, nacin, fixes #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20679 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:14:52 +00:00
bumpbot 19a3e3799e Compress scripts/styles: 3.4-beta3-20678.
git-svn-id: https://develop.svn.wordpress.org/trunk@20678 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 22:58:23 +00:00
Andrew Ozz 06ede87876 Move the check for body.mobile in postbox.js to a variable as it's used in more than one place, props georgestephanis, scribu, fixes #20561
git-svn-id: https://develop.svn.wordpress.org/trunk@20677 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 22:50:47 +00:00
Ryan Boren 8dca40f570 Clarify the uploading options in the media-new.php contextual help.
Props Ipstenu, DrewAPicture
fixes #19442


git-svn-id: https://develop.svn.wordpress.org/trunk@20676 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 22:23:15 +00:00
Andrew Nacin 869f8217ff Replace commas with periods when converting ratings float values to strings, to avoid issues with localized decimal points.
In these cases, we want a period because it is going to be used by CSS.

props SergeyBiryukov.
fixes #19593.



git-svn-id: https://develop.svn.wordpress.org/trunk@20675 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 22:09:55 +00:00
Ryan Boren defdae610e RTL style fixes for the Theme Customizer. Props ocean90, helenyhou.
git-svn-id: https://develop.svn.wordpress.org/trunk@20674 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 22:06:53 +00:00
Ryan Boren 65495f3660 RTL style fixes for the install theme info sidebar. Props ocean90. fixes #20583
git-svn-id: https://develop.svn.wordpress.org/trunk@20673 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 22:05:35 +00:00
Mark Jaquith 68616250c5 Ignore this. Just need an un-synced-to-GitHub commit so I can switch to using the new core.svn.wordpress.org URL.
git-svn-id: https://develop.svn.wordpress.org/trunk@20672 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 21:05:02 +00:00
Andrew Nacin 9761a56833 Kill all notices in XML-RPC found when running the test suite with WP_DEBUG. see [UT706], [UT707]. see #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20671 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 21:03:50 +00:00
Andrew Nacin 8868595fd4 Fix copy-paste issues in XML-RPC's _prepare_taxonomy(). see #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20670 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 20:33:06 +00:00
Jon Cave 9426067fbc Prevent a notice: don't attempt to parse the query string if it doesn't exist. Props johnjamesjacoby. Fixes #20528.
git-svn-id: https://develop.svn.wordpress.org/trunk@20669 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 18:26:38 +00:00
Andrew Nacin 5fd3048d0a Don't try to translate tags in WP_Theme::translate_header() if we are not in the admin and get_theme_feature_list() isn't defined. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20668 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 18:02:40 +00:00
Andrew Nacin e9ee18fa5a Don't show the 'Preview Changes' button for a non-public post type. props intoxstudio, see #17609.
git-svn-id: https://develop.svn.wordpress.org/trunk@20667 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 17:52:08 +00:00
Ryan Boren 52dea56cbe Add a link to the Customizer from the Admin Bar appearance menu. Props sabreuse. fixes #20575
git-svn-id: https://develop.svn.wordpress.org/trunk@20666 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 12:47:46 +00:00
Andrew Nacin be1c42cf7a Use correct variables. props batmoo. fixes #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20665 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 01:11:18 +00:00
Andrew Nacin 0a15d9f966 Use correct variables. props batmoo. fixes #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20664 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 23:45:01 +00:00
bumpbot 25463b343f Compress scripts/styles: 3.4-beta3-20663.
git-svn-id: https://develop.svn.wordpress.org/trunk@20663 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:58:31 +00:00
Andrew Nacin c6330862b6 Make the Press This draggable bookmarklet a flexible width to support languages with long words. props SergeyBiryukov, fixes #19957.
git-svn-id: https://develop.svn.wordpress.org/trunk@20662 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:57:11 +00:00
Ryan Boren 60c6011c61 setup-config.php cleanups
* Don't allow an empty prefix
* Make slashing consistent and sane

Props SergeyBiryukov
Fixes #13839


git-svn-id: https://develop.svn.wordpress.org/trunk@20661 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:56:32 +00:00
Andrew Nacin ac2e5ae1e0 jQuery UI 1.8.20. fixes #20559.
Fixes placeholder sizes when sorting post and dashboard meta boxes.



git-svn-id: https://develop.svn.wordpress.org/trunk@20660 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:53:09 +00:00
Ryan Boren 5891008f9e Set foreground color to #000 for form inputs. Props helenyhou, convissor. fixes #19923
git-svn-id: https://develop.svn.wordpress.org/trunk@20659 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:45:10 +00:00
Andrew Nacin 00d6e93374 Remove ru_RU-specific CSS that is no longer necessary after [20616]. props SergeyBiryukov. fixes #20568.
git-svn-id: https://develop.svn.wordpress.org/trunk@20658 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:42:47 +00:00
Andrew Nacin 29fcfe6c1c Explicitly set the dimensions of the avatar in the toolbar's profile menu. Avoids issues where overridden avatars could result in images that don't fit. props andrewryno. fixes #19539.
git-svn-id: https://develop.svn.wordpress.org/trunk@20657 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:38:39 +00:00
Ryan Boren 267871e166 Escape term links output in category-template.php functions. Props SergeyBiryukov, solarissmoke, alex-ye. fixes #20106
git-svn-id: https://develop.svn.wordpress.org/trunk@20656 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:36:43 +00:00
Andrew Nacin 0bfce84f5c Fix some unused/bad CSS for Press This backgrounds and gradients. props georgestephanis, helenyhou. fixes #20573.
git-svn-id: https://develop.svn.wordpress.org/trunk@20655 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:32:44 +00:00
Ryan Boren ac3e71ac63 Don't escape anchor text as an attributein wp_get_attachment_link(). Props SergeyBiryukov. fixes #19282
git-svn-id: https://develop.svn.wordpress.org/trunk@20654 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:22:58 +00:00
Andrew Nacin 0d53bba473 Properly convert two special Z characters in convert_chars(). props Namely, SergeyBiryukov. fixes #20503.
git-svn-id: https://develop.svn.wordpress.org/trunk@20653 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:20:50 +00:00
Ryan Boren 3f793e457c Fire the wp_cron action from init instead of sanitize_comment_cookies so that cron handlers can rely on a fully initialized env. Props SergeyBiryukov, norocketsurgeon. fixes #19818
git-svn-id: https://develop.svn.wordpress.org/trunk@20652 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 21:02:54 +00:00
bumpbot baa8fa8a0f Compress scripts/styles: 3.4-beta3-20651.
git-svn-id: https://develop.svn.wordpress.org/trunk@20651 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 20:58:24 +00:00
Ryan Boren 3ea234a24b Prevent accidental multiple click when creating new categories. Props mdawaffe. fixes #17936
git-svn-id: https://develop.svn.wordpress.org/trunk@20650 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 20:50:50 +00:00
Daryl Koopersmith 82c5f5ed9b Theme Customizer: Pass the WP_Customize instance to all actions fired inside the class. Plugins/themes should not refer to the $wp_customize global. see #19910, #20448.
git-svn-id: https://develop.svn.wordpress.org/trunk@20649 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 17:20:32 +00:00
Andrew Nacin 0d433cf2aa Allow nooped plurals to receive a textdomain on registration to then be used on translation.
This is good for when the code registering the plural is not also translating it. This occurs
in core with register_post_status(), which accepts a nooped plural as an argument, and then
calls translate_nooped_plural() without a domain.

translate_nooped_plural() can still be called with a domain. The argument will just be overridden
if the nooped plural contains a domain key.

fixes #20188.



git-svn-id: https://develop.svn.wordpress.org/trunk@20648 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 16:18:35 +00:00
bumpbot fbbe3bda95 Compress scripts/styles: 3.4-beta3-20647.
git-svn-id: https://develop.svn.wordpress.org/trunk@20647 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 15:58:21 +00:00
Andrew Nacin ddee4f351b Add $wp_query parameter to update_post_thumbnail_cache(). props scribu. see #19949, fixes that ticket for 3.4.
git-svn-id: https://develop.svn.wordpress.org/trunk@20646 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 15:55:57 +00:00
Daryl Koopersmith 3540b301af Theme Customizer: Migrate to an ajax-based solution for refreshing the preview and saving. see #20507, #19910.
* Use ajax-based saving, add saving indicator.
* Use ajax-based refreshing instead of form targets.
* Instead of using hidden inputs with prefixed names to track the canonical data, use the values stored in wp.customize. Encode the values as JSON before sending to avoid bugs with ids that contain square brackets (PHP mangles POST values with nested brackets).
* Use wp.customize.Previewer solely for the purpose of previewing; move the postMessage connection with the parent frame and other unrelated code snippets into the 'ready' handler.


git-svn-id: https://develop.svn.wordpress.org/trunk@20645 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 15:46:17 +00:00
bumpbot 307f568a64 Compress scripts/styles: 3.4-beta3-20644.
git-svn-id: https://develop.svn.wordpress.org/trunk@20644 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 12:58:19 +00:00
Andrew Nacin f6ed61d7c8 Fix typo in hex color code. props bananastalktome. fixes #20574.
git-svn-id: https://develop.svn.wordpress.org/trunk@20643 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 12:50:55 +00:00
Andrew Nacin e55d1f54e2 Undeprecate require_if_theme_supports() for themes using it for legitimate reasons. see [20610]. props scribu, jkudish. fixes #20556.
git-svn-id: https://develop.svn.wordpress.org/trunk@20642 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 02:02:11 +00:00
Andrew Nacin 20c3b25c7e In comment_form(), pass the $post_id to comments_open(). props insertvisionhere. fixes #20572.
git-svn-id: https://develop.svn.wordpress.org/trunk@20641 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 01:47:22 +00:00
Andrew Nacin 199f9adec2 Properly extract file headers via get_file_data() when CR line endings are used. props solarissmoke for the initial patch. fixes #19854.
git-svn-id: https://develop.svn.wordpress.org/trunk@20640 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 01:25:29 +00:00
Andrew Nacin f553c11f28 Default to keyword searches for the plugin and theme installers in case no search type is posted back. fixes #19619.
props georgestephanis, SergeyBiryukov for initial patches.



git-svn-id: https://develop.svn.wordpress.org/trunk@20639 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 00:44:47 +00:00
Andrew Nacin 23cbaa70c8 Add @param for the $fields parameter for XML-RPC's _prepare_taxonomy(). props SergeyBiryukov, fixes #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20638 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 00:25:14 +00:00
Andrew Nacin e7478f0b3b Check for the existence of a post before calling current_user_can() with a meta cap on that object. fixes #20336.
git-svn-id: https://develop.svn.wordpress.org/trunk@20637 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 00:19:32 +00:00
Andrew Nacin 43025c102b Introduce minimum_args() method in XML-RPC and leverage it to return errors for insufficient arguments for methods that are new in 3.4.
props maxcutler,  markoheijnen.
fixes #20394.



git-svn-id: https://develop.svn.wordpress.org/trunk@20636 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-28 21:25:25 +00:00
Andrew Nacin e3ba704f17 Use correct variable. Caught by unit tests. see #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20635 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-28 21:22:07 +00:00
bumpbot f78ebb0c3e Compress scripts/styles: 3.4-beta3-20634.
git-svn-id: https://develop.svn.wordpress.org/trunk@20634 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-28 20:58:20 +00:00
Andrew Ozz 99868b2742 Always hide the admin menu arrow in IE8 (doesn't work there), props casben79, SergeyBiryukov, fixes #19586
git-svn-id: https://develop.svn.wordpress.org/trunk@20633 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-28 20:55:56 +00:00
Andrew Nacin c072db3732 Clean up the XML-RPC 3.4 methods with regards to consistency and future compatibility.
* Limit returned taxonomy and post type objects to a specific type-cast whitelist of fields.
 * Add $filter and $fields to wp.getTaxonomies to match the functionality of wp.getPostTypes.
 * Prevent the post type from being chnaged in _insert_post().
 * Don't check post_type_supports() in _insert_post().
 * Align handling of sticky posts with those of core.
 * Force tags and categories to go through terms and terms_names, rather than tags_input and post_category.
fixes #20566. props nacin, maxcutler.



git-svn-id: https://develop.svn.wordpress.org/trunk@20632 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-28 18:48:10 +00:00
Andrew Nacin 82ceeca5de After adding a user, take them back to users.php with an 'Edit user' link in the message.
This removes the (possibly ineffective) search from the redirect, as well as the URL hash that will get covered up by the toolbar.

fixes #19470. props merty and SergeyBiryukov for initial patches.



git-svn-id: https://develop.svn.wordpress.org/trunk@20631 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 23:13:39 +00:00