Commit Graph

11627 Commits

Author SHA1 Message Date
bumpbot 90de4d1a69 Compress scripts/styles: 3.6-alpha-23770.
git-svn-id: https://develop.svn.wordpress.org/trunk@23770 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 16:58:38 +00:00
Peter Westwood ae03f1a0b6 Revisions: UI Update.
* Refines the UI to make it clearer and easier to use
* Introduces weighted tickmarks
* Fixes comparison bugs.

See #23497 props adamsilverstein


git-svn-id: https://develop.svn.wordpress.org/trunk@23769 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 15:54:11 +00:00
bumpbot cd16e77429 Compress scripts/styles: 3.6-alpha-23767.
git-svn-id: https://develop.svn.wordpress.org/trunk@23767 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 04:58:38 +00:00
Mark Jaquith 53ea4e0566 Add functions for generating metadata for video and audio, using the
ID3 library. Also allows themes/plugins to add thumbnail support
to these media types. Think stuff like album art, movie covers, and
video freeze-frames.

props wonderboymusic. fixes #23673

git-svn-id: https://develop.svn.wordpress.org/trunk@23766 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 04:55:42 +00:00
bumpbot 23f9315857 Compress scripts/styles: 3.6-alpha-23764.
git-svn-id: https://develop.svn.wordpress.org/trunk@23764 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-21 02:58:40 +00:00
bumpbot c6bda62923 Compress scripts/styles: 3.6-alpha-23762.
git-svn-id: https://develop.svn.wordpress.org/trunk@23762 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-20 06:13:30 +00:00
bumpbot 6e92b305fa Compress scripts/styles: 3.6-alpha-23754.
git-svn-id: https://develop.svn.wordpress.org/trunk@23754 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 18:58:40 +00:00
Helen Hou-Sandi 987251f582 Remove separate meta fields for image and gallery post formats. These are proving to be more confusing and labor-intensive from both a user and dev perspective than entering into the regular content editor. We will rely on good content parsing instead. See #19570, #23347.
git-svn-id: https://develop.svn.wordpress.org/trunk@23753 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 17:18:07 +00:00
Ryan Boren 806002166b In refresh_blog_details(), make sure clean_blog_cache() gets the blog ID when the blog has been previously cached as non-existent. This ensures that -1 values in blog-details are cleared after blogs are created.
Props beezeee, hirozed
fixes #23405


git-svn-id: https://develop.svn.wordpress.org/trunk@23752 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 05:05:19 +00:00
bumpbot 8700943f39 Compress scripts/styles: 3.6-alpha-23751.
git-svn-id: https://develop.svn.wordpress.org/trunk@23751 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 04:58:37 +00:00
Ryan Boren 0da872a785 Clarify phpdoc for the vertical and horizontal arguments to the flip() method in WP_Image_Editor*.
Props dh-shredder
fixes #23775


git-svn-id: https://develop.svn.wordpress.org/trunk@23750 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-19 03:30:04 +00:00
bumpbot e3023dcdbb Compress scripts/styles: 3.6-alpha-23746. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23746 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 20:58:39 +00:00
Andrew Ozz cc7ca57f85 Editor: preserve the textarea content when saving, wpautop is not used and TinyMCE is hidden. Props WraithKenny, fixes #23743
git-svn-id: https://develop.svn.wordpress.org/trunk@23745 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 20:40:39 +00:00
Ryan Boren 1c2a9008c5 Make WP_Image_Editor::make_image() safe for replication plugins by making sure the directory for the image being made exists.
Props batmoo
fixes #23306


git-svn-id: https://develop.svn.wordpress.org/trunk@23744 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 18:05:23 +00:00
Ryan Boren 72c65a3145 Fix i18n for revision diff strings displaying human time.
Props johnbillion
fixes #23723


git-svn-id: https://develop.svn.wordpress.org/trunk@23743 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 17:58:30 +00:00
Ryan Boren b16e4eaf58 Pass tag ID and args array to topic_count_text_callback from wp_generate_tag_cloud().
Props najamelan, toscho
fixes #21198


git-svn-id: https://develop.svn.wordpress.org/trunk@23741 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 17:17:55 +00:00
Ryan Boren 5cf0bc9be0 Bail early with correct WP_Error when an invalid post ID is passed to wp_insert_post() and wp_update_post().
Props simonwheatley
fixes #23474


git-svn-id: https://develop.svn.wordpress.org/trunk@23740 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 14:33:09 +00:00
Ryan Boren 18e3a300ab Remove old phpdoc that incorrectly marks wp_timezone_choice() as temporary.
Props danielbachhuber
fixes #23804


git-svn-id: https://develop.svn.wordpress.org/trunk@23738 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 13:35:34 +00:00
bumpbot 9e7cac887b Compress scripts/styles: 3.6-alpha-23736.
git-svn-id: https://develop.svn.wordpress.org/trunk@23736 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 22:58:39 +00:00
Andrew Ozz c996f27c4d Create one autosave per user rather than a single autosave for all users. Remove unused code from autosave.js and wp_ajax_autosave(). See #23665.
git-svn-id: https://develop.svn.wordpress.org/trunk@23735 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 21:15:43 +00:00
bumpbot 54dff9f493 Compress scripts/styles: 3.6-alpha-23734.
git-svn-id: https://develop.svn.wordpress.org/trunk@23734 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 20:58:37 +00:00
Dion Hulse eff3a330f8 Move the Mediaelement.js include into the wp-includes/js folder, rather than wp-includes directly. Fixes the mediaplayer in browsers which don't support <audio> directly.
Props DrewAPicture See #23282.


git-svn-id: https://develop.svn.wordpress.org/trunk@23732 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 08:43:19 +00:00
bumpbot e4071c0d8b Compress scripts/styles: 3.6-alpha-23731.
git-svn-id: https://develop.svn.wordpress.org/trunk@23731 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 06:58:41 +00:00
Andrew Ozz e4b6b84d8e Pass post format as a class to TinyMCE's body, props adamsilverstein, fixes #23198
git-svn-id: https://develop.svn.wordpress.org/trunk@23730 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 05:57:54 +00:00
Mark Jaquith 0132e8100c Introduce [audio] and [video] shortcodes, and use MediaElement.js to play them.
props wonderboymusic. see #23282.

git-svn-id: https://develop.svn.wordpress.org/trunk@23729 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 05:25:44 +00:00
bumpbot 050124e6ce Compress scripts/styles: 3.6-alpha-23728.
git-svn-id: https://develop.svn.wordpress.org/trunk@23728 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 04:58:37 +00:00
bumpbot 23427e8e51 Compress scripts/styles: 3.6-alpha-23726.
git-svn-id: https://develop.svn.wordpress.org/trunk@23726 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 22:58:35 +00:00
Sergey Biryukov c4f8e11df0 Remove redundant code from post_type_supports() and remove_post_type_support(). props obenland, bilalcoder. fixes #21527.
git-svn-id: https://develop.svn.wordpress.org/trunk@23722 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 18:28:33 +00:00
Sergey Biryukov 03aac4585d Add phpdoc for $attr argument of wp_get_attachment_image(). props GaryJ. fixes #23791.
git-svn-id: https://develop.svn.wordpress.org/trunk@23714 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 17:19:10 +00:00
Sergey Biryukov d8f3366704 Fix placeholder reference in translator comment. props devesine. fixes #23766.
git-svn-id: https://develop.svn.wordpress.org/trunk@23709 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 16:20:15 +00:00
bumpbot 117e132a94 Compress scripts/styles: 3.6-alpha-23708.
git-svn-id: https://develop.svn.wordpress.org/trunk@23708 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 14:58:36 +00:00
bumpbot 951a73e486 Compress scripts/styles: 3.6-alpha-23706.
git-svn-id: https://develop.svn.wordpress.org/trunk@23706 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 06:58:36 +00:00
Andrew Ozz ded373a640 Local autosave: remove the temp cookie after first use. Prevents false negative if the browser crashes. Add some temp logging to aid testing. See #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23705 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 06:15:14 +00:00
bumpbot a4b13093c4 Compress scripts/styles: 3.6-alpha-23704.
git-svn-id: https://develop.svn.wordpress.org/trunk@23704 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 02:58:53 +00:00
Mark Jaquith 4163b21746 Wrap self.run in an anonymous function wrapper so self always gets the same scope.
props azaozz. fixes #23780

git-svn-id: https://develop.svn.wordpress.org/trunk@23703 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 02:32:05 +00:00
bumpbot 458058760f Compress scripts/styles: 3.6-alpha-23695.
git-svn-id: https://develop.svn.wordpress.org/trunk@23695 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-14 04:58:39 +00:00
Mark Jaquith 134fb4f257 Improve wp_list_comments() markup.
* Whitespace cleanup
* Accepts format=html5 which uses some of the HTML5 elements
* Some helpful HTML comments to help untangle the HTML
* Other misc code cleanup

props lancewillett, obenland, georgestephanis. fixes #20088.

git-svn-id: https://develop.svn.wordpress.org/trunk@23694 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-14 04:26:04 +00:00
Andrew Ozz 5e71fb3992 Local autosave: set a temp cookie on submitting the form and change it on redirecting after the post is saved/updated, then use it to determine if saving worked properly. Removes the chance for false positives after saving/updating a post. See #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23693 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-14 03:06:07 +00:00
Mark Jaquith b95b9917f1 Add the ability to use HTML5 input types in the comment form.
props jorbin, georgestephanis, obenland. fixes #15080

git-svn-id: https://develop.svn.wordpress.org/trunk@23689 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 20:31:43 +00:00
Peter Westwood 7e33770010 Multisite: Ensure that get_blogaddress_by_name does not mangle blognames with leading digits.
Correctly specify the backreference in the regular expression so that it can not become ambiguous when there is a leading digit on the blogname.

Fixes #23689 props dllh.


git-svn-id: https://develop.svn.wordpress.org/trunk@23686 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 16:00:38 +00:00
Peter Westwood 6c937208e7 Formatting: Pass the blog charset to htmlspecialchars so that we don't eat non-UTF8 strings in PHP 5.4
Fixes #23688


git-svn-id: https://develop.svn.wordpress.org/trunk@23685 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 15:24:38 +00:00
bumpbot 4ff35bd528 Compress scripts/styles: 3.6-alpha-23684.
git-svn-id: https://develop.svn.wordpress.org/trunk@23684 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 10:58:39 +00:00
Andrew Ozz 4ad27d6d14 Autosave to the browser's sessionStorage, compare this autosave to the post content on page load and let the user restore it when the data is not the same. First run, see #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23683 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 10:08:16 +00:00
bumpbot 5e439e799e Compress scripts/styles: 3.6-alpha-23682.
git-svn-id: https://develop.svn.wordpress.org/trunk@23682 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 00:58:39 +00:00
Andrew Ozz 631980b5fa Post locks on the posts list screen: new icons for the lock, props empireoflight, show avatar for the user currently editing, props dh-shredder, see #23312
git-svn-id: https://develop.svn.wordpress.org/trunk@23681 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 00:28:07 +00:00
Sergey Biryukov 317d45f452 Fix array formatting. see #21210.
git-svn-id: https://develop.svn.wordpress.org/trunk@23668 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 10:30:58 +00:00
Sergey Biryukov c4c4c09c43 Add $format argument to get_search_form() to allow HTML5 markup. props georgestephanis, lancewillett. fixes #15081.
git-svn-id: https://develop.svn.wordpress.org/trunk@23667 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 10:25:08 +00:00
Sergey Biryukov f4a77a66b4 Always respect $echo argument in get_search_form(). props garyc40, kawauso. fixes #16541.
git-svn-id: https://develop.svn.wordpress.org/trunk@23666 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 09:51:56 +00:00
Sergey Biryukov a33ecb5f56 Improve punctuation in phpdoc. see #23090.
git-svn-id: https://develop.svn.wordpress.org/trunk@23665 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 09:30:13 +00:00
Sergey Biryukov 514e6ca11f Fix fatal error in WP_User_Query when searching users by URL. Move wp_is_large_network() to wp-includes. fixes #23683 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23664 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 09:19:55 +00:00
bumpbot 96f4a86553 Compress scripts/styles: 3.6-alpha-23662.
git-svn-id: https://develop.svn.wordpress.org/trunk@23662 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 04:58:35 +00:00
Sergey Biryukov 9dc7a6a22f Avoid an undefined index notice in get_post_type_archive_feed_link(). props ericlewis. fixes #23744.
git-svn-id: https://develop.svn.wordpress.org/trunk@23660 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 01:50:46 +00:00
Sergey Biryukov 99392425cb Fix typo in phpdoc. props fanquake. fixes #23737.
git-svn-id: https://develop.svn.wordpress.org/trunk@23659 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-11 09:39:55 +00:00
Sergey Biryukov 44e0f5ff09 Pass the post ID to the_title filter in post_formats_compat(). see #23347.
git-svn-id: https://develop.svn.wordpress.org/trunk@23655 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-09 02:29:29 +00:00
Sergey Biryukov 16f38de702 Make wp_link_pages() filterable. Add 'separator' argument. Simplify the function logic. props obenland, brianlayman. fixes #13578.
git-svn-id: https://develop.svn.wordpress.org/trunk@23653 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-08 18:33:52 +00:00
Sergey Biryukov 82b5f9e128 Add orientation information to gallery items. props obenland. fixes #23695.
git-svn-id: https://develop.svn.wordpress.org/trunk@23649 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-08 16:13:15 +00:00
bumpbot 5d98f47677 Compress scripts/styles: 3.6-alpha-23646.
git-svn-id: https://develop.svn.wordpress.org/trunk@23646 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 22:58:48 +00:00
Peter Westwood ae4522b5f1 Revisions: Updates to the new Revisions UI.
Various Updates including:
 * i18n fixes
 * Added tracking of what revision ID was restored
 * async fetching of diffs so that slider works sooner even with many revisions

See #23497 props adamsilverstein, ethitter


git-svn-id: https://develop.svn.wordpress.org/trunk@23639 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 15:32:26 +00:00
Andrew Nacin 4bd1d84c02 Revert [23411] until encoding differences are worked out. see #20771.
git-svn-id: https://develop.svn.wordpress.org/trunk@23637 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 06:57:56 +00:00
Andrew Nacin 0a1b374283 XML-RPC: Return an error for getRecentPosts (mw and blogger) if the user does not have edit_posts.
props redsweater.
fixes #22320.



git-svn-id: https://develop.svn.wordpress.org/trunk@23636 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 06:52:37 +00:00
Andrew Nacin f5de3b88a8 Allow get_post_ancestors() to inspect the $post global, when null/0 is received. see #23708.
git-svn-id: https://develop.svn.wordpress.org/trunk@23635 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 06:49:46 +00:00
Sergey Biryukov 3213c4ca46 Always escape the URL echoed by header_image(). fixes #23664.
git-svn-id: https://develop.svn.wordpress.org/trunk@23633 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-07 05:30:00 +00:00
bumpbot bc37473b87 Compress scripts/styles: 3.6-alpha-23627.
git-svn-id: https://develop.svn.wordpress.org/trunk@23627 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-06 22:58:49 +00:00
Andrew Nacin 87bea49dc5 Add shortcode_atts_$shortcode filter for when the name of the shortcode is passed to shortcode_atts(). props coffee2code. fixes #15155.
git-svn-id: https://develop.svn.wordpress.org/trunk@23626 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-06 20:07:40 +00:00
Andrew Nacin 11b772ea05 Add filters to comments_link_feed(), comment_link(), and get_comments_link(). esc_url() the echoed output of comments_link().
props MarcusPope.
fixes #19210.



git-svn-id: https://develop.svn.wordpress.org/trunk@23624 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-06 19:57:31 +00:00
Andrew Nacin ddb81178b7 Properly handle timezones in get_date_from_gmt() rather than relying on the implicit gmt_offset. This offset is only good for the current time, rather than the passed time, which causes problems when converting a DST date when DST is not in effect, or vice versa.
Update get_gmt_from_date() to make these functions match in formatting, as they are complementary and just reverse a few operations.

props scholesmafia
Tests: [1233/tests]

fixes #20328.



git-svn-id: https://develop.svn.wordpress.org/trunk@23618 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-05 16:14:14 +00:00
bumpbot 32e9ee9d42 Compress scripts/styles: 3.6-alpha-23617.
git-svn-id: https://develop.svn.wordpress.org/trunk@23617 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-05 14:49:17 +00:00
Andrew Nacin 8f97270ec5 Add heartbeat and revisions .min.js files.
git-svn-id: https://develop.svn.wordpress.org/trunk@23616 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-05 14:47:29 +00:00
Dion Hulse 5c1c214b26 WP_HTTP: Prevent the 'max_body_length' and 'stream_handle' properties of the curl class from leaking between requests by specifically initializing them in every case. See #23472 & r23605
git-svn-id: https://develop.svn.wordpress.org/trunk@23609 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 05:40:43 +00:00
Dion Hulse c267aa97a8 WP_HTTP: Fix returning WP_Error's on too-many-redirects after r23603 See #23682
git-svn-id: https://develop.svn.wordpress.org/trunk@23608 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 05:17:05 +00:00
Dion Hulse 86a9ca48a1 WP_HTTP: Return error responses from cURL for non-blocking requests. Contrary to popular belief, cURL's non-blocking requests are not exact non-blocking, we still wait for cURL to make the request before returning, so making this change aids in development debugging. Props SergeyBiryukov Fixes #23310
git-svn-id: https://develop.svn.wordpress.org/trunk@23607 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 04:47:39 +00:00
Dion Hulse c5ebf25b8e WP_HTTP: Enable developers to request the first x bytes of a document using the 'limit-response-size' parameter.
The connection to the remote server will be disconnected after x number of bytes has been received.
See #23472


git-svn-id: https://develop.svn.wordpress.org/trunk@23605 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 04:24:26 +00:00
Sergey Biryukov 67a775ec5b Fix typos in phpdoc. props bradparbs. fixes #23481.
git-svn-id: https://develop.svn.wordpress.org/trunk@23604 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 04:23:00 +00:00
Dion Hulse b3e461dddd WP_HTTP: Funnel all redirect requests through WP_HTTP::request() via wp_remote_request() to ensure that the proper transport is chosen for redirects.
This change also moves PHP Streams from redirecting internally, to us handling the redirections in PHP, which brings a more consistent behaviour between transports.
Fixes #23682



git-svn-id: https://develop.svn.wordpress.org/trunk@23603 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 04:10:36 +00:00
Dion Hulse f936278590 WP_HTTP: Specifically mark a static function as being static
git-svn-id: https://develop.svn.wordpress.org/trunk@23602 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 03:36:08 +00:00
Dion Hulse d15b5ca24b WP_HTTP: Do not send a Accept-Encoding header when we're streaming to file, or decompression has been disabled by the caller, See #22913
git-svn-id: https://develop.svn.wordpress.org/trunk@23601 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 03:33:12 +00:00
Dion Hulse 349fb6ed6d WP_HTTP: Allow developers to specify a Accept-Encoding header. Fixes #20142
git-svn-id: https://develop.svn.wordpress.org/trunk@23600 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 03:11:25 +00:00
Sergey Biryukov 1df0c7277c Remove unnecessary error suppression from get_terms(). fixes #21887.
git-svn-id: https://develop.svn.wordpress.org/trunk@23599 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 02:52:43 +00:00
Sergey Biryukov 2158fa203b Fix array formatting. props WraithKenny. fixes #21210.
git-svn-id: https://develop.svn.wordpress.org/trunk@23598 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 02:48:20 +00:00
Sergey Biryukov 4cfc8178cf Simplify logic in WP_Widget_Recent_Posts and WP_Widget_Recent_Comments. fixes #23089.
git-svn-id: https://develop.svn.wordpress.org/trunk@23597 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 02:14:23 +00:00
bumpbot cb9f18d20f Compress scripts/styles: 3.6-alpha-23596.
git-svn-id: https://develop.svn.wordpress.org/trunk@23596 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 22:58:36 +00:00
Sergey Biryukov deb52aded0 Use correct variable. see [23592]. see #21767.
git-svn-id: https://develop.svn.wordpress.org/trunk@23595 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 22:04:33 +00:00
Ryan Boren 6d2a8d2ef0 Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().
see #21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23594 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 21:11:40 +00:00
Ryan Boren c61b68d896 Remove unnecessary stripslashes().
see #21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23593 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 20:55:30 +00:00
Ryan Boren 6c3d30e58a In ms-functions.php, remove unnecessary slashing, don't strip the return of get_site_option, s/stripslashes*/wp_unslash/.
see #21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23592 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 16:55:53 +00:00
Ryan Boren b78520da15 Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().
see #WP21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23591 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 16:30:38 +00:00
Daryl Koopersmith cb8328d912 Media: Reset modal after gallery insertion.
Removes hardcoded (and vestigial) 'upload' states in favor of using the default modal state.
When a media toolbar action is triggered, reset the modal after switching to the new state (as opposed to beforehand).

fixes #23675.


git-svn-id: https://develop.svn.wordpress.org/trunk@23590 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 07:36:21 +00:00
Daryl Koopersmith c2e7a67fbe Update Backbone to 0.9.10. Update media to handle breaking changes.
* When overriding `Backbone.sync()`, ensure the `sync` and `error` events fire consistently.

* `Model#make()` has been removed. Use `$` instead, and be sure to grab the DOM node where necessary (using `[0]`).

* `Collection#get()` now accepts `cid`s. `Collection#getByCid()` has been removed.

* When overriding the `State` constructor, bind `change` callbacks after the default `Model` constructor is called, because the `Model` constructor no longer passes the `silent` flag when calling `set()` for the default attributes.

* In 'change' events, `options.changes` was removed. It can now be accessed through `model.changed`. Check if any attributes have changed by calling `model.hasChanged()`. Also, don't mess with `model.changed`; it persists beyond the scope of a single event.

* `options.index` is no longer be set in the `add` event callback. Use `collection.indexOf(model)` can be used to retrieve the index of a model instead.

props gcorne. fixes #23262.


git-svn-id: https://develop.svn.wordpress.org/trunk@23589 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 07:04:06 +00:00
Andrew Nacin 16d1aa3485 Remove the three default contact methods (AIM, YIM, Jabber) for new installs. fixes #11541.
git-svn-id: https://develop.svn.wordpress.org/trunk@23588 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 03:00:34 +00:00
bumpbot 0c4b47f631 Compress scripts/styles: 3.6-alpha-23585.
git-svn-id: https://develop.svn.wordpress.org/trunk@23585 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 22:58:34 +00:00
bumpbot ec3fda3cc1 Compress scripts/styles: 3.6-alpha-23582.
git-svn-id: https://develop.svn.wordpress.org/trunk@23582 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 22:58:38 +00:00
Helen Hou-Sandi 45b4d47b02 * Simplify jQuery UI slider CSS and bring into line with admin styles.
* Merge styles into wp-admin.css and colors-*.css.
* Scope the CSS with a class so as not to conflict with the color picker, which also utilizes jQuery UI slider. Authors wanting to use built-in styling for sliders should add a class of `.wp-slider` to the container to be intialized.

props karmatosed, helen. see #23497.


git-svn-id: https://develop.svn.wordpress.org/trunk@23581 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 19:24:03 +00:00
Sergey Biryukov 3e811c5171 Use distinct error code in wp_authenticate_username_password() when user is a spammer. props sirzooro. fixes #19445.
git-svn-id: https://develop.svn.wordpress.org/trunk@23579 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 18:01:16 +00:00
Andrew Nacin 12882f9848 Ensure the referer functions operate completely on unslashed data: wp_referer_field(), wp_original_referer_field(), wp_get_referer(), wp_get_original_referer().
Use wp_slash() instead of addslashes().

see #21767.



git-svn-id: https://develop.svn.wordpress.org/trunk@23578 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:58:43 +00:00
Andrew Nacin 20f86706e4 Remove double-strip on HTTP_IF_NONE_MATCH, which was done years ago (in #2597). see #21767.
git-svn-id: https://develop.svn.wordpress.org/trunk@23573 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:51:16 +00:00
Sergey Biryukov 15cc36bd4b Make sure the pings are only sent once per URL for a given post. props dllh. fixes #23217.
git-svn-id: https://develop.svn.wordpress.org/trunk@23571 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:39:52 +00:00
Ryan Boren 37fae23001 Always wp_unslash() the return of wp_get_referer().
see #21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23570 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:20:32 +00:00
Sergey Biryukov ad40af5edc Add a filter for attributes on menu item links. props simonwheatley, DrewAPicture, SergeyBiryukov, nacin. fixes #16738.
git-svn-id: https://develop.svn.wordpress.org/trunk@23565 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:06:35 +00:00
Ryan Boren 85782c3e39 Introduce wp_slash() and wp_unslash(). This will be used to cleanup the myriad calls to addslashes*, add_magic_quotes, stripslashes*. see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23555 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:34:48 +00:00
Ryan Boren c363aea627 Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23554 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:28:40 +00:00