Commit Graph

9625 Commits

Author SHA1 Message Date
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 Ozz f880b3544d Pluck a tab (whitespace), props SergeyBiryukov, see #20369
git-svn-id: https://develop.svn.wordpress.org/trunk@20377 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 18:26:14 +00:00
Andrew Ozz 80df7fe2cf Fix second callback when filtering caption text for shortcode, props SergeyBiryukov, fixes #20369
git-svn-id: https://develop.svn.wordpress.org/trunk@20376 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 17:38:49 +00:00
bumpbot c16ba6d8c7 Compress scripts/styles: 3.4-beta1-20370.
git-svn-id: https://develop.svn.wordpress.org/trunk@20371 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 11:58:23 +00:00
Jon Cave 8578804f80 Remove duplicate JavaScript. Props aaroncampbell. See #19840, fixes #20363.
git-svn-id: https://develop.svn.wordpress.org/trunk@20369 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 11:14:32 +00:00
bumpbot 62c705e044 Compress scripts/styles: 3.4-beta1-20368.
git-svn-id: https://develop.svn.wordpress.org/trunk@20368 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:57:33 +00:00
Andrew Ozz 214f1e8672 Dashboard icon back in, see #20293
git-svn-id: https://develop.svn.wordpress.org/trunk@20367 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:55:35 +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 Ozz 130b4f2645 More specific selectors for the 2x images take 2, don't specify background-size for the 1x background, see #20293
git-svn-id: https://develop.svn.wordpress.org/trunk@20364 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:30:06 +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
Andrew Ozz 7ceb8f1a68 More specific selectors for the 2x images, see #20293
git-svn-id: https://develop.svn.wordpress.org/trunk@20362 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:02:36 +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
Andrew Nacin 7e614e2ff1 Empty media-gallery.js - bumpbot hungry. see [20359].
git-svn-id: https://develop.svn.wordpress.org/trunk@20360 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 00:23:12 +00:00
Ryan Boren 5ca4c46c85 Add media-gallery js. see #19840
git-svn-id: https://develop.svn.wordpress.org/trunk@20359 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 00:21:28 +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
Andrew Ozz f62e952ae9 Double-size icons and WordPress logo for retina displays, props chexee, props empireoflight, props iammattthomas, see #20293
git-svn-id: https://develop.svn.wordpress.org/trunk@20356 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 23:02:51 +00:00
bumpbot 7f938af8c5 Compress scripts/styles: 3.4-alpha-20355.
git-svn-id: https://develop.svn.wordpress.org/trunk@20355 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 21:58:23 +00:00
Daryl Koopersmith 786145ebbf Theme Customizer: Add a link to customize the current theme. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20354 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 21:41:51 +00:00
Daryl Koopersmith 31caea7b9b Theme Customizer: Improve the customize loader and themes list table markup. see #19910.
* Use event delegation for triggering the customize loader (so we play nicely with infinite scroll).
* Use data attributes on .load-customize links instead of parsing the href.
* Properly translate the 'Customize' string instead of injecting the replacement with JS.

git-svn-id: https://develop.svn.wordpress.org/trunk@20352 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 21:02:29 +00:00
Jon Cave d90bb2403a Make comment type filter persist across views (e.g. approved, spam) of the list of comments. Fixes #20281.
git-svn-id: https://develop.svn.wordpress.org/trunk@20350 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 17:36:23 +00:00
Jon Cave ecd1caa054 Add some missing documentation and fix a couple of typos. Props roscius. Fixes #19756.
git-svn-id: https://develop.svn.wordpress.org/trunk@20349 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 17:32:03 +00:00
bumpbot 0d6710383f Compress scripts/styles: 3.4-alpha-20348.
git-svn-id: https://develop.svn.wordpress.org/trunk@20348 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 02:58:22 +00:00
Andrew Ozz 8df58a787f RTL for the responsive columns, see #20015
git-svn-id: https://develop.svn.wordpress.org/trunk@20347 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 02:46:38 +00:00
Andrew Ozz 9dcc77d9c1 Make the layout of the tables on edit link screen "liquid" so they can be shown on the side, see #20015
git-svn-id: https://develop.svn.wordpress.org/trunk@20346 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 02:45:30 +00:00
bumpbot 3a460964ae Compress scripts/styles: 3.4-alpha-20339.
git-svn-id: https://develop.svn.wordpress.org/trunk@20339 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-01 22:58:18 +00:00
Andrew Ozz ffbdfe9b06 Fix getting the checked radio button when attaching orphan attachments, props solarissmoke SergeyBiryukov, fixes #16655
git-svn-id: https://develop.svn.wordpress.org/trunk@20338 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-01 22:46:29 +00:00
bumpbot c4e65f5f3f Compress scripts/styles: 3.4-alpha-20336.
git-svn-id: https://develop.svn.wordpress.org/trunk@20336 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-31 17:58:19 +00:00
Andrew Ozz 603565a190 Switch to one column on the edit/write screens at 850px (the editor becomes unusable at narrower screens and two columns), see #20015
git-svn-id: https://develop.svn.wordpress.org/trunk@20335 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-31 17:00:08 +00:00
Andrew Nacin 467905e308 Use 'Keyword' instead of 'Term' in the search type selector in the plugin and theme installers. see #19619.
git-svn-id: https://develop.svn.wordpress.org/trunk@20333 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 21:17:22 +00:00
Andrew Nacin 48c5af2ac0 Clean up cap checks for autocompletes for sites and users in a network. see #19810.
git-svn-id: https://develop.svn.wordpress.org/trunk@20332 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 21:04:48 +00:00
Andrew Nacin 47a29d2c26 Ensure we get a theme back from wp_get_theme() before checking ->errors(). see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20331 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 16:35:51 +00:00
Andrew Nacin 8abd8624be Clear WP_Theme caches on update. fixes #20331.
git-svn-id: https://develop.svn.wordpress.org/trunk@20329 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 14:46:52 +00:00
Andrew Nacin 09f946105d Clear theme cache after editing. Reduce default cache persistence to 1800. (Could go lower.) see #20331.
git-svn-id: https://develop.svn.wordpress.org/trunk@20328 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 14:39:05 +00:00
Daryl Koopersmith bdee6c8e15 Theme Customizer: Move upload and image controls to subclasses. see #19910.
Instead of grouping together every control parameter into a single  array and passing them all to the JS, use subclasses with custom parameters to implement additional PHP functionality and the  parameter to send only the necessary variables to the JavaScript control.

Replaces WP_Customize_Control->control_params with WP_Customize_Control->json and WP_Customize_Control->to_json(). The to_json() method refreshes the json array passed to the JavaScript control (set to control.param by default).

Creates WP_Customize_Upload_Control and WP_Customize_Image_Control.

git-svn-id: https://develop.svn.wordpress.org/trunk@20319 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 06:35:54 +00:00
Andrew Nacin 50346e7955 Always set WP_Theme->template even when there is an error and we have no idea what the template is. (Assume it is the stylesheet.) Prevents a number of issues including WP_Theme->is_child_theme() lying. Tidy the theme editor for broken themes and themes with no templates (PHP files), or no template (parent), or are broken. Allow broken themes to be edited. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20315 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 04:16:17 +00:00
Andrew Nacin c654d0ccf0 urldecode() the incoming $file in the theme editor. see [20313] when the encode was added. see #2994 for the original bug report. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20314 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 03:34:51 +00:00
Andrew Nacin 3b38b4a124 Rewrite theme-editor.php to use the new WP_Theme API. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20313 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 03:00:38 +00:00
Dion Hulse c024ae710c WP_Filesystem: PemFTP: Detect dl() being disabled in order to avoid any fatals which may be produced when the Sockets extension is not available. Props to kurtpayne for initial patch, Fixes #20187
git-svn-id: https://develop.svn.wordpress.org/trunk@20311 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 02:15:06 +00:00
Andrew Nacin eeee02b520 Revert label change in [20282]. see #18311.
git-svn-id: https://develop.svn.wordpress.org/trunk@20310 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 20:32:29 +00:00
Mark Jaquith 5fa84e63ec Wrap attachment delete link in <p> for semantics and alignment. props aaroncampbell, lancewillett. fixes #19785
git-svn-id: https://develop.svn.wordpress.org/trunk@20309 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 20:28:34 +00:00
Andrew Ozz f615043fea Improve _fix_attachment_links(), replace attachment URLs with the real permalink only for published posts, re-save only when there are changes, see #13429
git-svn-id: https://develop.svn.wordpress.org/trunk@20308 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 16:02:12 +00:00
bumpbot 4337bd15e7 Compress scripts/styles: 3.4-alpha-20294.
git-svn-id: https://develop.svn.wordpress.org/trunk@20294 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 02:58:21 +00:00
Andrew Ozz 721da35048 Don't show dashed border on empty postbox containers under the editor, see #20015
git-svn-id: https://develop.svn.wordpress.org/trunk@20293 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 02:10:19 +00:00
Andrew Nacin 76e4fbee38 Remove step="" from upload size inputs, as the step is enforced in the spec, rather than being a recommendation. finally fixes #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20289 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 13:02:01 +00:00
Andrew Nacin 99a61c7590 Send X-Robots-Tag: noindex in admin-ajax. props ryan, joostdevalk. fixes #18465.
git-svn-id: https://develop.svn.wordpress.org/trunk@20288 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 12:53:17 +00:00
Andrew Nacin 54a6a40533 Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948.
git-svn-id: https://develop.svn.wordpress.org/trunk@20287 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 15:24:31 +00:00
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 1568ee99ee Revert UI for caption fields to pre-[19982], keeping textarea for the caption field. No monospaced font, revert label. see #18311.
git-svn-id: https://develop.svn.wordpress.org/trunk@20282 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 13:37:42 +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
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
Andrew Ozz 74cfcd36e3 Responsive columns on the dashboard and write screens, first run, see #20015
git-svn-id: https://develop.svn.wordpress.org/trunk@20272 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 21:41:00 +00:00
Andrew Nacin 7f5fa1193e Leverage WP_Theme in the upgrader. Remove debug line from [20267]. Stop using get_theme_data() as it will be deprecated. see #13774. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20268 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 10:20:26 +00:00
Andrew Nacin 01be85d9c2 Support child theme installation in the theme installer. props otto42, dd32. fixes #13774.
git-svn-id: https://develop.svn.wordpress.org/trunk@20267 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 10:10:06 +00:00
Andrew Nacin a66dd764d6 Instantiate an object in get_default_link_to_edit(). fixes #20280.
git-svn-id: https://develop.svn.wordpress.org/trunk@20256 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 05:07:27 +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
Andrew Ozz b88a68aad2 Don't use class="code" for the captions textareas as it resets RTL, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20247 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 22:48:36 +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 a1d8542c67 Properly intercept the main form being submitted when checking for the display-header-text checkbox. see #18887.
git-svn-id: https://develop.svn.wordpress.org/trunk@20243 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 20:55:58 +00:00
Andrew Nacin 2a51977bfc Tidy up sanity checks in theme.dev.js. props DH-Shredder, fixes #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20242 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 20:17:47 +00:00
Andrew Nacin 0a6a9c2a8c Use display_header_text() in custom-header.php. Rework the UI to be a 'Show header text' checkbox (rather than radio buttons). Remove lame 'blank' hack for no-JS -- checkboxes work without JS. Move 'Select a Color' to a link like it is for custom background. Nearby code cleanup. see #18887.
git-svn-id: https://develop.svn.wordpress.org/trunk@20241 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 19:10:13 +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
Andrew Nacin a372b1a704 Visually merge a plugin with its update notice. Same applies to themes in the network admin. Move from 'update automatically' to 'update now'. fixes #20273.
git-svn-id: https://develop.svn.wordpress.org/trunk@20236 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 16:19:27 +00:00
Andrew Nacin 910804c30e Clean up get_plugin_data() and _get_plugin_data_markup_translate(), and standardize sanitization. fixes #20266.
git-svn-id: https://develop.svn.wordpress.org/trunk@20229 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-20 23:04:59 +00:00
Andrew Ozz 197ec5d82e Revert type="number" for the date/time fields as it introduces UI/styling issues, fixes #20217, see #17863
git-svn-id: https://develop.svn.wordpress.org/trunk@20217 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-19 19:30:07 +00:00
Andrew Nacin 070a9e5c59 Introduce new registration methods for custom headers and custom backgrounds. Backwards compatible, but old methods will be deprecated. see #20249. see #17242.
Custom header: Use add_theme_support('custom-header', $args) instead of add_custom_image_header(). Deprecates all use of constants.
 * HEADER_TEXTCOLOR is now (string) 'default-text-color'.
 * NO_HEADER_TEXT is nowi ! (bool) 'header-text'.
 * HEADER_IMAGE_WIDTH (and _HEIGHT) are now (int) 'width' and 'height'.
 * HEADER_IMAGE is now (string) 'default-image'.
 * The 3.4 arguments 'suggested-width' and 'suggested-height' are now just 'width' and 'height' (they are "suggested" when flex-width and flex-height are set).
 * Callback arguments for add_custom_image_header() can now be passed to add_theme_support().

Custom background: Use add_theme_support('custom-background, $args) instead of add_custom_background(). Deprecates all use of constants.
 * BACKGROUND_COLOR is now (string) 'default-color'.
 * BACKGROUND_IMAGE is now (string) 'default-image'.
 * Callback arguments for add_custom_background() can now be passed to add_theme_support().

Inheritance: add_theme_support() arguments for custom headers and custom backgrounds is a first-one-wins situation. This is not an unusual paradigm for theming as a child theme (which is included first) overrides a parent theme.
 * Once an argument is explicitly set, it cannot be overridden. You must hook in earlier and set it first.
 * Any argument that is not explicitly set before WP is loaded will inherit the default value for that argument.
 * It is therefore possible for a child theme to pass minimal arguments as long as the parent theme specifies others that may be necessary.
 * Allows for a child theme to alter callbacks for <head> and preview (previously, calling add_custom_image_header more than once broke things).
 * The just-in-time bits ensure that arguments fall back to default values, that the values of all constants are considered (such as one defined after an old add_custom_image_header call), and that all constants are defined (so as to be backwards compatible).

get_theme_support(): Introduce new second argument, which headers and backgrounds leverage to return an argument. current_theme_supports() already supported checking the truthiness of the argument.
 * For example, get_theme_support( 'custom-header', 'width' ) will return the width specified during registration.
 * If you had wanted the default image, use get_theme_support( 'custom-header', 'default-image' ) instead of HEADER_IMAGE. 

Deprecate remove_custom_image_header(), remove_custom_background(). Use remove_theme_support('custom-header'), 'custom-background'.

Deprecate short-lived custom-header-uploads internal support; this is now (bool) 'uploads' for add_theme_support().

New 3.4 functions renamed or removed: Rename get_current_header_data() to get_custom_header(). Remove get_header_image_width() and _height() in favor of get_custom_header()->width and height.



git-svn-id: https://develop.svn.wordpress.org/trunk@20212 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-19 17:12:44 +00:00
Andrew Nacin 866e4df183 Return to step 1 on custom-header.php if not POST data is sent. Good for if step=2 or 3 is in the URL and the page is refreshed (otherwise a nonce check fails). see #20249.
git-svn-id: https://develop.svn.wordpress.org/trunk@20211 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-19 14:45:29 +00:00
Andrew Nacin 15c3656249 Remove jQuery Masonry from Appearance > Header until we figure out sporadic issues relating to overlapping images (probably due to lame markup). see #17242.
git-svn-id: https://develop.svn.wordpress.org/trunk@20206 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 21:05:00 +00:00
bumpbot 881ec57e40 Compress scripts/styles: 3.4-alpha-20205.
git-svn-id: https://develop.svn.wordpress.org/trunk@20205 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:58:24 +00:00
Andrew Nacin c7a6f3bdf2 upload_url_path is a relative URL path, not an absolute URL. Remove type='url' as that enforces absoluteness. see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20204 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:43:20 +00:00
Andrew Nacin 671a9f07e2 Size options on options-media.php are allowed to be 0 or otherwise empty. see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20203 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:37:49 +00:00
Andrew Nacin 01846b1aa5 It is possible for comments_per_page to be 0, which turns off pagination. See sanitize_option(); wp_list_commnts(); get_comment_link(). see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20202 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:36:12 +00:00
Andrew Nacin d49d30651b Only grow input.small-text if type='number'. see [20168], see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20201 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:28:32 +00:00
Andrew Nacin 492400a0eb comment_max_links may be zero to bypass the moderation check entirely. [20168] erred. see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20200 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:26:25 +00:00
Andrew Nacin eb066c0b33 Adjust site upload space HTML5 type='number' validation. see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20199 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:16:21 +00:00
Andrew Nacin a30c7c32c4 Remove type='number' from list table page inputs out of a concern for UX, as well as styling issues. fixes #20247. see #17863 for further discussion.
git-svn-id: https://develop.svn.wordpress.org/trunk@20198 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:04:07 +00:00
Andrew Nacin ce48b0d471 Revert type="email" (HTML5) as some browsers that do validation on these fields do not work for IDN domains yet. Core does not support these well either, but server-side validation can at least be dealt with by a plugin. see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20196 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 18:09:14 +00:00
Andrew Nacin a72a104a4c Change 'Post Format' bulk/quick edit label to 'Format'. Consistent with the UI and prevents word wrapping. Tidy logic. see #20245.
git-svn-id: https://develop.svn.wordpress.org/trunk@20195 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 17:19:30 +00:00
Andrew Nacin 183c5df8c2 Hide unsupported post formats from bulk edit. fixes #20245.
git-svn-id: https://develop.svn.wordpress.org/trunk@20194 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 17:17:56 +00:00
Andrew Nacin e71167bbee Updates to WP_Theme, wp_get_themes(), and related deprecated functions, after [UT570] [UT578] [UT579]. see #20103.
* ['Template Files'] and ['Stylesheet Files'] need to return files from the parent theme as well.
 * Don't strip links from the Author header. Some themes rely on the previous behavior, such as to link multiple authors (Sandbox, for example.) Don't restore links to the Name, that's just a bad idea.
 * Ensure we are always passing around arrays in get_files/scandir.
 * Better inline doc for wp_get_themes() arguments.
 * Introduce a 'force' flag for search_theme_directories() to re-scan, rather than return the cache. We will use this to re-build the theme_roots transient in get_theme_roots(), but it is more helpful for unit tests. Since search_theme_directories() is cached, don't cache again in wp_get_themes(). (Again benefits testing.)
 * Handle duplicate theme names in the old get_themes() when two themes match (and neither are a default theme, which is already handled). wp_get_themes() will consider both names to be the same; this is just for back compat since get_themes() is keyed by name.
 * Include an old array key in wp_broken_themes().



git-svn-id: https://develop.svn.wordpress.org/trunk@20193 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 15:39:21 +00:00
bumpbot 8715cf588b Compress scripts/styles: 3.4-alpha-20192.
git-svn-id: https://develop.svn.wordpress.org/trunk@20192 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 13:58:27 +00:00
Andrew Nacin 0cbc56cfa8 Use ajaxurl rather than direct references to admin-ajax.php. see #18952.
git-svn-id: https://develop.svn.wordpress.org/trunk@20191 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 13:30:28 +00:00
Andrew Nacin 681c6ea428 Remove index-extra.php. Move dashboard widget XHR callbacks to ajax-actions.php. fixes #20242.
git-svn-id: https://develop.svn.wordpress.org/trunk@20190 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 13:20:00 +00:00
Daryl Koopersmith d254551dd7 Theme Customizer: First pass for upload controls, using background image as an example. Add a wrapper for Plupload that allows for custom upload UIs. see #19910.
wp.Uploader is a wrapper that provides a simple way to upload an attachment (using the wp_ajax_upload_attachment handler). It is intentionally decoupled from the UI. When an upload succeeds, it will receive the attachment information (id, url, meta, etc) as a JSON response. If the upload fails, the wrapper handles both WordPress and plupload errors through a single handler.

As todos, we should add drag classes for the uploader dropzone and account for the rough 100mb filesize limit in most browsers. The UI for the customizer upload controls could be improved as well.

git-svn-id: https://develop.svn.wordpress.org/trunk@20179 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 04:14:05 +00:00
bumpbot 02e1841cc4 Compress scripts/styles: 3.4-alpha-20175. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20175 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-14 22:00:22 +00:00
Andrew Ozz 995926a5f0 Add support for line breaks to the caption textareas, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20174 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-14 21:53:11 +00:00
Andrew Nacin 0459805741 Increase default upload space for sites on a network from 10M to 100M. props andrea_r. fixes #18831.
git-svn-id: https://develop.svn.wordpress.org/trunk@20170 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-10 22:07:17 +00:00
bumpbot 9890600190 Compress scripts/styles: 3.4-alpha-20169.
git-svn-id: https://develop.svn.wordpress.org/trunk@20169 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-10 01:30:30 +00:00
Andrew Ozz fcbd8f7f57 Set proper HTML5 input types in the admin, props georgestephanis, fixes #17863
git-svn-id: https://develop.svn.wordpress.org/trunk@20168 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-10 01:23:48 +00:00
bumpbot 1ae155013d Compress scripts/styles: 3.4-alpha-20167. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20167 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 23:30:29 +00:00
Andrew Ozz 78c8dedcdc Add support for DFW for all instances of the editor, part props sushkov, fixes #19843
git-svn-id: https://develop.svn.wordpress.org/trunk@20166 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 23:23:10 +00:00
bumpbot 4147d09fd0 Compress scripts/styles: 3.4-alpha-20165.
git-svn-id: https://develop.svn.wordpress.org/trunk@20165 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 01:45:40 +00:00
Andrew Ozz 654e72714c Add new comment from post edit screen, partial props: garyc40, see #15527
git-svn-id: https://develop.svn.wordpress.org/trunk@20164 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 01:30:11 +00:00
Andrew Nacin f173370ae1 Don't show the Network Enable link for broken themes. Include broken themes in searching on network/themes.php. fixes #20099, see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20160 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 17:08:55 +00:00
Andrew Nacin c7b3d21c18 In multisite, list broken themes on network/themes.php instead of on individual Manage Themes pages. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20151 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 07:32:42 +00:00
bumpbot 59844ad848 Compress scripts/styles: 3.4-alpha-20150.
git-svn-id: https://develop.svn.wordpress.org/trunk@20150 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 07:00:38 +00:00
Andrew Nacin df153a9a64 Add missing CSS selectors for when these admin menus are missing submenus. fixes #20199.
git-svn-id: https://develop.svn.wordpress.org/trunk@20149 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 06:59:02 +00:00
Andrew Nacin f9d7952855 The allowed_themes rolling upgrade for individual sites should not add empty allowedthemes arrays. If there are no allowed themes, don't add an empty option. Move the network rolling upgrade to upgrade_network(). see #20146.
git-svn-id: https://develop.svn.wordpress.org/trunk@20148 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 03:22:39 +00:00
Andrew Nacin c57039543d Always print the Author in the MS themes list table. display('Author') will be 'Anonymous' if no author is specified. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20147 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 00:01:35 +00:00