Commit Graph

9833 Commits

Author SHA1 Message Date
Andrew Nacin c38e6d3603 Remove extra underscore from four XML-RPC filters. props maxcutler. fixes #20549.
git-svn-id: https://develop.svn.wordpress.org/trunk@20604 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 22:28:43 +00:00
bumpbot b75a2d8d3d Compress scripts/styles: 3.4-beta3-20603.
git-svn-id: https://develop.svn.wordpress.org/trunk@20603 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:58:24 +00:00
Andrew Nacin 3cd8e8300f Update jQuery imgAreaSelect plugin to 0.9.8. props ocean90. fixes #19881.
git-svn-id: https://develop.svn.wordpress.org/trunk@20602 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:49:57 +00:00
Andrew Nacin c1dbe37e51 Bail from wp-langs.php if we don't already have a WordPress environment. fixes #20119.
git-svn-id: https://develop.svn.wordpress.org/trunk@20601 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:40:20 +00:00
Andrew Nacin 60e9ca67ec Initialize the WP_Customize class in a prefixed global. props mattonomics. fixes #20465.
git-svn-id: https://develop.svn.wordpress.org/trunk@20600 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:30:02 +00:00
Andrew Nacin 9cd594ef4f Remove touch-punch.dev.js, as .js is appropriate for an external, unmodified script. see #20014.
git-svn-id: https://develop.svn.wordpress.org/trunk@20599 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:17:55 +00:00
Daryl Koopersmith 092d648b8a Theme Customizer: Add statuses to the color and image controls. see #19910.
Move the color control from the switch statement to WP_Customize_Color_Control.
Markup improvements.


git-svn-id: https://develop.svn.wordpress.org/trunk@20598 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 21:03:29 +00:00
Andrew Nacin a14e7a1e8f Move to pixels to avoid off-by-one rendering in Chrome. props trepmal. fixes #20402.
git-svn-id: https://develop.svn.wordpress.org/trunk@20597 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 20:56:26 +00:00
Andrew Nacin b75eefda56 Remove wp-register.php.
* Don't remove it on update. If you have it now, you'll keep it. New installs won't get it.
 * Peform a redirect using rewrite + canonical to the new location, if the file doesn't exist.
props SergeyBiryukov.
fixes #18544.


git-svn-id: https://develop.svn.wordpress.org/trunk@20596 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 20:49:57 +00:00
Ryan Boren 577286e19d Always show search-results or search-no-results for searches, even archive searches. Props johnbillion. fixes #20435
git-svn-id: https://develop.svn.wordpress.org/trunk@20595 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 20:38:40 +00:00
Andrew Nacin af4b4bb752 Remove monospace from TinyMCE caption/alignment image edit popup. see #18311.
git-svn-id: https://develop.svn.wordpress.org/trunk@20593 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 19:54:04 +00:00
Andrew Nacin fca5a81af2 Remove support from WP_Theme for multiple screenshots until we bring it to the UI. fixes #20546.
git-svn-id: https://develop.svn.wordpress.org/trunk@20590 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 17:40:43 +00:00
Andrew Nacin b7101b038f Remove WP_Theme::is_child_theme() in favor of WP_Theme::parent(). see #20546.
git-svn-id: https://develop.svn.wordpress.org/trunk@20589 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 17:34:19 +00:00
Andrew Nacin ac64d57b03 Make WP_Theme::get_files() a general method for retrieving any file types, at any depth, optionally to include parent files. see #20546.
git-svn-id: https://develop.svn.wordpress.org/trunk@20588 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 17:31:39 +00:00
bumpbot 46a0b56c82 Compress scripts/styles: 3.4-beta3-20587.
git-svn-id: https://develop.svn.wordpress.org/trunk@20587 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 16:58:21 +00:00
Andrew Nacin 1b233e27af Documentation and visibility cleanups in WP_Theme.
* Declare `__toString()` as public.
 * Use parent() and error() internally, rather than the properties.
 * Add and correct inline documentation throughout.
 * Attempt to clarify that display() is superior to get().
see #20546, see #20103.



git-svn-id: https://develop.svn.wordpress.org/trunk@20586 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 16:37:49 +00:00
Daryl Koopersmith dfd80ddc57 Theme Customizer: For clarity, wp.customize.Setting.method to wp.customize.Setting.transport. Add WP_Customize_Setting->transport to allow setting the transport method via PHP. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20585 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 16:04:51 +00:00
Daryl Koopersmith 9c6a0682cc Theme Customizer: Preview the target theme during save to ensure all settings are properly registered. Temporarily revert to the active theme when running switch_theme. fixes #20508, see #19910.
Introduces WP_Customize->start_previewing_theme() and WP_Customize->stop_previewing_theme() to easily enable/disable the theme filters as needed.


git-svn-id: https://develop.svn.wordpress.org/trunk@20584 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 15:44:06 +00:00
Andrew Nacin 4998de66a0 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: https://develop.svn.wordpress.org/trunk@20583 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 14:26:31 +00:00
bumpbot 05654f8874 Compress scripts/styles: 3.4-beta3-20582.
git-svn-id: https://develop.svn.wordpress.org/trunk@20582 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 22:58:22 +00:00
Ryan Boren d3571040fb * 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: https://develop.svn.wordpress.org/trunk@20581 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 22:13:47 +00:00
Andrew Ozz f55dbdbd27 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: https://develop.svn.wordpress.org/trunk@20580 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 22:06:55 +00:00
bumpbot 1235945716 Compress scripts/styles: 3.4-beta3-20578.
git-svn-id: https://develop.svn.wordpress.org/trunk@20578 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 19:58:21 +00:00
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
Andrew Nacin 5028f1f6b0 Restore semicolons to the end of jQuery UI files, as they are needed when concatenating the files together. Will be adjusted upstream as well. props ocean90. fixes #20466.
git-svn-id: https://develop.svn.wordpress.org/trunk@20494 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-17 20:34:45 +00:00
Andrew Nacin c505adf210 jQuery UI 1.8.19. props ocean90. fixes #20466.
git-svn-id: https://develop.svn.wordpress.org/trunk@20492 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-17 16:49:17 +00:00
Andrew Nacin 6588a3fa0c No need for by-reference when calculating the queried object in PHP5. props SergeyBiryukov, duck_, fixes #20039.
git-svn-id: https://develop.svn.wordpress.org/trunk@20491 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-17 03:41:07 +00:00
bumpbot 7593627d19 Compress scripts/styles: 3.4-beta2-20489.
git-svn-id: https://develop.svn.wordpress.org/trunk@20489 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-16 23:58:25 +00:00
Daryl Koopersmith bb5254fe36 Theme Customizer: Integrate with browser history. Use window.history by default, with window.onhashchange as a fallback. fixes #20337, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20488 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-16 23:07:23 +00:00
Andrew Nacin 70431f074c Escape special characters when outputting DB failures. see #13839.
git-svn-id: https://develop.svn.wordpress.org/trunk@20483 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-16 21:55:47 +00:00
Andrew Nacin aa450a1d3a Add arrays together in WP_Theme::get_allowed() to preserve keys (theme names could be numeric). props ocean90, fixes #15306.
git-svn-id: https://develop.svn.wordpress.org/trunk@20481 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-16 18:37:57 +00:00
Andrew Nacin f107d5e049 Fix typo in filter name for wp_die() APP request handler. props benbalter, fixes #20457.
git-svn-id: https://develop.svn.wordpress.org/trunk@20480 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-16 16:15:18 +00:00
bumpbot 1fc608b2e0 Compress scripts/styles: 3.4-beta2-20478.
git-svn-id: https://develop.svn.wordpress.org/trunk@20478 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-16 14:58:23 +00:00
Andrew Nacin 266a785f77 Theme Customizer: Stick to wp_customize_url() instead of wp_customize_href(). Switch argument order so it is stylesheet-template. (Template is hypothetically optional, but the function will not support that.) see #19910.
Move to ->display('Name'), as ->get('Name') is a raw, untranslated version of the header.



git-svn-id: https://develop.svn.wordpress.org/trunk@20477 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-16 14:36:47 +00:00
Daryl Koopersmith a43958baeb Theme Customizer: Allow the customize iframe to be accessed directly (with full feature support). see #19910.
* Move the 'Return to Manage Themes' and 'Collapse Sidebar' actions from themes.php to customize-controls.php.
* Create a postMessage connection between themes.php and customize-controls.php.
* Allow the theme customizer to be accessed directly (independent of themes.php and the customize loader).
* Add wp_customize_href() and wp_customize_url().
* Remove wp_customize_loader(). To include the loader, use wp_enqueue_script( 'customize-loader' ).
* The theme customizer now requires postMessage browser support.
* Add .hide-if-customize and .hide-if-no-customize CSS classes.
* Clean up customize-preview.js.

git-svn-id: https://develop.svn.wordpress.org/trunk@20476 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-16 14:02:28 +00:00
Andrew Nacin 12fdeee2d2 Move from $taxonomy_name to $taxonomy in XML-RPC for consistency with the rest of the core APIs. props maxcutler, fixes #20397.
git-svn-id: https://develop.svn.wordpress.org/trunk@20469 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-15 16:47:31 +00:00
bumpbot c6317cb5fe Compress scripts/styles: 3.4-beta2-20468.
git-svn-id: https://develop.svn.wordpress.org/trunk@20468 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-14 19:58:19 +00:00
Andrew Ozz ed87c7abd1 Plupload: no need to reset the queue when one file fails (handled internally), see #20422
git-svn-id: https://develop.svn.wordpress.org/trunk@20467 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-14 19:51:55 +00:00
Jon Cave c796066fac Recognise protocols other than "http" in _links_add_base(). Props SergeyBiryukov. Fixes #19665.
Previously "https" URLs used in plugin READMEs displayed by install_plugin_information() would have the plugin's extend URL prepended.


git-svn-id: https://develop.svn.wordpress.org/trunk@20466 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-14 19:14:10 +00:00
Jon Cave 7953f9e753 Fix typo and terminology in Twenty Eleven's header template. Props JarretC. Fixes #20442.
git-svn-id: https://develop.svn.wordpress.org/trunk@20465 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-14 19:02:04 +00:00
bumpbot 0081ba2954 Compress scripts/styles: 3.4-beta2-20464.
git-svn-id: https://develop.svn.wordpress.org/trunk@20464 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-13 23:58:20 +00:00
Andrew Ozz 1380c985cf Update Plupload to 1.5.4, props SergeyBiryukov, fixes #20422
git-svn-id: https://develop.svn.wordpress.org/trunk@20463 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-13 23:23:13 +00:00
Andrew Nacin 9d5156c1bb Move from 'featured image' to 'post thumbnail' in the XML-RPC API. props maxcutler, fixes #20396.
git-svn-id: https://develop.svn.wordpress.org/trunk@20462 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-13 20:23:31 +00:00
Ryan Boren 8caae7f602 Don't update a blog's last_updated time for all post deletions. Update only when published posts are deleted.
Props SergeyBiryukov
fixes #20433


git-svn-id: https://develop.svn.wordpress.org/trunk@20461 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-13 17:30:37 +00:00
bumpbot acfa043b2a Compress scripts/styles: 3.4-beta2-20460.
git-svn-id: https://develop.svn.wordpress.org/trunk@20460 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 22:58:24 +00:00
bumpbot 094fca576e Compress scripts/styles: 3.4-beta2-20457.
git-svn-id: https://develop.svn.wordpress.org/trunk@20457 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 21:58:23 +00:00
Daryl Koopersmith 6685c0fd9d Theme Customizer: RTL styles. props ocean90. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20456 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 21:53:19 +00:00
Ryan Boren d1100bacb4 Schedule auto-draft deletion from post-new.php instead of from admin.php. This provides better throttling for large multisite installs and reduces the risk of a delete avalanche.
fixes #19663


git-svn-id: https://develop.svn.wordpress.org/trunk@20453 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 18:49:48 +00:00
bumpbot c08d986825 Compress scripts/styles: 3.4-beta2-20452.
git-svn-id: https://develop.svn.wordpress.org/trunk@20452 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 17:58:20 +00:00
Andrew Ozz fe2749eedd Add RTL/LTR button to the html editor, props yoavf, fixes #13070
git-svn-id: https://develop.svn.wordpress.org/trunk@20451 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 17:52:54 +00:00
Andrew Nacin bae5393651 3.4-beta2.
git-svn-id: https://develop.svn.wordpress.org/trunk@20450 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 03:43:19 +00:00
Andrew Ozz e032e94c4f Don't hide links to the upload form and show an error for mobile devices that cannot upload, see #20410
git-svn-id: https://develop.svn.wordpress.org/trunk@20449 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 00:16:37 +00:00
Andrew Nacin 5ff62a4351 Compress scripts/styles: 3.4-beta1-20448.
git-svn-id: https://develop.svn.wordpress.org/trunk@20448 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 22:03:24 +00:00
Ryan Boren 70b6ecacd3 Don't do a canonical redirect for singular paged pages when on the front-page. This was breaking pagination on sites with a static home page. Props batmoo. see #20385
git-svn-id: https://develop.svn.wordpress.org/trunk@20444 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 21:18:40 +00:00
Ryan Boren 1df5a7cf30 Don't attempt to make links inside attributes clickable. Props duck_ azaozz. fixes #20418
git-svn-id: https://develop.svn.wordpress.org/trunk@20443 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 21:14:13 +00:00
Ryan Boren beb1d196b3 Add terminal punctuation to some signup error messages. Props dllh. fixes #20332
git-svn-id: https://develop.svn.wordpress.org/trunk@20441 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 20:41:59 +00:00
Ryan Boren 03512f97e8 Move deletion of auto-draft posts to the wp_scheduled_delete cron function. Props mgolawala. fixes #19663
git-svn-id: https://develop.svn.wordpress.org/trunk@20440 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 20:39:09 +00:00
Andrew Nacin beac0e2e0f Add view_item to the phpdoc for get_taxonomy_labels(). props Caspie. fixes #20406.
git-svn-id: https://develop.svn.wordpress.org/trunk@20436 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 20:08:30 +00:00
Andrew Nacin 1909f3fbeb Use the metadata API rather than raw queries and direct do_action calls. see #20417.
git-svn-id: https://develop.svn.wordpress.org/trunk@20435 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 20:02:39 +00:00
bumpbot 45081349a3 Compress scripts/styles: 3.4-beta1-20434.
git-svn-id: https://develop.svn.wordpress.org/trunk@20434 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 02:58:23 +00:00
Andrew Ozz 3b9e5468e1 Add the jQuery UI Touch Punch plugin to handle dragging on mobile devices, props georgestephanis, see #20014
git-svn-id: https://develop.svn.wordpress.org/trunk@20433 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 02:20:51 +00:00
bumpbot 8b4f1495f3 Compress scripts/styles: 3.4-beta1-20429.
git-svn-id: https://develop.svn.wordpress.org/trunk@20429 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 00:58:23 +00:00
Andrew Ozz 2b1eb4f028 Fix inserting links in the HTML editor in IE9, fixes #19528
git-svn-id: https://develop.svn.wordpress.org/trunk@20428 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 00:20:42 +00:00
Jon Cave c3a7874f33 Don't override the $current_user global in get_currentuserinfo() on an XML-RPC request
if it's non-empty. Fixes capabilities checks for XML-RPC requests. See #20372.


git-svn-id: https://develop.svn.wordpress.org/trunk@20424 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 16:19:53 +00:00
Ryan Boren 27592057cd Pass post_type to clean_post_cache() instead of attempting to fetch a post object since the post may have been deleted.
Props leewillis77
see #19690


git-svn-id: https://develop.svn.wordpress.org/trunk@20423 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 16:09:44 +00:00
Andrew Ozz 69eca59eba Consistently remove links to media-new.php for mobile devices, props SergeyBiryukov, see #20405
git-svn-id: https://develop.svn.wordpress.org/trunk@20422 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 03:18:48 +00:00
bumpbot 0a656052ab Compress scripts/styles: 3.4-beta1-20421.
git-svn-id: https://develop.svn.wordpress.org/trunk@20421 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 02:58:27 +00:00
Daryl Koopersmith 955ca76116 Replace all instances of thickbox theme preview with the theme customizer. fixes #20404.
* Use theme customizer in theme install/update screens.
* Separate the customize loader from the customizer. Use wp_customize_loader() to include the loader script and markup.
* Deprecated: wp-admin/js/theme-preview.js is now no longer used by core.

git-svn-id: https://develop.svn.wordpress.org/trunk@20419 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 02:25:03 +00:00
Andrew Ozz bce0d37a67 Introduce wp_is_mobile() and use it instead of $is_iphone global, see #20014
git-svn-id: https://develop.svn.wordpress.org/trunk@20417 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 01:19:30 +00:00
Ryan Boren 781f632a82 When fetching the user in get_currentuserinfo(), make sure it is a valid WP_User object. If it is stdClass, upgrade it to WP_User. If it is WP_Error, an int, or anything else, set the current user to ID 0.
In wp_set_current_user(), return the current user global only if it is a WP_User object. If it is not, fall through and go about setting it up properly.

Formatting cleanups for both functions.

see #20372


git-svn-id: https://develop.svn.wordpress.org/trunk@20410 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 22:01:07 +00:00
Mark Jaquith 5d73d82fc2 Replace <br/> and <br> in addition to <br /> in clean_pre(). fixes #20400
git-svn-id: https://develop.svn.wordpress.org/trunk@20409 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 20:05:47 +00:00
Andrew Nacin fa8e5c2897 Remove duplicated featured_image block. props koke.
git-svn-id: https://develop.svn.wordpress.org/trunk@20406 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 15:28:07 +00:00
bumpbot 099576ac0f Compress scripts/styles: 3.4-beta1-20405.
git-svn-id: https://develop.svn.wordpress.org/trunk@20405 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-08 21:58:20 +00:00
Daryl Koopersmith bfa86223dd Theme Customizer: Add a 'previewing' notice by the theme name. Reduce padding and size on section titles, add a border between section titles and content to better indicate the title as a click target. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20404 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-08 21:17:46 +00:00
Jon Cave 9e3be2f747 Prevent notice "Undefined variable: struct" in mt_getRecentPostTitles when posts exist, but none of them are editable. Fixes #20393.
git-svn-id: https://develop.svn.wordpress.org/trunk@20403 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-08 09:40:04 +00:00
Andrew Nacin 0a352eed01 wp_set_current_user(0) for XMLRPC_REQUEST in get_currentuserinfo(). Ensures that wp_get_current_user() always returns a WP_User object. see #20372.
git-svn-id: https://develop.svn.wordpress.org/trunk@20402 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-08 01:06:44 +00:00
Dion Hulse 95555955d2 WP_HTTP: Curl: $theHeaders is an array, not an object, introduced in [20370]. Props kurtpayne. Fixes #20389 See #20219
git-svn-id: https://develop.svn.wordpress.org/trunk@20399 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 07:16:30 +00:00
Mark Jaquith 38737dd530 Handle page= and feed= query strings in redirect_guess_404_permalink(). fixes #20387
git-svn-id: https://develop.svn.wordpress.org/trunk@20398 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 05:39:08 +00:00
Mark Jaquith b033c7c6fa Properly handle paged permalink URLs even when we are not already 301ing. fixes #20385
git-svn-id: https://develop.svn.wordpress.org/trunk@20397 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 05:18:50 +00:00
Mark Jaquith c435aab67e Fix a bunch of individual post comments feeds canonical redirects. Fixes three unit tests. fixes #20384
git-svn-id: https://develop.svn.wordpress.org/trunk@20396 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 05:02:45 +00:00
Mark Jaquith b3aef79df3 Better removal of query args in canonical redirects. Only remove them when they are not present in the redirect_url. fixes #20374
git-svn-id: https://develop.svn.wordpress.org/trunk@20395 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 01:03:55 +00:00
bumpbot e701dd2d8c Compress scripts/styles: 3.4-beta1-20394.
git-svn-id: https://develop.svn.wordpress.org/trunk@20394 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 00:58:21 +00:00
Daryl Koopersmith dfe7dd824e Theme Customizer: Remove small screenshot from theme title bar. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20393 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 00:33:36 +00:00
Daryl Koopersmith f26e53d4d9 Theme Customizer: String change to clarify choosing a static page (remove 'select below'). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20392 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 00:18:02 +00:00
Daryl Koopersmith 315d6e31e3 Theme Customizer: Move 'collapse' button to footer and add a visible text label. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20391 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 00:10:22 +00:00
bumpbot 21490033fb Compress scripts/styles: 3.4-beta1-20390. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20390 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 23:58:19 +00:00
Andrew Ozz c2e3754cf9 Add the "aside,audio,canvas,figcaption,figure,nav,output,video" tags that shouldn't be wrapped in <p> to the internal blocks list in TinyMCE, fixes #20381
git-svn-id: https://develop.svn.wordpress.org/trunk@20389 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 22:59:22 +00:00
Mark Jaquith 9b766fa0b8 Be a bit more conservative in which args are stripped after redirect_guess_404_permalink(). see #20380.
git-svn-id: https://develop.svn.wordpress.org/trunk@20386 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 21:19:28 +00:00
Mark Jaquith 22031a0765 Strip p, page_id, attachment_id, post_type, pagename, and name from redirect query if we get a hit on a 404-guessed permalink. fixes #20374
git-svn-id: https://develop.svn.wordpress.org/trunk@20380 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 19:49:34 +00:00
Ryan Boren 6f9ceb2326 Introduce WP_User::exists(). see #20372
git-svn-id: https://develop.svn.wordpress.org/trunk@20378 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 19:18:45 +00:00
Andrew Nacin 6e3ed8bbf9 Internally cache themes inside wp_get_themes() by theme_root as well as stylesheet, to avoid conflicts with future calls to wp_get_themes(). Always return only the last stylesheet found, as before. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20375 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 20:38:42 +00:00
Andrew Nacin 596c72cafa Child theme files need to override parent theme files. The array_merge() arguments are swapped. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20374 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 20:36:34 +00:00
Peter Westwood 7ffdb1a514 Fix typo in [20372] - See #19922 props SergeyBiryukov.
git-svn-id: https://develop.svn.wordpress.org/trunk@20373 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 15:34:28 +00:00
Peter Westwood 35cfb293e7 HTTP: Don't force cookie values to be urlencoded because it breaks usage of cookies in some scenarios like the LiveJournal Importer. Instead add a filter for a plugin to use if it really wants to have the cookie mangled. Fixes #19922 props pw201, dllh and kurtpayne.
git-svn-id: https://develop.svn.wordpress.org/trunk@20372 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 15:17:34 +00:00
Dion Hulse 20141db4eb WP_HTTP: Curl: Correct a typo in [20208] causing failed curl requests not to return a WP_Error under certain situations. Props SergeyBiryukov. Fixes #20219
git-svn-id: https://develop.svn.wordpress.org/trunk@20370 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 11:58:04 +00:00
Ryan Boren 9f64f9aa35 Beta 1 bump
git-svn-id: https://develop.svn.wordpress.org/trunk@20366 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:46:45 +00:00
bumpbot dcda0d1c10 Compress scripts/styles: 3.4-alpha-20365.
git-svn-id: https://develop.svn.wordpress.org/trunk@20365 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:34:01 +00:00
Andrew Nacin f9a131231d Always return a WP_Theme object from wp_get_theme(). Check \$theme->exists() or \$theme->errors() to confirm the requested theme actually exists. see #20361.
git-svn-id: https://develop.svn.wordpress.org/trunk@20363 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:05:49 +00:00
bumpbot 897d692c6d Compress scripts/styles: 3.4-alpha-20361.
git-svn-id: https://develop.svn.wordpress.org/trunk@20361 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 00:58:26 +00:00
Ryan Boren 485e7bc261 Allow selecting custom header and background images from the media library. Props aaroncampbell, sabreuse, greuben. fixes #19840
git-svn-id: https://develop.svn.wordpress.org/trunk@20358 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 00:20:28 +00:00
bumpbot f027063f41 Compress scripts/styles: 3.4-alpha-20357.
git-svn-id: https://develop.svn.wordpress.org/trunk@20357 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 23:58:25 +00:00