Commit Graph

9798 Commits

Author SHA1 Message Date
Andrew Nacin 43025c102b Introduce minimum_args() method in XML-RPC and leverage it to return errors for insufficient arguments for methods that are new in 3.4.
props maxcutler,  markoheijnen.
fixes #20394.



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



git-svn-id: https://develop.svn.wordpress.org/trunk@20632 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-28 18:48:10 +00:00
bumpbot caeec90610 Compress scripts/styles: 3.4-beta3-20629.
git-svn-id: https://develop.svn.wordpress.org/trunk@20629 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 20:58:24 +00:00
bumpbot 001e92a1f2 Compress scripts/styles: 3.4-beta3-20627.
git-svn-id: https://develop.svn.wordpress.org/trunk@20627 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 19:58:23 +00:00
Andrew Nacin a49867ae66 Don't call get_the_category() in get_the_category_list() unless the post type supports categories. props niallkennedy. fixes #19671.
git-svn-id: https://develop.svn.wordpress.org/trunk@20622 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 19:23:57 +00:00
bumpbot 7f0d1f1a6b Compress scripts/styles: 3.4-beta3-20620.
git-svn-id: https://develop.svn.wordpress.org/trunk@20620 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 18:58:22 +00:00
Andrew Nacin c6689953bb Add 'author' to rel attribute for get_the_author_link(). props sirzooro, CoenJacobs, Ipstenu. fixes #20047.
git-svn-id: https://develop.svn.wordpress.org/trunk@20615 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 18:17:41 +00:00
Andrew Nacin 5f902262d1 Return false in get_attached_file() when the file does not exist, rather than a path to the base uploads directory. props mikeschinkel. fixes #18855.
git-svn-id: https://develop.svn.wordpress.org/trunk@20613 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 16:08:58 +00:00
Andrew Nacin 07fce717e7 Use maybe_serialize() where appropriate. fixes #19617.
git-svn-id: https://develop.svn.wordpress.org/trunk@20612 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 15:57:51 +00:00
Andrew Nacin ef79a85f78 Run rawurlencode_deep() through the parsed query in canonical. (Introduces rawurlencode_deep().) props toppa for the initial patch. fixes #20143.
git-svn-id: https://develop.svn.wordpress.org/trunk@20611 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 15:40:00 +00:00
Andrew Nacin 98f553c3b2 Deprecate require_if_theme_supports(). Always require post-thumbnail-template.php. fixes #20556. fixes #20409.
git-svn-id: https://develop.svn.wordpress.org/trunk@20610 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 04:54:36 +00:00
Ryan Boren 9250cf00d4 XML-RPC featured image and media preparation cleanup.
* Introduce _prepare_media_item().
* Use it to prepare post_thumbnail info in _prepare_post().
* Also use _prepare_media_item() in wp_getMediaLibrary() and wp_getMediaItem() so that all media is prepared consistently and uses the same filters.

Props maxcutler
Fixes #20409


git-svn-id: https://develop.svn.wordpress.org/trunk@20608 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-26 20:56:52 +00:00
Andrew Nacin 5d550a9e59 Remove duplicated do_action wp.getPosts call. props maxcutler.
git-svn-id: https://develop.svn.wordpress.org/trunk@20607 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-26 16:28:06 +00:00
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