Commit Graph

9715 Commits

Author SHA1 Message Date
nacin
58050466eb Do not check for a meta value in XML-RPC set_custom_fields unless we know we are editing a key. Prevents a notice when a custom field is being deleted. props scott.gonzalez. fixes #20543.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 14:26:31 +00:00
bumpbot
103ecdf368 Compress scripts/styles: 3.4-beta3-20582.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 22:58:22 +00:00
ryan
646cb4e2ce * Return empty arrays instead of false for all conditions in get_blogs_of_user().
* When deleting a user, use a delete_metadata_by_mid() loop over the meta so that the meta cache is cleared.
* Use remove_user_from_blog() for DRYness.

Props nacin, duck_
Fixes #19500


git-svn-id: http://svn.automattic.com/wordpress/trunk@20581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 22:13:47 +00:00
azaozz
b6b321a203 Uploader: fix check for error message send from async-upload on failed uploads, improve styling it a bit, props trepmal, SergeyBiryukov, fixes #20445
git-svn-id: http://svn.automattic.com/wordpress/trunk@20580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 22:06:55 +00:00
bumpbot
f92e8411f8 Compress scripts/styles: 3.4-beta3-20578.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 19:58:21 +00:00
koopersmith
d83e230c50 Use a deep extend in wp.Uploader to ensure that the multipart_params object (and others) are cloned instead of referenced. fixes #20532.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 19:38:47 +00:00
ryan
04a9e7a552 Revert [20568] until a publish_post cap is introduced. see #20474
git-svn-id: http://svn.automattic.com/wordpress/trunk@20576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 16:22:12 +00:00
nacin
0fcb84d9c1 Fix a notice in [20565] where get_the_author_meta() may be called prior to postdata from being set up. In this case, the function should return nothing (via the filter). props johnjamesjacoby. fixes #20529. see #20285.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-24 14:41:23 +00:00
bumpbot
300ea7891d Compress scripts/styles: 3.4-beta3-20574.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-23 23:58:22 +00:00
koopersmith
d5a6d19f22 Theme Customizer: Simplify logic when preparing menu controls. Include instructions to edit menu content in section description. Add string for default state. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-23 23:03:09 +00:00
duck_
1e76fdfb4b Accept a post object in clean_post_cache(). Fixes #20486.
The post_type can then be accessed to properly clean the taxonomy relationships cache.
The full object is useful in situations when an ID might reference a post that has been
removed from the database (e.g. wp_delete_post()).


git-svn-id: http://svn.automattic.com/wordpress/trunk@20569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-23 22:04:35 +00:00
ryan
0bffacac50 Check the publish_post cap when publishing an already existing post.
Props nprasath002
Fixes #20474


git-svn-id: http://svn.automattic.com/wordpress/trunk@20568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-23 21:54:30 +00:00
ryan
9cbd3def67 Require the edit_posts capability for wp_getPostFormats.
Props maxcutler.
Fixes #20154


git-svn-id: http://svn.automattic.com/wordpress/trunk@20566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-23 21:41:50 +00:00
ryan
43979f17ac Remove key mangling code from get_the_author_meta(). Make it more inline with get_user_option(). Handle collision with old users table columns that are on old schema, particularly user_description.
Props scribu, fredwu.
Fixes #20285


git-svn-id: http://svn.automattic.com/wordpress/trunk@20565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-23 21:34:07 +00:00
duck_
0915eb5d43 Add missing "?" to gravatar_default URL in get_avatar() to set size parameter correctly. Fixes #20512.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-22 11:45:31 +00:00
duck_
3fdd4ee29f wp_oembed_get() returns false on failure. Props SergeyBiryukov. Fixes #20355.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-22 11:19:56 +00:00
nacin
0f7b30d9c6 3.4-beta3.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 13:23:21 +00:00
nacin
fe63ec5dec If a cached theme root is no longer registered, skip it. Assume the cache is out of date. see #20103.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 13:22:54 +00:00
duck_
6d13f920fd Add $id parameter to get_the_tag_list() for consistency with get_the_(category|term)_list(). Props kawauso. Fixes #20072.
Also remove 'default' value of 0 for $id parameter in generic taxonomy functions
as it is a required parameter, and fix a notice when get_the_terms() is called
when $id = 0 and the $post global is not an object.


git-svn-id: http://svn.automattic.com/wordpress/trunk@20549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 10:06:05 +00:00
bumpbot
ad4bfd0a45 Compress scripts/styles: 3.4-beta2-20548.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 04:58:21 +00:00
koopersmith
3668ad4516 Theme Customizer: Firefox CSS love. props helenyhou, see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 04:46:02 +00:00
bumpbot
ca047faab9 Compress scripts/styles: 3.4-beta2-20546.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 02:58:21 +00:00
koopersmith
a20bfcd6b1 Theme Customizer: Improve image picker control. see #19910.
Overhauled image pickers:
* Add support for drag and drop uploads to image controls.
* Improve the 'uploaded' tab in image controls: automatically add images uploaded during the current session, hide the tab when no uploaded images exist.
* Move the header image control to the WP_Customize_Header_Image_Control class. Remove wp_customize_print_uploaded_headers() and wp_customize_print_uploaded_headers() functions.
* Abstract the dropdown functionality from the color picker to the .dropdown class.
* In wp.Uploader, unset element keys if passed an empty jQuery collection.



git-svn-id: http://svn.automattic.com/wordpress/trunk@20545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 02:39:55 +00:00
nacin
a7ef8337be Handle multiple feed: schemes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 21:48:12 +00:00
nacin
b7e407cce8 Add sanity checks to WP_oEmbed::data2html() to ensure we are working with scalar values. Always use the filter. props mdawaffe, fixes #20322.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 19:46:34 +00:00
nacin
87d9d6f1c9 3.4-beta2-20538
git-svn-id: http://svn.automattic.com/wordpress/trunk@20538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 16:44:20 +00:00
duck_
9eaf6fc4c3 Handle uppercase HTML entities in get_previous_posts_link(). Props ounziw. See #4152, fixes #19803.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 15:08:06 +00:00
bumpbot
539bffd7fa Compress scripts/styles: 3.4-beta2-20536.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 14:58:27 +00:00
nacin
4fae1f64c2 Do not block file mod/edit caps when DISALLOW_UNFILTERED_HTML is set. There are separate constants (DISALLOW_FILE_EDIT and DISALLOW_FILE_MODS for those). fixes #20488.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 14:05:05 +00:00
duck_
9694d46b27 Don't deprecate cleaning the user cache by ID. See #20460.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 11:51:27 +00:00
bumpbot
f8201ed9e2 Compress scripts/styles: 3.4-beta2-20531.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 06:58:24 +00:00
koopersmith
4900af30f1 Theme Customizer: Box model fixes for image picker thumbnails. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 06:45:31 +00:00
koopersmith
c0cc088cb5 Theme Customizer: Begin improving image picker markup/styles. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 06:29:54 +00:00
nacin
abd8d6a4c2 Always return a WP_Theme object from wp_get_theme(). If we can't find the theme root, assume the default theme root. (Which will probably result in a WP_Theme object that returns false for the exists() method, which is fine.) see #20361.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-19 03:33:42 +00:00
duck_
e641c48a72 Pass full user objects to clean_user_cache(). See #19500, fixes #20460.
Prevents notices when clean_user_cache() is called for a user that has been removed from the database.


git-svn-id: http://svn.automattic.com/wordpress/trunk@20522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 21:07:31 +00:00
bumpbot
715efd86f0 Compress scripts/styles: 3.4-beta2-20521. TinyMCE updated.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 20:58:24 +00:00
koopersmith
73246fa076 Theme Customizer: Remove unused 'template' argument from wp_customize_url. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 20:57:06 +00:00
azaozz
b85e997156 Remove extra slash when opening the gallery thickbox popup from the visual editor, props SergeyBiryukov, fixes #19850
git-svn-id: http://svn.automattic.com/wordpress/trunk@20519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 20:43:28 +00:00
koopersmith
43c9e81c40 Remove jQuery postMessage plugin, as it is no longer used (as of [20517]). see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 20:32:13 +00:00
koopersmith
9b5c6a917c Theme Customizer: Use native postMessage for wp.customize.Messenger. see #19910.
* Removes use of jquery.postmessage.js
* Fixes bug where Opera would attempt to use the hash transport and redirect to the dashboard.
* Fixes bug where multiple postMessage connections could not coexist in a single frame.



git-svn-id: http://svn.automattic.com/wordpress/trunk@20517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 20:25:31 +00:00
bumpbot
2aff17ee0e Compress scripts/styles: 3.4-beta2-20515.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 19:58:21 +00:00
nacin
646ae32016 Only output the class attribute in wp_nav_menu() if we have classes to add. Don't waste time on an strlen() call. props niallkennedy, fixes #20483.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 19:06:22 +00:00
bumpbot
1aa1918f28 Compress scripts/styles: 3.4-beta2-20512.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 18:58:19 +00:00
koopersmith
8acedf47a9 Theme Customizer: Color control hover styles. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 18:01:20 +00:00
bumpbot
5cdef8c5fc Compress scripts/styles: 3.4-beta2-20509.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 17:58:18 +00:00
koopersmith
6b32b6a9fa Theme Customizer: Remove redundant call to wp_enqueue_script. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 17:17:14 +00:00
koopersmith
1d73aae054 Remove 'visibility' parameter from WP_Customize_Control. Handle control visibility in JS instead. see #19910.
* Have the header text color picker display only when header_textcolor != 'blank'



git-svn-id: http://svn.automattic.com/wordpress/trunk@20506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 17:13:31 +00:00
bumpbot
1085d4ecb7 Compress scripts/styles: 3.4-beta2-20505.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 14:58:20 +00:00
koopersmith
5e5a6446d1 Theme Customizer: Improve markup/styles for opened color picker. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 14:32:05 +00:00
nacin
cd290bf2ce Update swfobject
git-svn-id: http://svn.automattic.com/wordpress/trunk@20501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-18 13:36:32 +00:00