Commit Graph

3485 Commits

Author SHA1 Message Date
Ryan Boren 0de14403bf Don't delete nav menu items when the user that owns them is deleted.
* Introduce delete_with_user flag to register_post_type
* Set delete_with_user to false for the nav_menu_item post type
* Set it to true for all other core post types
* If delete_with_user is not set, fallback to post_type_supports('author')

Props nacin
Fixes #16358


git-svn-id: https://develop.svn.wordpress.org/trunk@20739 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-08 17:01:50 +00:00
Ryan Boren 144b8d7135 Update upload-html-bypass string to reflect that the uploader is no longer new. Props Ipstenu. fixes #20627
git-svn-id: https://develop.svn.wordpress.org/trunk@20735 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-07 16:48:35 +00:00
Ryan Boren 4c3eea178d Switch to WP_Theme::display() in theme update message. Props SergeyBiryukov. fixes #20623
git-svn-id: https://develop.svn.wordpress.org/trunk@20733 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-07 16:16:17 +00:00
Daryl Koopersmith b379473aa4 Add 'Install now', 'Preview', and 'Details' links to theme install list items. fixes #20403.
git-svn-id: https://develop.svn.wordpress.org/trunk@20730 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-06 23:06:47 +00:00
Ryan Boren 7e82f59653 Remove editor_template_src.js from old files list. It should not be deleted. Props Jayjdk. fixes #20539
git-svn-id: https://develop.svn.wordpress.org/trunk@20728 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-05 21:10:18 +00:00
Ryan Boren 8c50f982ea Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@20715 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-03 16:41:59 +00:00
Andrew Nacin 75f4959b2a Add a filter to wp_terms_checklist() that wraps the function's arguments.
Mainly designed to allow checked_ontop to be turned off.

props husobj.
fixes #20054.



git-svn-id: https://develop.svn.wordpress.org/trunk@20710 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-03 01:15:18 +00:00
Ryan Boren 71150d164a Don't convert png to jpg when cropping a header. Prevents stomping transparency. Props SergeyBiryukov, kovshenin. fixes #20555
git-svn-id: https://develop.svn.wordpress.org/trunk@20706 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 21:35:56 +00:00
Andrew Nacin b128d68f11 Do not force table names to be lowercase in dbDelta, as this breaks sites using capital letters in table prefixes. props netweblogic. fixes #19748.
git-svn-id: https://develop.svn.wordpress.org/trunk@20704 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 21:19:37 +00:00
Daryl Koopersmith 165131716b Add quote to fix 'Customize' link after new theme install on Chrome. props DH-Shredder, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20695 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 20:22:02 +00:00
Andrew Ozz 95808e088f Change the image caption shortcode format to [caption ...]<a><img /></a> caption text + html[/caption]. That way HTML tags in captions are better supported and the shortcode wouldn't break when using the wrong quotes. Props sushkov, nacin, fixes #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20679 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:14:52 +00:00
Andrew Nacin 869f8217ff Replace commas with periods when converting ratings float values to strings, to avoid issues with localized decimal points.
In these cases, we want a period because it is going to be used by CSS.

props SergeyBiryukov.
fixes #19593.



git-svn-id: https://develop.svn.wordpress.org/trunk@20675 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 22:09:55 +00:00
Andrew Nacin e9ee18fa5a Don't show the 'Preview Changes' button for a non-public post type. props intoxstudio, see #17609.
git-svn-id: https://develop.svn.wordpress.org/trunk@20667 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 17:52:08 +00:00
Andrew Nacin f553c11f28 Default to keyword searches for the plugin and theme installers in case no search type is posted back. fixes #19619.
props georgestephanis, SergeyBiryukov for initial patches.



git-svn-id: https://develop.svn.wordpress.org/trunk@20639 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 00:44:47 +00:00
Andrew Nacin e3e988bf58 Add a max of 999 to the screen options items per page input. props georgestephanis. fixes #20420.
git-svn-id: https://develop.svn.wordpress.org/trunk@20625 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 19:46:33 +00:00
Andrew Nacin 27f74ce583 Check if update_core() exists before calling it in Core_Upgrader. If not, issue an error message that the copy failed likely due to disk space. fixes #19883.
git-svn-id: https://develop.svn.wordpress.org/trunk@20619 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-27 18:57:59 +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 4fa4a3339e Make the Recent Comments dashboard widget more performant on sites with large amounts of comments, in particular with a heavy spam ratio.
Simplifies the query by avoiding a join, and leverages the API now rather than a direct query.

fixes #14222.



git-svn-id: https://develop.svn.wordpress.org/trunk@20609 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-26 21:09:51 +00:00
Ryan Boren 91edc71696 Pass the upload iframe src url as an arg to sprintf to avoid treating octets as
format specifiers. Fixes setting the featured image on blogs containing spaces in the install path. Props rosshanney. fixes #20443


git-svn-id: https://develop.svn.wordpress.org/trunk@20594 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 20:24:20 +00:00
Andrew Nacin cfe73da905 Reduce clutter and repetive functionality from the initial landing page for installing plugins and themes by removing the tag/author/term dropdown.
The tag cloud (plugins) and feature filter (themes) is sufficient for tag functionality. All three "search by" fields are already weighted for a standard keyword search through the WP.org API.

fixes #19619 for 3.4.



git-svn-id: https://develop.svn.wordpress.org/trunk@20592 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 19:37:19 +00:00
Andrew Ozz de55e6200e Fix typo in a comment, props SergeyBiryukov, fixes #20506
git-svn-id: https://develop.svn.wordpress.org/trunk@20591 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 17:49:48 +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
Ryan Boren d04dbfb0e5 Clean out layout columns API in WP_Screen.
* Move layout column setup into render_screen_meta() so that the number of columns is available earlier.
* Store the user provisioned number of columns in an instance var.
* Access the var with get_columns()
* Move all templates away from the screen_layout_columns global to the get_columns() method.
* Deprecate the global
* Remove the no longer needed check for 'auto' in the user option.
* Cast the user option to an int.

Props griffinjt
fixes #20506


git-svn-id: https://develop.svn.wordpress.org/trunk@20579 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 20:46:04 +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 381942320a Add additional files/dirs for removal and tidy up $_old_files.
Props aldenta
Fixes #20472


git-svn-id: https://develop.svn.wordpress.org/trunk@20567 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 21:48:09 +00:00
Andrew Nacin 40b676037c Correct logic in deactivate_plugins() where network_wide = null. props SergeyBiryukov. fixes #20497.
git-svn-id: https://develop.svn.wordpress.org/trunk@20555 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-21 00:45:53 +00:00
Andrew Ozz a791550056 Fix typo in the error message shown when a device doesn't support uploading, props SergeyBiryukov, fixes #20410
git-svn-id: https://develop.svn.wordpress.org/trunk@20544 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-20 01:10:39 +00:00
Jon Cave 42437fa97e Remove "Approve" bulk action when viewing spam comments as it isn't shown in the row actions. Props russellwwest. Fixes #20123.
git-svn-id: https://develop.svn.wordpress.org/trunk@20533 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 14:00:44 +00:00
Andrew Nacin 5ed7eb7f1c Clean up plugins.php with regards to recently edited files, deactivations, and the network admin. see #20468, #20104.
* Limit recently_activated to the site dashboard, and properly remove bulk-activated plugins from the array.
 * Remove code used from before the network admin, such as the unused 'network' plugin_status.
 * Don't try to deactivate a plugin already deactivated.
 * Use more specific caps (manage_network_plugins) rather than is_super_admin().



git-svn-id: https://develop.svn.wordpress.org/trunk@20525 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 03:41:29 +00:00
Jon Cave e8a29e70d6 clean_user_cache() after the DELETE query in wp_delete_user(). See #20460.
This is to prevent plugins managing to hook in between the cache cleaning and the actual deletion.


git-svn-id: https://develop.svn.wordpress.org/trunk@20523 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-18 21:24:53 +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
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 Nacin 8481a619b6 Check for the response property in tue update_plugins transient object. props ampt, fixes #20441.
git-svn-id: https://develop.svn.wordpress.org/trunk@20490 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-17 02:43:13 +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
Daryl Koopersmith 68ce88b380 Theme list table style improvements. Make 'delete' link red and separate from other actions. New action separators. see #20403.
git-svn-id: https://develop.svn.wordpress.org/trunk@20455 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 21:10:40 +00:00
Ryan Boren 1b6cda0c48 Use correct var name. Props mattonomics. fixes #20432
git-svn-id: https://develop.svn.wordpress.org/trunk@20454 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 21:02:24 +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
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 a6b212b230 Use home_url() instead of get_bloginfo('url'). props Mamaduka, fixes #20371.
git-svn-id: https://develop.svn.wordpress.org/trunk@20439 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 20:22:48 +00:00
Andrew Nacin 5ac059e12c Check if the response property is set before continuing with the update_themes transient return value. props johnbillion, fixes #20378.
git-svn-id: https://develop.svn.wordpress.org/trunk@20438 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 20:15:31 +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
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
Daryl Koopersmith 98f37d532d Theme browsing UX improvements. see #20403.
* On manage/install themes pages, moved author under theme name.
* On manage themes page, moved version number to details.

git-svn-id: https://develop.svn.wordpress.org/trunk@20414 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 00:15:13 +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
Ryan Boren 6fde0bddaf Make choosing a header image from the media library play nicely with file replication plugins that do not guarantee images will be retained in the local filesystem.
* When passing an attachment ID to wp_crop_image(), use load_image_to_edit() to fetch the image via a url fopen when the image does not exist in the filesystem.
* Move load_image_to_edit() to wp-admin/includes/image.php so that it is always available for admin pages loads.
* Fallback to the height and width stored in the attachment meta when the image no longer exists in the filesystem.

see #19840


git-svn-id: https://develop.svn.wordpress.org/trunk@20384 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 20:47:24 +00:00
Andrew Nacin 8fa05b041b Use _callback, rather than an unhelpful 2, for a preg_replace callback function name. Add proper phpdoc. see #20369.
git-svn-id: https://develop.svn.wordpress.org/trunk@20382 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 20:05:31 +00:00
Jon Cave c2450103b2 Simplify caption cleanup callbacks; if the function was called we know that the 0 index is set. See #20369.
git-svn-id: https://develop.svn.wordpress.org/trunk@20381 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 19:52: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 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
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
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
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
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
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
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 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
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 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
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
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
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
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
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 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
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
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
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
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
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
Andrew Nacin b1ba2dd995 Deprecate display_theme(). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20141 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 18:29:36 +00:00
Daryl Koopersmith 7464fa9565 Theme Customizer: Make theme installer no-js compatible. Fix JS click handler that caught clicks on the 'Activate' link. Relocate display_theme() to WP_Theme_Install_List_Table->single_row(). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20140 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 18:24:34 +00:00
Daryl Koopersmith 6e93f773b4 Theme Customizer: Begin integration into the install process. Combine previews, details, and install into a single workflow. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20138 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 17:35:17 +00:00
Jon Cave 9e9f4ad923 Use WP_Rewrite::set_permalink_structure instead of plain update_option() in populate_network(). Fixes #20174.
This has the benefit of calling WP_Rewrite::init() which correctly resets the permalink_structure
property of the $wp_rewrite global so that the rewrite rules generated on the next flush are correct.


git-svn-id: https://develop.svn.wordpress.org/trunk@20117 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 17:39:26 +00:00