Commit Graph

9710 Commits

Author SHA1 Message Date
Daryl Koopersmith 14100746f2 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: https://develop.svn.wordpress.org/trunk@20577 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 19:38:47 +00:00
Ryan Boren 643618503c Revert [20568] until a publish_post cap is introduced. see #20474
git-svn-id: https://develop.svn.wordpress.org/trunk@20576 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 16:22:12 +00:00
Andrew Nacin a89d307726 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: https://develop.svn.wordpress.org/trunk@20575 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 14:41:23 +00:00
bumpbot 3aaa209968 Compress scripts/styles: 3.4-beta3-20574.
git-svn-id: https://develop.svn.wordpress.org/trunk@20574 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 23:58:22 +00:00
Daryl Koopersmith e73e1f4e5d 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: https://develop.svn.wordpress.org/trunk@20572 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 23:03:09 +00:00
Jon Cave 83a3cc73df 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: https://develop.svn.wordpress.org/trunk@20569 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 22:04:35 +00:00
Ryan Boren 5b9e7c07ba Check the publish_post cap when publishing an already existing post.
Props nprasath002
Fixes #20474


git-svn-id: https://develop.svn.wordpress.org/trunk@20568 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 21:54:30 +00:00
Ryan Boren 7e45462cbd Require the edit_posts capability for wp_getPostFormats.
Props maxcutler.
Fixes #20154


git-svn-id: https://develop.svn.wordpress.org/trunk@20566 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 21:41:50 +00:00
Ryan Boren de4b2724fd 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: https://develop.svn.wordpress.org/trunk@20565 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 21:34:07 +00:00
Jon Cave 5b863a766b Add missing "?" to gravatar_default URL in get_avatar() to set size parameter correctly. Fixes #20512.
git-svn-id: https://develop.svn.wordpress.org/trunk@20563 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-22 11:45:31 +00:00
Jon Cave 7a276ec3fb wp_oembed_get() returns false on failure. Props SergeyBiryukov. Fixes #20355.
git-svn-id: https://develop.svn.wordpress.org/trunk@20562 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-22 11:19:56 +00:00
Andrew Nacin c401b0b61e 3.4-beta3.
git-svn-id: https://develop.svn.wordpress.org/trunk@20552 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 13:23:21 +00:00
Andrew Nacin 23755473ac If a cached theme root is no longer registered, skip it. Assume the cache is out of date. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20551 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 13:22:54 +00:00
Jon Cave e5e2528313 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: https://develop.svn.wordpress.org/trunk@20549 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 10:06:05 +00:00
bumpbot be25e9070b Compress scripts/styles: 3.4-beta2-20548.
git-svn-id: https://develop.svn.wordpress.org/trunk@20548 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 04:58:21 +00:00
Daryl Koopersmith ef8926c076 Theme Customizer: Firefox CSS love. props helenyhou, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20547 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 04:46:02 +00:00
bumpbot 909935606a Compress scripts/styles: 3.4-beta2-20546.
git-svn-id: https://develop.svn.wordpress.org/trunk@20546 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 02:58:21 +00:00
Daryl Koopersmith e2bbb75ba5 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: https://develop.svn.wordpress.org/trunk@20545 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 02:39:55 +00:00
Andrew Nacin f3d77695cb Handle multiple feed: schemes.
git-svn-id: https://develop.svn.wordpress.org/trunk@20540 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 21:48:12 +00:00
Andrew Nacin 7accb38740 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: https://develop.svn.wordpress.org/trunk@20539 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 19:46:34 +00:00
Andrew Nacin 7534fdb026 3.4-beta2-20538
git-svn-id: https://develop.svn.wordpress.org/trunk@20538 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 16:44:20 +00:00
Jon Cave e15d677986 Handle uppercase HTML entities in get_previous_posts_link(). Props ounziw. See #4152, fixes #19803.
git-svn-id: https://develop.svn.wordpress.org/trunk@20537 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 15:08:06 +00:00
bumpbot abaca87e32 Compress scripts/styles: 3.4-beta2-20536.
git-svn-id: https://develop.svn.wordpress.org/trunk@20536 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 14:58:27 +00:00
Andrew Nacin 29ca3e321a 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: https://develop.svn.wordpress.org/trunk@20534 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 14:05:05 +00:00
Jon Cave 2cc545029f Don't deprecate cleaning the user cache by ID. See #20460.
git-svn-id: https://develop.svn.wordpress.org/trunk@20532 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 11:51:27 +00:00
bumpbot 882eaba136 Compress scripts/styles: 3.4-beta2-20531.
git-svn-id: https://develop.svn.wordpress.org/trunk@20531 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 06:58:24 +00:00
Daryl Koopersmith 424fcf2a6e Theme Customizer: Box model fixes for image picker thumbnails. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20530 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 06:45:31 +00:00
Daryl Koopersmith 9d5ecc02ae Theme Customizer: Begin improving image picker markup/styles. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20527 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 06:29:54 +00:00
Andrew Nacin 66bea4d318 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: https://develop.svn.wordpress.org/trunk@20524 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 03:33:42 +00:00
Jon Cave c0dd73f68d 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: https://develop.svn.wordpress.org/trunk@20522 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 21:07:31 +00:00
bumpbot f8852b73a5 Compress scripts/styles: 3.4-beta2-20521. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20521 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 20:58:24 +00:00
Daryl Koopersmith e5a53305a2 Theme Customizer: Remove unused 'template' argument from wp_customize_url. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20520 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 20:57:06 +00:00
Andrew Ozz 8f64e53493 Remove extra slash when opening the gallery thickbox popup from the visual editor, props SergeyBiryukov, fixes #19850
git-svn-id: https://develop.svn.wordpress.org/trunk@20519 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 20:43:28 +00:00
Daryl Koopersmith 4d7ec3fc4c Remove jQuery postMessage plugin, as it is no longer used (as of [20517]). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20518 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 20:32:13 +00:00
Daryl Koopersmith 27c4bc7b41 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: https://develop.svn.wordpress.org/trunk@20517 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 20:25:31 +00:00
bumpbot 3878924dc2 Compress scripts/styles: 3.4-beta2-20515.
git-svn-id: https://develop.svn.wordpress.org/trunk@20515 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 19:58:21 +00:00
Andrew Nacin 2aff808d88 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: https://develop.svn.wordpress.org/trunk@20513 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 19:06:22 +00:00
bumpbot 22d478cc4c Compress scripts/styles: 3.4-beta2-20512.
git-svn-id: https://develop.svn.wordpress.org/trunk@20512 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 18:58:19 +00:00
Daryl Koopersmith d12a811fdd Theme Customizer: Color control hover styles. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20510 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 18:01:20 +00:00
bumpbot 7f9590ce94 Compress scripts/styles: 3.4-beta2-20509.
git-svn-id: https://develop.svn.wordpress.org/trunk@20509 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 17:58:18 +00:00
Daryl Koopersmith 87e47358fb Theme Customizer: Remove redundant call to wp_enqueue_script. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20507 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 17:17:14 +00:00
Daryl Koopersmith ae95c22e27 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: https://develop.svn.wordpress.org/trunk@20506 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 17:13:31 +00:00
bumpbot d4e2dfabd0 Compress scripts/styles: 3.4-beta2-20505.
git-svn-id: https://develop.svn.wordpress.org/trunk@20505 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 14:58:20 +00:00
Daryl Koopersmith fc4837eb62 Theme Customizer: Improve markup/styles for opened color picker. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20504 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 14:32:05 +00:00
Andrew Nacin 56c8f84be7 Update swfobject
git-svn-id: https://develop.svn.wordpress.org/trunk@20501 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 13:36:32 +00:00
bumpbot 92df22f372 Compress scripts/styles: 3.4-beta2-20500.
git-svn-id: https://develop.svn.wordpress.org/trunk@20500 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-17 23:58:21 +00:00
Ryan Boren 9e2a50812f Update swfobject
git-svn-id: https://develop.svn.wordpress.org/trunk@20498 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-17 23:09:29 +00:00
Daryl Koopersmith c7c8d0a2d6 Theme Customizer: Improve color picker toggle styles and markup. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20497 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-17 22:58:58 +00:00
Andrew Nacin bfae415dd9 Move to admin.php?customize=on&theme=$stylesheet, rather than juggling both template and stylesheet values. see #19910.
Combine the setup_theme() and customize_previewing() methods. Remove the set_template() and set_stylesheet() methods. Add set_theme() method to WP_Customize to store the working WP_Theme object. We will use this for the stylesheet and template.

Use the WP_Theme display() method when preparing headers for display, not get() or the deprecate properties.



git-svn-id: https://develop.svn.wordpress.org/trunk@20496 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-17 21:43:47 +00:00
Daryl Koopersmith d6dc48bb27 Theme Customizer: Display 'Save and Activate' when switching themes. Add and properties to the WP_Customize class. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20495 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-17 20:49:39 +00:00