bumpbot
94789b3b7c
Compress scripts/styles: 3.4-alpha-20284.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20284 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 13:58:30 +00:00
Andrew Nacin
f0a12b86ea
Move editor-buttons.css to editor.css to reflect its current use. see #19843 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20283 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 13:43:52 +00:00
Jon Cave
4507ff0b4a
Fix typo: remove extraneous "@". See r20269.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20281 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 13:37:16 +00:00
bumpbot
d079275e8c
Compress scripts/styles: 3.4-alpha-20280.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20280 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 04:58:29 +00:00
Mark Jaquith
461e24643c
Autocomplete site names in Network Admin. More user completion areas. props Japh, DrewAPicture. see #19810 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20279 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 04:54:58 +00:00
Daryl Koopersmith
e0773710ec
Theme Customizer: First pass at image controls. Use header_image as the initial case. Add a 'removed' control param for upload/image controls to map 'removed' to a value other than the empty string. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20278 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 04:35:13 +00:00
bumpbot
1c6f00b0f3
Compress scripts/styles: 3.4-alpha-20277.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20277 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 01:58:28 +00:00
Daryl Koopersmith
b0f973d884
Theme Customizer: Add WP_Customizer_Setting->control_params, and wp.customize.Control.params to allow settings to pass arbitrary parameters to controls. Add the 'context' parameter to wp.customize.UploadControl. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20276 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 01:02:29 +00:00
bumpbot
5e3e0b0404
Compress scripts/styles: 3.4-alpha-20275.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20275 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 22:58:27 +00:00
Daryl Koopersmith
c41689115f
Theme Customizer: Change 'Random Image' control to be a proper 'Header Image' control. First step to integrating header images. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20274 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 22:43:00 +00:00
bumpbot
b87fb24f21
Compress scripts/styles: 3.4-alpha-20273.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20273 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 21:58:28 +00:00
Peter Westwood
a42caf87b4
XMLRPC: Add new wp.getPostType and wp.getPostTypes apis. See #18436 props maxcutler, markoheijnen and nprasath002.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20271 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 17:53:14 +00:00
Peter Westwood
d605d742d5
XMLRPC: Add support for Feature Images to the new wp.xxxPost apis. See #18429 props maxcutler and markoheijen.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20270 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 15:35:44 +00:00
Andrew Nacin
f9d787fae1
Deprecate get_theme_data(). Use wp_get_theme() instead. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20269 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 10:21:24 +00:00
Daryl Koopersmith
844d95b6fb
Theme Customizer: Use a more complex name for the save parameter to prevent the customizer from clashing with plugins. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20266 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 00:16:46 +00:00
Ryan Boren
570cf18255
s/background/header/ in add_custom_image_header() deprecated function. see #20249
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20265 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 19:31:03 +00:00
bumpbot
8f741e4f24
Compress scripts/styles: 3.4-alpha-20264.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20264 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 08:58:23 +00:00
Daryl Koopersmith
95ab797033
Theme Customizer: Add background repeat, position, and attachment settings. Change visibility parameter to accept a string or array( , ). see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20263 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 08:07:44 +00:00
bumpbot
c22a8a6cf6
Compress scripts/styles: 3.4-alpha-20262.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20262 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:58:24 +00:00
Daryl Koopersmith
f28d57454f
Theme Customizer: Only show uploader 'remove' links when there is an image to remove. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20261 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:30:44 +00:00
Daryl Koopersmith
7dc476bd8b
Theme Customizer: Add a WP_Customize_Setting->visibility parameter to show/hide a control based upon the value of another control. Also shifts rendering the setting wrapper element into WP_Customize_Setting->render() and adds WP_Customize_Setting->render_content(). see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20260 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:17:26 +00:00
Daryl Koopersmith
f561219e0b
Theme Customizer: Ensure background_color and background_image exist instead of blindly attempting to access their controls. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20259 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:03:44 +00:00
bumpbot
b1b507b2a9
Compress scripts/styles: 3.4-alpha-20258.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20258 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 06:58:22 +00:00
Daryl Koopersmith
a2e813571e
Theme Customizer: In JavaScript, add the ability to execute a callback once a set of values have been initialized. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20257 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 06:52:44 +00:00
bumpbot
5c54b48c3c
Compress scripts/styles: 3.4-alpha-20255.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20255 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 04:58:24 +00:00
Daryl Koopersmith
999b57a813
Theme Customizer: Make dropdown-pages a native customize control. see #19910 .
...
While the customize_render_control- action has been removed, we could still accomplish this with the customize_render_setting action. That said, in this case, avoiding native integration was a matter of minor semantics that ended in the same result.
git-svn-id: https://develop.svn.wordpress.org/trunk@20254 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 04:14:26 +00:00
Daryl Koopersmith
44880bceb5
Theme Customizer: Plupload does not support objects in its multipart_params setting (which causes exceptions in Firefox). Use multidimensional keys to circumnavigate this issue. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20253 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 03:58:06 +00:00
bumpbot
fa15fe4754
Compress scripts/styles: 3.4-alpha-20251.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20252 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 02:58:22 +00:00
Daryl Koopersmith
e678aca6f4
Theme Customizer: If a section has no settings, prevent it from being rendered. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20251 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 02:58:07 +00:00
Daryl Koopersmith
ee5dcc012f
Theme Customizer: Do not attempt to grab the contents of the preview iframe to populate the window title. Reverts plugins repo revision 508947. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20250 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 02:39:03 +00:00
bumpbot
d26c70be9f
Compress scripts/styles: 3.4-alpha-20249.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20249 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 22:58:23 +00:00
Daryl Koopersmith
ca4b8f3eac
Theme Customizer: Numerous API refinements and bugfixes. Add a theme_supports check for header_textcolor. see #19910 .
...
* prepare_controls() now removes any settings and sections that return false for check_capabilities().
* Added maybe_render() methods to both settings and sections that call the protected render() methods.
* Stop firing front-end preview functionality when rendering the controls.
* Merged the WP_Customize_Setting->_render_type() method into WP_Customize_Setting->render().
* Removed the 'customize_render_control-' hook; use 'customize_render_setting' instead.
* Added a property to sections and settings so they no longer rely on the global. Hooray for dependency injection.
* Shifted calls to WP_Customize_Setting->enqueue() to the 'customize_controls_enqueue_scripts' action.
* Added a theme_supports check for the header_textcolor setting.
git-svn-id: https://develop.svn.wordpress.org/trunk@20248 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 22:55:43 +00:00
Andrew Nacin
c885e3530a
Only pass arguments from the deprecated add_custom_background() or add_custom_image_header() to add_theme_support() if the argument was actually supplied. With [20212], default argument values (like wp-head-callback=_custom_background_cb) only work for arguments that were not explicitly set, so don't set empty values. see #20249 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20246 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 22:21:22 +00:00
Jon Cave
9c5f3d0243
Remove dead code from the Links widget. Props pavelevap, SergeyBiryukov. Fixes #19179 .
...
The widget() method isn't called on the admin screen.
git-svn-id: https://develop.svn.wordpress.org/trunk@20245 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 21:01:05 +00:00
bumpbot
88482603e4
Compress scripts/styles: 3.4-alpha-20244.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20244 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 20:58:20 +00:00
Andrew Nacin
b7e526d2ce
Introduce display_header_text(). props chipbennett for initial patch. see #18887 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20240 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 18:48:57 +00:00
Jon Cave
33e990c8dd
Remove unused $field_no_prefix variable and associated documentation from sanitize_user_field(). Fixes #20274 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20239 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 17:33:11 +00:00
Andrew Nacin
1872a4a8fc
WP_Theme::get_allowed_on_network() doesn't take a blog_id argument. props duck_. Restore static declaration accidentally removed in [20193]. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20238 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 17:32:28 +00:00
bumpbot
110ff8c995
Compress scripts/styles: 3.4-alpha-20237.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20237 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 16:58:20 +00:00
Jon Cave
65bb406853
We use colon as the case separator.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20235 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 15:04:52 +00:00
Jon Cave
8d9d86352a
Pass post_type through sanitize_key() instead of sanitize_user(). Fixes #20202 .
...
For consistency with the registration API and because it does less work.
git-svn-id: https://develop.svn.wordpress.org/trunk@20234 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 15:04:00 +00:00
Andrew Nacin
cfb4179f87
Sanitize Theme URI and Author URI in WP_Theme with esc_url_raw. Escape with esc_url on display. see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20233 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 14:51:10 +00:00
Daryl Koopersmith
c6043b2fa2
Theme Customizer: Improve WP_Customize_Setting->check_capabilities(). Add support for arrays in WP_Customize_Setting->capability and WP_Customize_Setting->theme_supports. Don't bail when WP_Customize_Setting->capability is empty. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20232 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 04:59:57 +00:00
Andrew Nacin
67f21026b9
Callbacks for custom headers and custom backgrounds registered through add_theme_support() are now wp-head-callback, admin-head-callback, and admin-preview-callback. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20231 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 03:36:17 +00:00
Andrew Nacin
6caf12d0bc
Remove enqueue of wp_plupload_default_settings() from admin_enqueue_scripts(). For now, it needs to be enqueued selectively when needed. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20230 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 03:21:07 +00:00
Andrew Nacin
1c04dd0576
In new add_theme_support() logic, fix logic inversion, define HEADER_IMAGE in a simpler way, and force args to be an array. see #20249 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20221 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-20 20:34:49 +00:00
Andrew Nacin
388dacf0e2
Don't suggest only add_theme_support('custom-background') -- suggest it with $args even if it wasn't called with any arguments. In particular, default-color should be used by themes as a good user experience improvement. see #20249 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20220 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-20 19:06:43 +00:00
Andrew Nacin
4642f9d093
Deprecate add_custom_image_header(), remove_custom_image_header(), add_custom_background(), remove_custom_background(). Replacements are add_theme_support() and remove_theme_support(). see #20249 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20218 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-19 21:14:41 +00:00
Ryan Boren
83604c7fbb
Don't generate a query when the all_page_ids cache is an empty array. An empty array is a valid cache value when no pages are present. Avoids a useless query for sites with no pages. Props andy. see #20236
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20216 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-19 19:09:03 +00:00
Ryan Boren
d89a24a902
Consolidate some strings. Props ramiy. see #20216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20215 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-19 19:04:49 +00:00