Commit Graph

730 Commits

Author SHA1 Message Date
Scott Taylor
3f59b86ec5 In media_upload_gallery_form()'s inline JavaScript, remove unnecessary comment tags.
Fixes #25637.



git-svn-id: https://develop.svn.wordpress.org/trunk@28368 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-11 06:11:08 +00:00
Scott Taylor
3a554b5249 In wp_read_image_metadata(), the values from exif_read_data() should only override values from iptcparse() that are empty.
Props SergeyBiryukov.
Fixes #23706.


git-svn-id: https://develop.svn.wordpress.org/trunk@28367 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-11 05:53:27 +00:00
Scott Taylor
147eeb2147 Avoid a notice in wp_save_image() by checking $meta['sizes']['thumbnail'] for ! empty() before setting a variable to it.
Props MikeHansenMe.
Fixes #17736.



git-svn-id: https://develop.svn.wordpress.org/trunk@28366 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-11 03:41:31 +00:00
Scott Taylor
d007994bf3 In WP_Terms_List_Table::single_row(), call sanitize_term() on the passed term ($tag).
Props oso96_2000, c3mdigital, scribu. 
It takes a village.
Fixes #16864.


git-svn-id: https://develop.svn.wordpress.org/trunk@28360 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-11 00:04:38 +00:00
Scott Taylor
a398f38024 First pass at wpview logic for the [embed] shortcode. URLs on a their own line are parsed as well. The toolbar will appear with the "remove" button when the view is clicked. Edit has not been implemented yet.
Props avryl, wonderboymusic.
See #28195.



git-svn-id: https://develop.svn.wordpress.org/trunk@28358 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-10 23:35:08 +00:00
Drew Jaynes (DrewAPicture)
f3d9e1ed7e Fix mid-file section header style in wp-admin/includes/ajax-actions.php.
See #28200.


git-svn-id: https://develop.svn.wordpress.org/trunk@28356 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-10 05:01:15 +00:00
Drew Jaynes (DrewAPicture)
de13f1a60c Add baseline doc blocks for all ajax handlers in ajax-actions.php.
Fixes #28200.


git-svn-id: https://develop.svn.wordpress.org/trunk@28355 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-10 04:59:34 +00:00
Drew Jaynes (DrewAPicture)
0b51b6da2e Minor phpDoc fixes for the got_rewrite, got_url_rewrite, and documentation_ignore_functions hooks.
Props GaryJ.
See #26869.


git-svn-id: https://develop.svn.wordpress.org/trunk@28352 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-08 11:12:11 +00:00
Drew Jaynes (DrewAPicture)
bbd130fe15 Use interpolation instead of concatenation for the manage_{$screen->id}_columns hook name.
Props Otto42.
See #26869.


git-svn-id: https://develop.svn.wordpress.org/trunk@28348 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-08 09:57:11 +00:00
Drew Jaynes (DrewAPicture)
30c21227be Use an interpolated hook name for edit_{$post_type}_per_page instead of $per_page and adjust docs accordingly.
Also references the correct variable for the `$posts_per_page` parameter in the `edit_posts_per_page` hook doc.

Props Otto42 for the initial patch.
See #26869.


git-svn-id: https://develop.svn.wordpress.org/trunk@28347 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-08 08:15:48 +00:00
Scott Taylor
7531fd0070 Leverage size_format() when displaying max_upload_size:
* In `media_upload_form()` 
* The `uploader-inline` Underscore template in the media modal. 

Replaces 2 buggy inline implementations that could display size units off by one, or size values off by one.

Fixes #25643.



git-svn-id: https://develop.svn.wordpress.org/trunk@28343 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-07 18:24:47 +00:00
Scott Taylor
3ed59ca164 In wp-admin/includes/upgrade.php, remove dead code:
* In `maybe_create_table()` and `maybe_add_column()`, the response of `$wpdb->query()` is set to a variable that is never used.
* In `make_db_current_silent()`, which is a wrapper for `dbDelta`, a variable is set that is not used. This function appears to be a copy-paste of `make_db_current()`'s `dbDelta()` call but is meant to return nothing, and still does not.  

See #27882.


git-svn-id: https://develop.svn.wordpress.org/trunk@28305 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 17:26:47 +00:00
Scott Taylor
74ad050063 In wp-admin/includes/update.php, remove dead code:
* In `get_core_checksums()`, `$return` is set and never used.
* In `core_update_footer()`, `break` is unnecessary and unreachable after `return`.
* In `get_theme_updates()`, `$themes` is set and never used.
* In `wp_theme_update_row()`, `$theme_name` is the only user of `$themes_allowedtags`... neither are used. 	

See #27882.


git-svn-id: https://develop.svn.wordpress.org/trunk@28304 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 17:20:10 +00:00
Scott Taylor
fb1054340f In WP_Screen::render_screen_options(), remove dead code:
* `$wp_list_table` does not need to be imported.
* `$post` is set and never used.

See #27882.


git-svn-id: https://develop.svn.wordpress.org/trunk@28303 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 17:13:30 +00:00
Scott Taylor
b64da2cb60 In get_sample_permalink_html(), $view_link is set and never used.
See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28302 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 17:10:41 +00:00
Scott Taylor
5d2b452351 In install_plugin_information(), $title is set in a foreach loop and never used. This appears to be due to copy-pasting a previous foreach loop and not discarding these bits.
See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28301 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 16:59:29 +00:00
Scott Taylor
ffa620b972 In wp-admin/includes/nav-menu.php, remove dead code:
* In `_wp_ajax_menu_quick_search()`, in an `else` block, `$post_obj` was set and not used. Another block sets it again and does use it. 
* In `wp_nav_menu_item_post_type_meta_box()`, `$post_type_object` was set and, sadly, never used. `$error` was set and not used. 

See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28300 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 16:54:10 +00:00
Scott Taylor
e518d0d652 In update_option_new_admin_email(), $email is set and never used.
See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28299 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 16:47:56 +00:00
Scott Taylor
ee13be0315 In attachment_submit_meta_box(), remove dead code:
* `$action` doesn't need to be imported.
* `$can_publish` is set and never used, which means it doesn't need...
* `$post_type_object` or `$post_type`, which only served `$can_publish`.

See #27882.


git-svn-id: https://develop.svn.wordpress.org/trunk@28298 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 16:44:38 +00:00
Scott Taylor
d92f5aa154 In get_media_item(), $tags and $_tags are set and never used.
See #27882.


git-svn-id: https://develop.svn.wordpress.org/trunk@28297 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 16:40:52 +00:00
Scott Taylor
fc624a4298 In WP_Users_List_Table::get_views(), $current_role is set and never used.
See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28296 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 15:32:16 +00:00
Scott Taylor
1e68b7dab4 In WP_MS_Users_List_Table::get_views(), remove dead code:
* `$wp_roles` doesn't need to be imported.
* `$current_role` is set and never used.

See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28295 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 15:29:22 +00:00
Scott Taylor
36abe7909c In WP_Media_List_Table, remove dead code:
* In `->prepare_items()`, importing `$wpdb` is unnecessary.
* In `->get_columns()`, `$taxonomies` is set twice before it is used.
* In `->display_rows()`, `$taxonomy_object` is set and never used.

See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28293 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 15:26:32 +00:00
Scott Taylor
41d1eb8f56 In ajax-actions.php, remove dead code:
* In `wp_ajax_add_tag()`, `$post_type` is set and never used.
* In `wp_ajax_hidden_columns()`, `$hidden` is set twice, but only checks for the existence of `$_POST['hidden']` the first time. The two lines can be combined and work together.
* In `wp_ajax_inline_save()`, `$mode` is set and never used.
* In `wp_ajax_find_posts()`, `$searchand = $search = '';` is leftover cruft, neither variable is used. `$wpdb` does not need to be imported, it is never used.
* In `wp_ajax_wp_fullscreen_save_post()`, `$post_type` is set and never used.
* In `wp_ajax_save_attachment_order()`, `$post` is set and never used.
* In `wp_ajax_send_attachment_to_editor()`, `$title` is set and never used. 

See #27882.


git-svn-id: https://develop.svn.wordpress.org/trunk@28292 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 15:18:42 +00:00
Sergey Biryukov
4b8b0e7178 Use a consistent context to remove duplicate strings.
props pavelevap.
fixes #28123.

git-svn-id: https://develop.svn.wordpress.org/trunk@28287 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 12:33:08 +00:00
Scott Taylor
555937dc43 In WP_List_Table::display_rows_or_placeholder(), the call to get_column_info() in unnecessary and unused. The call to get_column_count() immediately after makes the same call internally.
See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28279 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 05:31:07 +00:00
Scott Taylor
f95a4c70be In edit_form_image_editor(), $filename and $title are set and then unused. They shall be removed.
See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28271 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 04:44:56 +00:00
Scott Taylor
e42ec45553 Dead code in wp-admin/includes/file.php:
* In `wp_handle_upload()` and `wp_handle_sideload()`, `$ext` gets conditionally reset... and then is never used.
* In `request_filesystem_credentials()`, `$password` is initialized as an empty string. The variable is never used.

See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28268 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 04:21:35 +00:00
Scott Taylor
f97deae591 Remove unused variable setting for $revisions in wp_prepare_revisions_for_js().
See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28264 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 03:44:30 +00:00
Scott Taylor
4c6f405ee7 Remove a dead variable, $start, from wp_dashboard_recent_comments().
See #27882.



git-svn-id: https://develop.svn.wordpress.org/trunk@28263 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-06 03:34:22 +00:00
Andrew Nacin
4b6d5b10d4 Move 'home' option to the top of populate_options().
fixes #28141.


git-svn-id: https://develop.svn.wordpress.org/trunk@28260 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-05 21:56:11 +00:00
Sergey Biryukov
819ad5babc Deprecate unused argument of delete_plugins(). Clarify @return value.
props jdgrimes for initial patch.
fixes #28111.

git-svn-id: https://develop.svn.wordpress.org/trunk@28256 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-05 10:23:16 +00:00
Sergey Biryukov
3e482eb905 Use a time constant in get_theme_feature_list() and File_Upload_Upgrader.
props GaVrA.
fixes #28124.

git-svn-id: https://develop.svn.wordpress.org/trunk@28253 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-05 08:25:46 +00:00
Drew Jaynes (DrewAPicture)
609cf29058 Clean up duplicate hook notations and adjacency for calls to the wp_signup_location filter.
Also adds braces missed in [25535].

See #26869.


git-svn-id: https://develop.svn.wordpress.org/trunk@28215 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-25 07:11:32 +00:00
Drew Jaynes (DrewAPicture)
379f725bde Ensure the wp_edit_nav_menu_walker filter is only documented once.
See #26869.


git-svn-id: https://develop.svn.wordpress.org/trunk@28213 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-25 06:49:48 +00:00
Drew Jaynes (DrewAPicture)
7a0eb63a19 Ensure the nav_menu_meta_box_object filter hook is only documented once.
See #26869.


git-svn-id: https://develop.svn.wordpress.org/trunk@28207 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-25 06:13:15 +00:00
Andrew Nacin
77c11f6cc9 Theme Installer: Proper redirection and action links post-install in multisite.
fixes #27869.


git-svn-id: https://develop.svn.wordpress.org/trunk@28163 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-19 18:17:12 +00:00
Andrew Nacin
aeef0e992a Translate a string added in 3.7.1 but never translated previously.
props SergeyBiryukov.
fixes #27819.


git-svn-id: https://develop.svn.wordpress.org/trunk@28145 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-16 00:37:59 +00:00
Dion Hulse
60f6968d80 Background Updates: Avoid a PHP warning during theme update checks when there are multiple theme directories registered. Fixes #27815
git-svn-id: https://develop.svn.wordpress.org/trunk@28137 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-15 10:56:56 +00:00
Andrew Nacin
0437f710a5 Allow the API to add text to auto update emails.
fixes #27812.


git-svn-id: https://develop.svn.wordpress.org/trunk@28134 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-15 08:51:23 +00:00
Andrew Nacin
7ed14feff1 Theme Installer: Revert to proxying through PHP for WordPress.org API requests.
This is to ensure we have valid installation nonces, though we've run into this as a problem previously (see #27639, #27581, #27055).

A tad slower, but we gained speed in 3.9 by simplifying the request made to the API.

props ocean90.
fixes #27798.


git-svn-id: https://develop.svn.wordpress.org/trunk@28126 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-15 01:15:43 +00:00
Andrew Nacin
32721b8347 Avoid stomping of bulk postdata inside the bulk_edit_posts() loop.
Reverts [27990] which did not fix it for authors and comment/ping status.

props dd32, DrewAPicture.
fixes #27792.


git-svn-id: https://develop.svn.wordpress.org/trunk@28113 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-14 07:47:10 +00:00
Andrew Ozz
bff230b422 Plupload: restore the settings in media_upload_form(), see #27763
git-svn-id: https://develop.svn.wordpress.org/trunk@28110 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-14 00:40:45 +00:00
Andrew Nacin
c43b8b063d Fix feature pointer RTL placement.
props SergeyBiryukov, ocean90.
fixes #27778.


git-svn-id: https://develop.svn.wordpress.org/trunk@28107 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-13 23:59:01 +00:00
Andrew Nacin
7a25da5240 The widgets pointer requires the edit_theme_options capability.
(It's hypothetically possible to have only switch_themes.)

see #27777.


git-svn-id: https://develop.svn.wordpress.org/trunk@28093 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-12 20:52:35 +00:00
Andrew Nacin
863116a5d2 Add a feature pointer for widgets in the customizer in 3.9. Remove older pointers from 3.3 and 3.4.
see #27777.


git-svn-id: https://develop.svn.wordpress.org/trunk@28090 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-12 20:47:12 +00:00
Andrew Nacin
6c0420348e Update $_old_files for 3.9. see #27775.
git-svn-id: https://develop.svn.wordpress.org/trunk@28085 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-12 18:26:25 +00:00
Drew Jaynes (DrewAPicture)
b5612f8b80 Priority fixes for various existing hook documentation.
Props kpdesign.
See #26869


git-svn-id: https://develop.svn.wordpress.org/trunk@28083 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-12 00:00:32 +00:00
Andrew Nacin
2d9949bf91 Account for new cropping settings in the image editor.
props Otto42, SergeyBiryukov.
fixes #19393.


git-svn-id: https://develop.svn.wordpress.org/trunk@28072 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-11 03:09:35 +00:00
Drew Jaynes (DrewAPicture)
93b19f682e Inline documentation for hooks in wp-admin/includes/class-wp-upgrader-skins.php.
Fixes #27711.


git-svn-id: https://develop.svn.wordpress.org/trunk@28040 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-08 06:25:56 +00:00
Andrew Nacin
d5c3a966be Theme Installer: Combine 'Layout' and 'Columns' filters so 'Features' can span two columns.
see #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@28037 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-08 04:30:01 +00:00
Drew Jaynes (DrewAPicture)
4d4921a9ac Use the correct parameter variables in the hook docs for wp_upgrade.
See #27700.


git-svn-id: https://develop.svn.wordpress.org/trunk@27998 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-07 20:13:00 +00:00
Drew Jaynes (DrewAPicture)
3b7d881f3c Align parameters in the hook docs for the attachment_thumbnail_args filter.
See #27700.


git-svn-id: https://develop.svn.wordpress.org/trunk@27997 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-07 20:10:01 +00:00
Drew Jaynes (DrewAPicture)
95294a170e Add missing parameter descriptions to the PHPDocs for WP_Upgrader_Skin::decrement_update_count() and Bulk_Upgrader_Skin::decrement_update_count().
See #27700.


git-svn-id: https://develop.svn.wordpress.org/trunk@27996 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-07 20:01:35 +00:00
Andrew Nacin
06152cbe6f Avoid stomping of bulk postdata inside the bulk_edit_posts() loop.
props kovshenin.
see [27964], see #27452.


git-svn-id: https://develop.svn.wordpress.org/trunk@27990 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-07 17:58:37 +00:00
Andrew Nacin
3fbe1ba7b7 Apply checks in [27964] to wp_write_post(), which is unused and due for dismantling and deprecation.
see #27452.


git-svn-id: https://develop.svn.wordpress.org/trunk@27975 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-06 22:07:02 +00:00
Drew Jaynes (DrewAPicture)
789305948e Inline documentation for remaining hooks in wp-admin/includes/upgrade.php.
Props jackreichert, vancoder.
Fixes #27646.


git-svn-id: https://develop.svn.wordpress.org/trunk@27965 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-05 22:29:41 +00:00
Andrew Nacin
14d96748c7 Better checks for contributors when saving posts.
props dd32, kovshenin, plocha.
see #27452.


git-svn-id: https://develop.svn.wordpress.org/trunk@27964 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-05 21:18:44 +00:00
Sergey Biryukov
96563b4143 Clarify tooltips on Edit Image screen.
props siobhan.
fixes #27651.

git-svn-id: https://develop.svn.wordpress.org/trunk@27939 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-04 00:02:22 +00:00
Sergey Biryukov
a97e9018c4 Fix typo in verify_file_md5() description. see [25541].
props siobhan.
see #27651.

git-svn-id: https://develop.svn.wordpress.org/trunk@27938 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-04 00:02:12 +00:00
Sergey Biryukov
ed139644be Use multiplication sign instead of a colon for selection size when editing an image.
props siobhan.
fixes #27652.

git-svn-id: https://develop.svn.wordpress.org/trunk@27931 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-03 09:45:44 +00:00
Andrew Nacin
66f20812b9 Remove old links_recently_updated_* DB options that never had a UI.
fixes #27649.


git-svn-id: https://develop.svn.wordpress.org/trunk@27916 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-03 03:09:59 +00:00
Dion Hulse
48025fabd5 Background Updates: Record Plugin & Theme update statistics like we for for Core updates, Pass Plugin/Theme update objects into the Background updater for consistency with Core & Translations. See #27633
git-svn-id: https://develop.svn.wordpress.org/trunk@27905 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-02 13:04:30 +00:00
Drew Jaynes (DrewAPicture)
33acf29a46 Clarify PHPDoc return description for media_handle_upload().
Props jdgrimes.
Fixes #27519.


git-svn-id: https://develop.svn.wordpress.org/trunk@27880 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-31 22:32:47 +00:00
Scott Taylor
d8d26a4f79 Cleanup up the display, escaping, and handling of ID3 data for media. Rename wp_get_relevant_id3_keys() to wp_get_attachment_id3_keys().
Props nacin.
See #27574.



git-svn-id: https://develop.svn.wordpress.org/trunk@27869 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-31 05:15:39 +00:00
Andrew Nacin
70beef6c31 Use correct formatting function. see [27864], see #27574.
git-svn-id: https://develop.svn.wordpress.org/trunk@27866 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 22:11:58 +00:00
Andrew Nacin
877ffc087f Cleanups for audio/video metadata, see [27862].
see #27574.


git-svn-id: https://develop.svn.wordpress.org/trunk@27864 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 21:07:04 +00:00
Scott Taylor
2846655164 In wp_generate_attachment_metadata(), when an audio or video files contains upload-able image bits in its ID3 tags, only upload it if the image has not already been uploaded. Determine this by checking for a _cover_hash value in post meta that matches the md5 representation of the bits.
This prevents uploading an album of 10 songs and subsequently uploading 10 copies of the same album cover.

Props GregLone for the new filter/filter docs: `'attachment_thumbnail_args'`.
Fixes #27573.
 


git-svn-id: https://develop.svn.wordpress.org/trunk@27863 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 20:53:21 +00:00
Scott Taylor
149f36ed35 Metadata for audio and video files:
* Make attachment metadata for audio files editable by providing a metabox on the Edit Media page
* Standardize on using the attachment title everywhere
* Label the Caption and Description fields for audio and video appropriately
* Make the playlist Underscore templates more straightforward

See #27574.



git-svn-id: https://develop.svn.wordpress.org/trunk@27862 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-30 19:27:31 +00:00
Andrew Nacin
1c3f9e542b Restyle the image editor so it looks way less hideous.
props avryl.
see #27544.


git-svn-id: https://develop.svn.wordpress.org/trunk@27842 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 08:50:57 +00:00
Drew Jaynes (DrewAPicture)
a2d810d024 The sidebar_admin_setup hook should only be documented once in wp-admin/widgets.php. All others are duplicates.
See #25374, #25501, #27531.


git-svn-id: https://develop.svn.wordpress.org/trunk@27823 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 19:46:26 +00:00
Dominik Schilling (ocean90)
2d4b606e14 Widget Customizer: Convert static WP_Customize_Widgets class into instantiated class and merge Options_Transaction into WP_Customize_Widgets.
see #27504.
props westonruter.


git-svn-id: https://develop.svn.wordpress.org/trunk@27816 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 14:06:10 +00:00
Andrew Nacin
98ac075d8b Always decode special characters for email subjects.
props tlovett1, jeremyfelt.
fixes #25346.


git-svn-id: https://develop.svn.wordpress.org/trunk@27801 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-28 02:43:04 +00:00
Andrew Nacin
ab787f2f57 Proper IDs for the custom fields box.
props SergeyBiryukov.
fixes #14376.


git-svn-id: https://develop.svn.wordpress.org/trunk@27776 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 06:55:51 +00:00
Andrew Nacin
50d900aa5f Fix docs for hooks in deactivate_plugins() and activate_plugin(). see #27189, #27188.
git-svn-id: https://develop.svn.wordpress.org/trunk@27769 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 02:01:29 +00:00
Scott Taylor
3acb8fcdf6 The bulk editor and post format meta box should use the same checks for available post formats.
Props eightface.
Fixes #27187.



git-svn-id: https://develop.svn.wordpress.org/trunk@27762 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-27 00:05:14 +00:00
Andrew Nacin
aeda501de1 Merge some theme update strings.
props pavelevap, yoavf.
fixes #25083.


git-svn-id: https://develop.svn.wordpress.org/trunk@27748 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 20:07:10 +00:00
Andrew Nacin
78b05bc236 Avoid JS errors before the commentReply script loads. Let's make this unobtrusive soon.
props aubreypwd.
fixes #24741.


git-svn-id: https://develop.svn.wordpress.org/trunk@27747 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 18:52:31 +00:00
Andrew Nacin
c4b15e91bf Upgrader skins: Strip tags before displaying error data.
fixes #25394.


git-svn-id: https://develop.svn.wordpress.org/trunk@27737 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-26 14:38:39 +00:00
Andrew Nacin
fbe0b3e5ac Don't allow the image editor thumbnail to be dragged. see #21811.
git-svn-id: https://develop.svn.wordpress.org/trunk@27712 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 16:20:50 +00:00
Andrew Nacin
0fccb7b64d Restore the update message in the dashboard, removed in 3.8.
props obenland.
fixes #26664.


git-svn-id: https://develop.svn.wordpress.org/trunk@27711 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 14:35:23 +00:00
Andrew Nacin
3e28e2fae8 Multisite: Don't set the $super_admins global in grant_super_admin(), revoke_super_admin().
Adds tests and docs.

props jdgrimes.
see #27205.


git-svn-id: https://develop.svn.wordpress.org/trunk@27706 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 12:13:40 +00:00
Drew Jaynes (DrewAPicture)
0e7a34444d Correct misleading verbiage in 'print' hook docs.
Standardizes 'print' hook docs on the concept that hooks are fired when scripts and styles are printed.

Props ericlewis for the initial patch.
Fixes #26924.


git-svn-id: https://develop.svn.wordpress.org/trunk@27695 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 08:04:44 +00:00
Scott Taylor
9cd40edebf In wp_create_post_autosave(), intersect the $new_autosave's keys with the keys from _wp_post_revision_fields() to ensure that all expected fields are present.
Props kovshenin.
Fixes #25416.



git-svn-id: https://develop.svn.wordpress.org/trunk@27690 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 20:31:51 +00:00
Andrew Nacin
401aa27073 Plugin Installer: Disable 'Latest Version Installed' buttons.
props paulwilde.
see #26952.


git-svn-id: https://develop.svn.wordpress.org/trunk@27677 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 03:40:28 +00:00
Andrew Nacin
48391a7444 Use correct variable. see [27373].
props TobiasBg.
fixes #14424.


git-svn-id: https://develop.svn.wordpress.org/trunk@27675 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 03:24:33 +00:00
Drew Jaynes (DrewAPicture)
0be6f6072a Inline documentation for hooks in wp-admin/includes/taxonomy.php.
Props kpdesign for the initial patch.
Fixes #27433.


git-svn-id: https://develop.svn.wordpress.org/trunk@27674 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 03:13:06 +00:00
Drew Jaynes (DrewAPicture)
7062f3c75a Inline documentation for wp-admin/includes/class-wp-upgrader.php.
Props kpdesign for some minor cleanup.
Fixes #27436.


git-svn-id: https://develop.svn.wordpress.org/trunk@27673 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:59:36 +00:00
Drew Jaynes (DrewAPicture)
af0f9a5e00 Inline documentation for hooks in wp-admin/includes/file.php.
Fixes #27429.


git-svn-id: https://develop.svn.wordpress.org/trunk@27672 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:44:17 +00:00
Drew Jaynes (DrewAPicture)
99c2775c0f Remove some debug cruft accidentally committed in [27670].
See #27430.


git-svn-id: https://develop.svn.wordpress.org/trunk@27671 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:37:05 +00:00
Drew Jaynes (DrewAPicture)
ac9e81e0f0 Inline documentation for hooks in wp-admin/includes/menu.php.
Also fixes syntax for a few unrelated multi-line comments in the file.

Props kpdesign for some minor cleanup.
Fixes #27430.


git-svn-id: https://develop.svn.wordpress.org/trunk@27670 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:34:14 +00:00
Drew Jaynes (DrewAPicture)
4d7ca61c09 Inline documentation for hooks in wp-admin/includes/dashboard.php.
Props mauryaratan. Props kpdesign for some minor cleanup.
Fixes #25752.


git-svn-id: https://develop.svn.wordpress.org/trunk@27669 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 02:20:33 +00:00
Drew Jaynes (DrewAPicture)
c7080c0a6b Inline documentation for hooks in wp-admin/includes/post.php.
Also moves the primary PHPDoc for the `edit_posts_per_page` hook to wp-admin/includes/post.php.

Props kpdesign for some cleanup.
Fixes #27431.


git-svn-id: https://develop.svn.wordpress.org/trunk@27667 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-24 01:48:40 +00:00
Andrew Ozz
263d9c7f33 Plupload: switch to urlstream upload method when the 'flash' runtime is used in non IE browsers. This ensures cookies are sent but limits the maximum file size that flash can handle.
By default only IE9 and older use flash so this change is mostly for completeness. It would affect only the (extremely rare) cases where a plugin disables the html5 runtime.

git-svn-id: https://develop.svn.wordpress.org/trunk@27662 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-23 23:44:20 +00:00
Scott Taylor
0697544056 Turn on thumbnail support for attachment:audio and attachment:video. Change conditionals to check for theme OR post type support when determining whether to turn on the Featured Image UI pieces in the admin.
Fixes #27460.



git-svn-id: https://develop.svn.wordpress.org/trunk@27657 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-23 02:34:39 +00:00
Dominik Schilling (ocean90)
9e92a95ec5 Remove "Show" prefix from filter dropdowns, see #26743.
git-svn-id: https://develop.svn.wordpress.org/trunk@27626 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 22:12:13 +00:00
Andrew Nacin
b2da716c11 Skipping placeholders in a string will only catch translators off guard.
see #27453, #27132.


git-svn-id: https://develop.svn.wordpress.org/trunk@27613 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:53:01 +00:00
Andrew Nacin
d3a873840e Remove two new strings from post_preview().
see #25272, #27453.


git-svn-id: https://develop.svn.wordpress.org/trunk@27612 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:48:28 +00:00
nacin
877e12ee33 Improve the autosave error message on nonce failure.
see #27453, #25272.


git-svn-id: https://develop.svn.wordpress.org/trunk@27611 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-19 05:46:02 +00:00
John Blackbourn
f850186eff Introduce permission checks for post queries and edit links in the At a Glance dashboard widget. Fixes #27132. Props mattheu.
git-svn-id: https://develop.svn.wordpress.org/trunk@27596 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 22:43:41 +00:00
John Blackbourn
d91dd88edc Remove the "See more" toggle from the At a Glance dashboard widget. Fixes #26614.
git-svn-id: https://develop.svn.wordpress.org/trunk@27583 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 12:55:42 +00:00
Andrew Nacin
c914491693 Heartbeat: Hooks should always receive unslashed data.
This affects the privileged hooks; the unprivileged hooks already received unslashed data.

props johnbillion, TobiasBg.
fixes #27260.


git-svn-id: https://develop.svn.wordpress.org/trunk@27576 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-18 00:14:48 +00:00
Andrew Nacin
c35a53f8bc Filesystem: Fix getchmod() for direct and ssh2 transports, for directories.
props DavidAnderson.
fixes #26598.


git-svn-id: https://develop.svn.wordpress.org/trunk@27566 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-17 20:16:40 +00:00
Andrew Nacin
a641b9fb55 Cap and theme support checks for the welcome panel.
props MikeHansenMe.
fixes #26276.


git-svn-id: https://develop.svn.wordpress.org/trunk@27563 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-17 19:46:15 +00:00
Sergey Biryukov
d4986f1b61 Avoid PHP notices in Media Library if an attachment parent post type no longer exists.
props wpsmith.
fixes #27439.

git-svn-id: https://develop.svn.wordpress.org/trunk@27560 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-17 15:32:32 +00:00
Andrew Ozz
6d13e3e1ff Restyle the plugin install details modal to match the rest of the admin. Props avryl and paulwilde for initial mockup, see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27559 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-16 18:27:38 +00:00
Sergey Biryukov
1f8285b2e1 Fix .comment-grey-bubble markup and remove a stray </h5> tag.
props avryl.
fixes #27408.

git-svn-id: https://develop.svn.wordpress.org/trunk@27548 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-15 04:31:58 +00:00
Dion Hulse
526bf7d352 WP_Filesystem: Update request_filesystem_credentials() to handle the correct ssh value of FS_METHOD. Props jnielsendotnet. Fixes #27265
git-svn-id: https://develop.svn.wordpress.org/trunk@27546 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-15 03:08:47 +00:00
Dominik Schilling (ocean90)
91fbdbbcc4 Widget Customizer: Use ?wp_customize=on.
Let _wp_customize_include() handle customizer initialisation.
Sets also the priority for the Add Widget and Reorder buttons and removes debug cruft.

props westonruter.
fixes #27291.

git-svn-id: https://develop.svn.wordpress.org/trunk@27524 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 18:37:24 +00:00
Scott Taylor
543bc6404a The Image Editor should apply changes to custom image sizes by checking $_wp_additional_image_sizes for $size in wp_save_image() before arbitrarily going to the options table.
Props Otto42, SergeyBiryukov.
Fixes #19889.



git-svn-id: https://develop.svn.wordpress.org/trunk@27522 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-13 04:17:36 +00:00
John Blackbourn
f3629139a5 Correct the "View Post" button link when changing a post slug. Fixes #16477. Props aubreypwd.
git-svn-id: https://develop.svn.wordpress.org/trunk@27508 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 22:59:03 +00:00
John Blackbourn
f45c06c09c Avoid searching HTML tags when searching plugins and themes. Fixes #27136. Props enej.
git-svn-id: https://develop.svn.wordpress.org/trunk@27507 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 22:23:51 +00:00
Sergey Biryukov
1a769c0e11 Remove duplicate description of WP_List_Table class.
props bravokeyl.
fixes #27346.

git-svn-id: https://develop.svn.wordpress.org/trunk@27502 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 16:22:44 +00:00
Andrew Nacin
6aa60cf530 Assign correct variable.
props nendeb55.
fixes #27351. see #14424, [27373].


git-svn-id: https://develop.svn.wordpress.org/trunk@27501 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 13:23:14 +00:00
Andrew Nacin
96176b269d Bring the theme browsing experience from 3.8 to the theme installer. First pass.
props matveb with assists from me and gcorne.
see #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@27499 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-11 07:46:27 +00:00
Drew Jaynes (DrewAPicture)
6308a3c93d Fix docs for the deactivate_$plugin and deactivated_plugin hooks.
Props wpsmith for the original patch.
Fixes #27189


git-svn-id: https://develop.svn.wordpress.org/trunk@27491 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-10 21:33:54 +00:00
Andrew Nacin
e4bb7b0e8c Editor: Show 'View Post' for any post the author can read.
This expands it to private posts and matches the logic in the toolbar.

props mordauk, SergeyBiryukov.
fixes #27059.


git-svn-id: https://develop.svn.wordpress.org/trunk@27483 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 13:52:08 +00:00
Dominik Schilling (ocean90)
292f70aba3 Admin Menu: Set default value of $icon_url in add_menu_page() to dashicons-admin-generic, fixes #26630.
git-svn-id: https://develop.svn.wordpress.org/trunk@27482 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-09 11:12:35 +00:00
Andrew Nacin
f225973b62 Allow $crop in add_image_size() to receive crop anchors (top, left, right, bottom, center).
This also applies to set_post_thumbnail_size() and image_resize_dimensions().

props bradt, wonderboymusic, DH-Shredder.
fixes #19393.


git-svn-id: https://develop.svn.wordpress.org/trunk@27472 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 06:13:27 +00:00
Andrew Nacin
928a972fb5 Rename the new page_templates filter to theme_page_templates, and pass it a post object for proper context.
see #13265.


git-svn-id: https://develop.svn.wordpress.org/trunk@27470 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 04:18:30 +00:00
Andrew Nacin
5d48091e5d Remove lame debugging. see #23057.
git-svn-id: https://develop.svn.wordpress.org/trunk@27467 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 03:15:49 +00:00
Andrew Nacin
750fe42507 Normalize $reassign in wp_delete_user() to ensure the hooks receive consistent values.
fixes #23057.


git-svn-id: https://develop.svn.wordpress.org/trunk@27466 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 03:15:06 +00:00
Sergey Biryukov
28b34b3811 Fix docblock formatting in [27462]. see #23057.
git-svn-id: https://develop.svn.wordpress.org/trunk@27463 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 01:25:28 +00:00
Sergey Biryukov
e925502c25 Pass $reassign parameter to 'delete_user' and 'deleted_user' actions.
props genkisan.
fixes #23057.

git-svn-id: https://develop.svn.wordpress.org/trunk@27462 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-08 01:22:51 +00:00
Andrew Nacin
4bbd5ef1d6 maybe_regenerate_attachment_metadata() is now wp_maybe_generate_attachment_metadata().
props kovshenin.
fixes #26825.


git-svn-id: https://develop.svn.wordpress.org/trunk@27441 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 19:33:32 +00:00
Drew Jaynes
d9c9ea73ec Inline documentation for hooks in wp-admin/includes/class-wp-theme-install-list-table.php.
Props kpdesign for the cleanup.
Fixes #27293.


git-svn-id: https://develop.svn.wordpress.org/trunk@27430 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-06 13:43:59 +00:00
Andrew Nacin
f12d7bb35c Add widget management to the customizer.
This brings in the Widget Customizer plugin: https://wordpress.org/plugins/widget-customizer/.

props westonruter, shaunandrews, michael-arestad, johnregan3, akeda, topher1kenobe, topquarky, bobbravo2, ricardocorreia. And for good measure, props westonruter.
see #27112.


git-svn-id: https://develop.svn.wordpress.org/trunk@27419 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 20:40:36 +00:00
Andrew Nacin
a14b999605 Always convert auto-drafts to drafts in edit_draft() and _wp_translate_postdata().
This regressed due to refactoring in [26995]. This commit fixes Quick Draft.

see #25272.


git-svn-id: https://develop.svn.wordpress.org/trunk@27405 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 06:25:31 +00:00
Andrew Ozz
6beddbe7de Restyles the modal for attaching media to posts, take II (also some autoprefixer and imagemin). Props avryl, see #26952.
git-svn-id: https://develop.svn.wordpress.org/trunk@27403 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 03:53:19 +00:00
Andrew Ozz
ce69c629ff Restyles the modal for attaching media to posts, props avryl, see #26952
git-svn-id: https://develop.svn.wordpress.org/trunk@27401 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 23:10:35 +00:00
Andrew Nacin
28a29842c6 Convert the post lock icon to a dashicon.
props melchoyce, DH-Shredder.
fixes #26796.


git-svn-id: https://develop.svn.wordpress.org/trunk@27392 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 06:52:14 +00:00
Dominik Schilling (ocean90)
ff567294f6 "At a Glance" widget: Move get_avatar() line out of if-block.
This allows you to show avatars for custom comment types via the `get_avatar_comment_types` filter.

props zodiac1978.
fixes #26944.

git-svn-id: https://develop.svn.wordpress.org/trunk@27384 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 20:13:29 +00:00
Drew Jaynes
1b41eea7c7 Generalize the hook documentation for the set-screen-option filter.
The filter covers more than [items]_per_page screen options.

Fixes #26186.


git-svn-id: https://develop.svn.wordpress.org/trunk@27379 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:50:33 +00:00
Drew Jaynes
f65484cabf Inline documentation for hooks in wp-admin/includes/misc.php.
Props JoshuaAbenazer.
Fixes #26186


git-svn-id: https://develop.svn.wordpress.org/trunk@27375 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:19:31 +00:00
Andrew Nacin
0aae0ca1e6 Slight renaming in our callback in [27373]. see #14424.
git-svn-id: https://develop.svn.wordpress.org/trunk@27374 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:08:26 +00:00
Mark Jaquith
7937358328 Eliminate some of our last remaining create_function() instances
* Moved some into private function callbacks
* Eliminated some that weren't necessary anymore

props obenland, markjaquith, nacin. fixes #14424

git-svn-id: https://develop.svn.wordpress.org/trunk@27373 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 16:20:12 +00:00
Andrew Nacin
f3a23fb43f Reference https://wordpress.org rather than http://wordpress.org in strings, links, comments, etc.
props Ipstenu, markjaquith.
see #27115.


git-svn-id: https://develop.svn.wordpress.org/trunk@27369 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 02:33:24 +00:00
Andrew Nacin
6869d203d0 Introduce get_site_by_path() and further rewrite the site detection process for multisite.
This is the first big step to supporting arbitrary domains and paths. In this new approach, sites are detected first where possible, then the network is inferred. Allows filtering for arbitrary path segments, smooths out some weirdness, and removes various restrictions. A sunrise plugin could do much of its work by adding filters, if those are even needed.

see #27003.


git-svn-id: https://develop.svn.wordpress.org/trunk@27359 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 22:24:50 +00:00
Drew Jaynes
94c6c6a213 Inline documentation for hooks in wp-admin/includes/image-edit.php.
Props theorboman. Props kpdesign for the cleanup.
Fixes #26149.


git-svn-id: https://develop.svn.wordpress.org/trunk@27357 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 20:55:10 +00:00
Drew Jaynes
4346d63207 Inline documentation for hooks in wp-admin/includes/class-wp-plugins-list-table.php.
Props nicolealleyinteractivecom, kpdesign.
Fixes #26957.


git-svn-id: https://develop.svn.wordpress.org/trunk@27356 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 20:47:31 +00:00
Drew Jaynes
90033f46bc Tweak inline documentation for hooks in wp-admin/includes/class-wp-users-list-table.php.
Props kpdesign.
Fixes #26203.


git-svn-id: https://develop.svn.wordpress.org/trunk@27355 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 20:31:15 +00:00
Drew Jaynes
34cdf7f7e1 Inline documentation for hooks in wp-admin/includes/class-wp-users-list-table.php.
Props leewillis77.
Fixes #26203.


git-svn-id: https://develop.svn.wordpress.org/trunk@27342 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 14:59:53 +00:00
Dion Hulse
db9eb328e3 Upgrader: Remove more debug from r27336. See #25860
git-svn-id: https://develop.svn.wordpress.org/trunk@27339 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 06:05:02 +00:00
Dion Hulse
e98848a3c6 Upgrader: Remove some debug from r27336. See #25860
git-svn-id: https://develop.svn.wordpress.org/trunk@27338 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 06:03:55 +00:00
Dion Hulse
18364c9625 Upgrader: Remove two stray spaces. See #25860
git-svn-id: https://develop.svn.wordpress.org/trunk@27337 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 06:01:28 +00:00
Dion Hulse
14b4579d98 Upgrader: Copy wp-includes/version.php over last, to avoid an installation failing with the new version.php in place. Fixes #25860
git-svn-id: https://develop.svn.wordpress.org/trunk@27336 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-01 06:00:47 +00:00
Scott Taylor
07f14d6434 * Videos should always render at the same aspect ratio.
* Don't force a pseudo-mime-type for `.m4v` files
* Uniformly adapt to `$content_width` when setting video dimensions on the front end
* Add the `height` attribute to the initial `<video>` in the video playlist JS template
* Add some defensive/responsive CSS for a/v on the Edit Media page

See #27243.



git-svn-id: https://develop.svn.wordpress.org/trunk@27328 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 21:27:40 +00:00
John Blackbourn
6950f1bcd6 Don't filter out network-only plugins from the Plugins screen if they're individually active on the current site. Add some code comments for clarity. Props mordauk
git-svn-id: https://develop.svn.wordpress.org/trunk@27326 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 20:21:52 +00:00
Sergey Biryukov
ecbe4f0909 Use a consistent format for translator comments.
props GaryJ.
fixes #27228.

git-svn-id: https://develop.svn.wordpress.org/trunk@27325 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 08:08:50 +00:00
Sergey Biryukov
ef8de539b9 Remove temporary hooks added in [26865].
fixes #26661.

git-svn-id: https://develop.svn.wordpress.org/trunk@27324 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-28 00:44:38 +00:00
Sergey Biryukov
612b605c80 Avoid an undefined index notice in wp_doc_link_parse().
props pross for initial patch.
fixes #27214.

git-svn-id: https://develop.svn.wordpress.org/trunk@27323 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 23:15:29 +00:00
Sergey Biryukov
a53fab8750 Avoid an undefined index notice in wp_handle_upload().
props tivnet.
fixes #27225.

git-svn-id: https://develop.svn.wordpress.org/trunk@27319 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 21:15:31 +00:00
Andrew Ozz
11586e8ebe Upgrade Plupload to 2.1.1, props kovshenin, see #25663
git-svn-id: https://develop.svn.wordpress.org/trunk@27316 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 20:00:55 +00:00
Andrew Nacin
3d8a61bc79 Unslash in the time-format and date-format ajax endpoints.
props GregLone.
fixes #27216.


git-svn-id: https://develop.svn.wordpress.org/trunk@27305 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-27 00:04:45 +00:00
Drew Jaynes
6dee77ab95 Improve inline documentation for WP_Users_List_Table.
Props leewillis77 for the initial patch.
Fixes #26564.


git-svn-id: https://develop.svn.wordpress.org/trunk@27301 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 22:19:10 +00:00
Andrew Nacin
9ddf03c0bb Decrement update count bubbles as plugins/themes are updated, live.
props gcorne, mitchoyoshitaka.
fixes #17703.


git-svn-id: https://develop.svn.wordpress.org/trunk@27280 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 06:54:26 +00:00
Andrew Nacin
449e436ca1 Clarify return values for get_preferred_from_update_core() and get_core_updates().
props SergeyBiryukov.
fixes #20251.


git-svn-id: https://develop.svn.wordpress.org/trunk@27264 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:19:22 +00:00
Drew Jaynes
647f80595d Remove all @package and @subpackage PHPDoc tags not at the file- or class-levels in core.
See #27200.


git-svn-id: https://develop.svn.wordpress.org/trunk@27262 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:13:08 +00:00
Andrew Nacin
9bdaa48e3e Remove _relocate_children(), which has had no purpose for some time.
props SergeyBiryukov, scribu.
fixes #19367.


git-svn-id: https://develop.svn.wordpress.org/trunk@27261 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:09:09 +00:00
Andrew Nacin
7d18f3b34c Make the user arguments for get_edit_profile_url() and get_dashboard_url() optional, defaulting to the current user.
props garyc40.
fixes #16686.


git-svn-id: https://develop.svn.wordpress.org/trunk@27260 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 17:07:22 +00:00
Drew Jaynes
2aa5387801 Inline documentation for hooks in wp-admin/includes/screen.php.
Props enej, kpdesign.
Fixes #26821.


git-svn-id: https://develop.svn.wordpress.org/trunk@27256 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 10:04:46 +00:00
Drew Jaynes
f36f14899d Inline documentation for hooks in wp-admin/includes/class-wp-posts-list-table.php.
Props nicolealleyinteractivecom, kpdesign.
Fixes #26397.


git-svn-id: https://develop.svn.wordpress.org/trunk@27255 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 06:11:32 +00:00
Sergey Biryukov
fc2230e12a Fix theme preview URL for themes loaded via AJAX on Install Themes screen.
props ocean90.
fixes #27128.

git-svn-id: https://develop.svn.wordpress.org/trunk@27247 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-25 00:00:48 +00:00
Drew Jaynes
dd35bb5d7b Inline documentation for hooks in wp-admin/includes/template.php.
Props shelob9 for the initial patch. Props kpdesign.
Fixes #26089.


git-svn-id: https://develop.svn.wordpress.org/trunk@27237 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-23 22:43:44 +00:00
Sergey Biryukov
9d94ec0cad Use filtered per_page value in WP_Plugin_Install_List_Table and WP_Theme_Install_List_Table.
props brasofilo.
fixes #25675.

git-svn-id: https://develop.svn.wordpress.org/trunk@27221 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 18:29:41 +00:00
Andrew Nacin
4cfcdabdd8 Simplify error in validate_file_to_edit().
props MattyRob for initial patch.
fixes #25924.


git-svn-id: https://develop.svn.wordpress.org/trunk@27219 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-21 14:45:06 +00:00
Drew Jaynes
d3aa609740 Inline documentation for hooks in wp-admin/includes/image.php.
Props theorboman, kpdesign.
Fixes #25832.


git-svn-id: https://develop.svn.wordpress.org/trunk@27202 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-20 06:26:51 +00:00
John Blackbourn
a0536406a1 Add screen-reader friendly variations of some short text links in the Publish meta box. Fixes #25459.
git-svn-id: https://develop.svn.wordpress.org/trunk@27196 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-19 22:43:55 +00:00
Helen Hou-Sandi
c4848bbac4 Once upon a time not long ago,
The admin CSS was merged in #18314.
After a couple years as it stood,
The mess it had become just was no good.
One day we realized Grunt is pretty cool,
And said "we should use this as our build tool!"
Now we can maintain separate files with ease,
Using @import and cssmin meets all our needs.
Welcome to the future of the WordPress stylesheets,
And thanks to Slick Rick for the beats.

props jorbin for the initial patch.
fixes #26669.


git-svn-id: https://develop.svn.wordpress.org/trunk@27195 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-19 21:42:36 +00:00
Sergey Biryukov
073d970d1f Use correct variable. props avryl. fixes #27153.
git-svn-id: https://develop.svn.wordpress.org/trunk@27194 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-19 15:28:17 +00:00
Scott Taylor
1b8da3d0d6 Use selected() where appropriate in touch_time(), page_template_dropdown(), and parent_dropdown(). Also, add proper docs.
Props meloniq, DrewAPicture.
Fixes #25889.



git-svn-id: https://develop.svn.wordpress.org/trunk@27188 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-17 22:26:14 +00:00
Andrew Nacin
b7be4e98fe Detect and handle symlinking of plugins in plugin_basename().
props rmccue, MikeSchinkel, jdgrimes.
see #16953.


git-svn-id: https://develop.svn.wordpress.org/trunk@27158 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-10 22:59:40 +00:00
Drew Jaynes
aa502ff35a Fix docs spacing missed in [27136].
See #27070.


git-svn-id: https://develop.svn.wordpress.org/trunk@27137 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 22:18:09 +00:00
Drew Jaynes
4993a00e05 Improve inline documentation for submit_button().
See #27070.


git-svn-id: https://develop.svn.wordpress.org/trunk@27136 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 22:13:18 +00:00
Drew Jaynes
622d3e1338 Clarify submit_button() $type parameter docs to mention that the value doubles as the CSS class attribute.
See #27070


git-svn-id: https://develop.svn.wordpress.org/trunk@27135 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 22:10:19 +00:00
Andrew Nacin
3266997d99 Improve parameter documentation of add_meta_box().
props philiparthurmoore, DrewAPicture.
fixes #26698.


git-svn-id: https://develop.svn.wordpress.org/trunk@27132 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-08 00:54:19 +00:00
Scott Taylor
d6cb8c399e Introduce maybe_regenerate_attachment_metadata( $attachment ). On the Edit Media screen, call it for Audio and Video files.
The functions checks if the item is lacking metadata altogether. If a video or audio file was uploaded prior to 3.6, it does not have any metadata. This tries to fix it. Implements locking via a transient to protect against this running in parallel with another request.

This is the minimum viable product for #26825, but leaving the ticket open unless this function needs to be called in other places.

See #26825.



git-svn-id: https://develop.svn.wordpress.org/trunk@27127 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-07 22:40:32 +00:00
Helen Hou-Sandi
802baab31a Merge colors.css into wp-admin.css. Non-default color schemes became overloads rather than swaps in the 3.8 redesign. Benefits include:
* No more border-width, border-style, border-color insanity.
* Point releases are much less likely to require extra finagling to avoid rebuilding the color schemes.
* Yours truly has a better overall vision of ~14,000 lines of admin CSS and where we go from here.

1,065 net lines of red, y'all.
props helen, jorbin. fixes #18380.


git-svn-id: https://develop.svn.wordpress.org/trunk@27106 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-06 06:24:36 +00:00
Drew Jaynes
d88b191c9a Inline documentation for hooks in wp-admin/includes/class-wp-ms-themes-list-table.php.
Also marks two hooks in wp-admin/includes/class-wp-themes-list-table.php as duplicates.

Props ShinichiN, kpdesign, DrewAPicture.
Fixes #25608.


git-svn-id: https://develop.svn.wordpress.org/trunk@27090 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-04 08:24:13 +00:00
Drew Jaynes
75d5d14049 Inline documentation for hooks in wp-admin/includes/class-wp-terms-list-table.php.
Props Ajay, kpdesign.
Fixes #26209.


git-svn-id: https://develop.svn.wordpress.org/trunk@27089 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-04 07:55:48 +00:00
Andrew Ozz
33b079b036 Open previews of different posts in different windows/tabs. Prevent confusion when using a former preview window again if the user navigated to edit another post. If the first post is still being edited, clicking Preview there will use the current window to show the preview. Props ippetkov, fixes #20233.
git-svn-id: https://develop.svn.wordpress.org/trunk@27079 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-02 23:49:05 +00:00
Andrew Nacin
8c3ad4e860 Consistently trim and unslash search queries for the users list tables.
props aubreypwd.
fixes #26115.


git-svn-id: https://develop.svn.wordpress.org/trunk@27077 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-02 22:09:19 +00:00
Drew Jaynes
9224a141f3 Inline documentation for hooks in wp-admin/includes/export.php.
Props cmmarslender, kpdesign.
Fixes #26894.


git-svn-id: https://develop.svn.wordpress.org/trunk@27048 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-28 08:09:13 +00:00
Drew Jaynes
bbc58ef016 Inline documentation for hooks in wp-admin/includes/update-core.php.
Props JoshuaAbenazer, kpdesign.
Fixes #25998.


git-svn-id: https://develop.svn.wordpress.org/trunk@27047 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-28 08:01:36 +00:00
Helen Hou-Sandi
91b0e15ef8 Autocomplete for the new site admin email. Better than trying to remember which email address you used.
fixes #25348.


git-svn-id: https://develop.svn.wordpress.org/trunk@27046 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-27 23:09:08 +00:00
Andrew Nacin
bd9729c22d Add wp_install and wp_upgrade hooks to the respective functions.
props Denis-de-Bernardy.
fixes #25762.


git-svn-id: https://develop.svn.wordpress.org/trunk@27045 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-27 16:31:54 +00:00
Andrew Ozz
fbd895949f Remove one more valign, props neoxx, fixes #22712.
git-svn-id: https://develop.svn.wordpress.org/trunk@27037 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-26 20:37:33 +00:00
Andrew Ozz
88fecbeff9 Remove table cellspacing attribute from the admin, part-props MattyRob, fixes #22086.
git-svn-id: https://develop.svn.wordpress.org/trunk@27036 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-26 20:27:21 +00:00
Dominik Schilling (ocean90)
88277b4dba Remove unused code. props nofearinc. fixes #26205.
git-svn-id: https://develop.svn.wordpress.org/trunk@27033 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-26 00:11:18 +00:00
Andrew Ozz
48d24f6bf5 Remove all "valign" attributes from tables in wp-admin, props MikeHansenMe, Marventus. Fixes #22712.
git-svn-id: https://develop.svn.wordpress.org/trunk@27029 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-24 19:05:15 +00:00
nacin
ce00f36ab7 Dashboard widgets: Don't link to Pages or Posts for Authors or Contributors respectively.
props mattheu.
see #26574 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@26999 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-22 16:51:07 +00:00
Andrew Ozz
9aba880b53 Autosave: refactor autosave.js, use heartbeat for transport and move all "Add/Edit Post" related functionality to post.js. See #25272.
git-svn-id: https://develop.svn.wordpress.org/trunk@26995 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-22 04:55:37 +00:00
Drew Jaynes
f2d4a6aa36 Hook docs spacing and standards fixes for wp-admin/includes/ajax-actions.php.
See #25374.


git-svn-id: https://develop.svn.wordpress.org/trunk@26981 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-18 17:05:38 +00:00
Matt Thomas
fc4c73feab The comment screen hides the author column at narrow screen sizes; this adds back the author info above the comment content. Fixes #26618, props SergeyBiryukov, nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@26961 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-16 20:33:45 +00:00
Sergey Biryukov
3a1b1ba755 Remove unnecessary sprintf(). props jdgrimes. fixes #25489.
git-svn-id: https://develop.svn.wordpress.org/trunk@26943 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-14 11:17:10 +00:00
Helen Hou-Sandi
7fc9941d2a Pass the $user_id to the admin_color_scheme_picker hook for context. props nacin. see #26607 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@26924 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-08 21:48:32 +00:00
Drew Jaynes
3086f189cc Inline documentation for hooks in wp-admin/includes/meta-boxes.php.
Props SpencerFinnell for the initial patch.
Fixes #26092.


git-svn-id: https://develop.svn.wordpress.org/trunk@26918 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-08 04:06:01 +00:00
Drew Jaynes
95f756e4fc Inline documentation for hooks in wp-admin/includes/class-wp-media-list-table.php.
Props theorboman for the initial patch. Props kpdesign.
Fixes #25839.


git-svn-id: https://develop.svn.wordpress.org/trunk@26916 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-08 03:52:47 +00:00
Drew Jaynes
00f318650d Inline documentation for hooks in wp-admin/includes/media.php.
Props kpdesign, DrewAPicture.
Fixes #25375.


git-svn-id: https://develop.svn.wordpress.org/trunk@26908 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-06 05:47:51 +00:00
Sergey Biryukov
18c545905b Change 'Width' to 'Layout' to match the hard-coded list of translatable theme features in get_theme_feature_list().
props janrenn.
fixes #26777 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@26905 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-05 17:15:14 +00:00
Sergey Biryukov
0b3022708b Use correct example of a Dashicons helper class in add_menu_page() and register_post_type() docs.
props Rarst.
fixes #26617 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@26884 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-31 10:32:18 +00:00
Sergey Biryukov
9dae1af97c Make sure "UPDATE LOG" in debug emails matches the underlining when translated.
fixes #26621.

git-svn-id: https://develop.svn.wordpress.org/trunk@26883 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-31 10:26:37 +00:00
Andrew Ozz
14ace125ee TinyMCE 4.0.12, first run.
- Removes wp-tinymce-schema.js and mark-loaded.js, no longer needed.
- Removes the inlinepopups and most of the wpdialogs plugins; wpdialog.js is moved to wp-includes/js.
- Adds charmap, compat3x, image, link and textcolor plugins, previously contained in /themes/advanced.
- Updates the wordpress, wpeditimage, wpfullscreen, wpgallery and wplink plugins.
- Updates DFW, wp-admin/js/wp-fullscreen.js.
See #24067.

git-svn-id: https://develop.svn.wordpress.org/trunk@26876 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-28 23:52:04 +00:00
Sergey Biryukov
329672c70d Being consistent is the gist, no single @since should have been missed.
see #26713.

git-svn-id: https://develop.svn.wordpress.org/trunk@26869 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-25 01:59:22 +00:00
Drew Jaynes
bd39e26032 First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin.
Props JustinSainton, SergeyBiryukov, DrewAPicture.
Fixes #26713.


git-svn-id: https://develop.svn.wordpress.org/trunk@26868 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-24 18:56:05 +00:00
Sergey Biryukov
ef8e214888 Add comments for temporary hooks. see #26661.
git-svn-id: https://develop.svn.wordpress.org/trunk@26866 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-23 00:47:59 +00:00
Sergey Biryukov
27352b4e86 Add temporary hooks for the widgets feature team to wp_widget_control().
props westonruter.
see #26661.

git-svn-id: https://develop.svn.wordpress.org/trunk@26865 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-23 00:44:33 +00:00
Ryan Boren
cfd5c395bb The Pinking Shears stir from their slumber, awakened by what may seem, to those
innocent in the ways of The Shears, a triviality, a nothing-of-consequence. But there are consequences indeed for recklessly trailing your whitespace. Naturally, they a dire!

One, two! One, two! And through and through
The Pinking Shears went snicker-snack!
They plucked your tail and with your space
They went sniksnuking back.

Let me tell you, that can be uncomfortable, so always pre-sniksnuk your trailing whites. May The Shears be with you.


git-svn-id: https://develop.svn.wordpress.org/trunk@26851 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-11 19:48:29 +00:00
Andrew Nacin
9b0a9b9cee On update, delete files removed in 3.8.
props JPry.
fixes #26535.


git-svn-id: https://develop.svn.wordpress.org/trunk@26846 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-11 17:37:35 +00:00
Matt Thomas
fc676240c9 Style the Add Comment button as a button. Fixes #26500, props SergeyBiryukov.
git-svn-id: https://develop.svn.wordpress.org/trunk@26834 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-09 19:13:56 +00:00
Andrew Nacin
6c96d3e787 Introduce dashboard_glance_items filter which replaces 3.7 right_now_* hooks that were tied to table markup.
fixes #26495.


git-svn-id: https://develop.svn.wordpress.org/trunk@26832 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-09 19:11:23 +00:00
Helen Hou-Sandi
5b05610ade Remove many of the now-unused images in core. Some images have been left for now, notably our previous style icons, action indicators, and images that see a higher frequency of use in plugins to allow them more time to adapt to the new design. props ocean90, Ipstenu, coffee2code. fixes #26036.
git-svn-id: https://develop.svn.wordpress.org/trunk@26821 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-09 03:20:46 +00:00
Andrew Nacin
098d6a8504 Avoid notices when default and light are not registered color schemes. see #26468.
git-svn-id: https://develop.svn.wordpress.org/trunk@26814 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-09 00:48:15 +00:00
Matt Thomas
9439bb7b4f Expand the Quick Draft section by default. Fixes #26463, props bassgang.
git-svn-id: https://develop.svn.wordpress.org/trunk@26813 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-09 00:42:56 +00:00
Andrew Nacin
4ac6742af9 Nonces are already per-user. see #22862.
git-svn-id: https://develop.svn.wordpress.org/trunk@26793 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-08 07:05:01 +00:00
Andrew Nacin
e41692153c Core updates for the new color schemes.
* Update about page, there's now 8.
 * Display them four wide, not three, and ensure adequate spacing.
 * Use a dedicated nonce.
 * Push Light to the front in addition to Default.
 * Use user-profile.js on about.php. A few extra things are initialized but they are harmless.

see #26468, #26387.


git-svn-id: https://develop.svn.wordpress.org/trunk@26776 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-07 07:45:57 +00:00
Andrew Nacin
9f6f615dd6 Use wp_specialchars_decode() in the upgrade debugging email subject, same as the production email.
props markoheijnen.
fixes #26471.


git-svn-id: https://develop.svn.wordpress.org/trunk@26762 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-07 01:14:43 +00:00
Andrew Nacin
2c16db49b1 Translator's comment for a date_i18n() string.
props netweb.
fixes #26470.


git-svn-id: https://develop.svn.wordpress.org/trunk@26758 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-07 00:37:13 +00:00
Andrew Nacin
292391081a Dashboard: Restore a line that vanished from my editor to print recently published posts. Also fix an off-by-one error.
see [26704]. see #26066.


git-svn-id: https://develop.svn.wordpress.org/trunk@26741 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-06 20:12:10 +00:00
Drew Jaynes
439c61a1ba Inline documentation fixes for hooks and functions introduced in 3.8.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@26736 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-06 19:17:35 +00:00
Andrew Nacin
bb59e40a22 Core updates: Explicitly call wp_cache_delete() after a DB upgrade, as not all cache backends allow the entire backend to be flushed.
props dd32.
fixes #26173.


git-svn-id: https://develop.svn.wordpress.org/trunk@26734 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-06 18:59:29 +00:00
Drew Jaynes
86282508aa Inline documentation fixes for wp_heartbeat_set_suspension().
See #25073.


git-svn-id: https://develop.svn.wordpress.org/trunk@26732 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-06 18:42:50 +00:00
Andrew Nacin
b9cb349dc0 No-JavaScript and no-Customizer support for the new Themes screen.
JavaScript is rarely disabled, but graceful degradation is still important. For example, syntax errors can occur, usually with major WP updates that overhaul entire experiences and update external libraries combined with themes or plugins doing weird or old things. If this error is due to their current theme, a user needs to be able to access the themes screen to switch away from the theme. A more subtle issue could make things painful to diagnose.

This commit renders the grid in PHP (the template is duplicated, but it lightweight, fairly mundane, and easy to sync). On Backbone render, the grid is then re-rendered from JavaScript so searches can occur. Customize and Live Preview is disabled if JS fails to kick in. If JS is disabled, old-school "Preview" links are displayed.

No-Customizer support: The customizer is only supported when the browser supports postMessage (IE8+), and if the frontend is a different domain, CORS (IE10+). We use the .hide-if-no-customize class for this. Pre-customize "Preview" links should use .hide-if-customize.

The .load-customize class should be used to declare a link that opens the customizer. This enables customize-loader.js to intercept this link and load the customizer on top of the current window, making for a smoother experience.

fixes #25964.


git-svn-id: https://develop.svn.wordpress.org/trunk@26726 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-06 16:10:25 +00:00
Matt Mullenweg
2dab52c306 Add and display new tags to highlight the ever-growing number of responsive themes available. Fixes #21442.
Props Otto42 and lancewillett.


git-svn-id: https://develop.svn.wordpress.org/trunk@26711 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-06 01:06:04 +00:00
Andrew Nacin
a7ee089f6f Fix various i18n issues on the dashboard. Limits it to posts and pages only for 3.8.
props SergeyBiryukov, dimadin.
fixes #26066.


git-svn-id: https://develop.svn.wordpress.org/trunk@26704 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-05 23:33:48 +00:00
Andrew Nacin
b7de614f71 Restore "Search Engines Discouraged" to the dashboard.
props JustinSainton.
fixes #26431.


git-svn-id: https://develop.svn.wordpress.org/trunk@26700 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-05 23:04:46 +00:00
Andrew Nacin
fa6cb8145f Dashboard: Rename the Site Content widget (née Right Now) to At a Glance.
see #25824.


git-svn-id: https://develop.svn.wordpress.org/trunk@26697 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-05 22:37:33 +00:00
Andrew Nacin
74d3e9103e Deactivate MP6 on update to 3.8.
If left on, it introduces a lot of weird issues not easily diagnosed. MP6 will be updated before release to prevent itself from functioning 3.8+, but this will cut down on support requests by people who update core but not MP6, which was a fairly popular plugin.

fixes #26334.


git-svn-id: https://develop.svn.wordpress.org/trunk@26692 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-05 21:29:37 +00:00
Andrew Nacin
56b0a18ac2 Dashboard backwards compatibility updates.
* Restore missing wp_dashboard_rss_control() helper.
 * Restore all original 3.7 functions, deprecating many, reusing others. 
 * Rename and remove functions so as not to clash with the original dash plugin.
 * Filter cleanup/restoration.

see #25824, #26334.


git-svn-id: https://develop.svn.wordpress.org/trunk@26690 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-05 21:22:20 +00:00
Andrew Nacin
74ea276315 Theme: When showing an author in the grid (during a search), don't include the author's link.
fixes #26433.


git-svn-id: https://develop.svn.wordpress.org/trunk@26684 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-05 19:08:01 +00:00
Andrew Nacin
006045395c Allow for Dashicons and base64-encoded data:image/svg+xml URIs when specifying menu icons.
Both of these icons can be colored to match the color scheme, including hover states.
Both are accepted for register_post_type()'s menu_icon argument, and also add_menu_page()'s $icon_url argument.

To use a Dashicon, pass the name of the helper class, e.g. 'dashicons-piechart'.
To use an SVG, pass a valid data URI string starting with 'data:image/svg+xml;base64,'.

props helen.
fixes #25147.


git-svn-id: https://develop.svn.wordpress.org/trunk@26664 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-05 06:37:20 +00:00
Matt Mullenweg
cdbcccf498 Create a new tag for themes that have passed the theme check guidelines for accessibility. Fixes #26157
Props lancewillett.



git-svn-id: https://develop.svn.wordpress.org/trunk@26658 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-05 03:48:36 +00:00
Drew Jaynes
ba4187de33 Hook docs fixes following [26645].
See #25721.


git-svn-id: https://develop.svn.wordpress.org/trunk@26648 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 23:31:21 +00:00
Drew Jaynes
98fe4a5aed Hook docs pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@26631 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 20:02:53 +00:00
Andrew Nacin
9194c6593e Add wp_prepare_themes_for_js filter to wp_prepare_themes_for_js().
props kovshenin.
fixes #25948.


git-svn-id: https://develop.svn.wordpress.org/trunk@26625 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 19:20:10 +00:00
Andrew Nacin
6cad5246df Include columns-# CSS class in wp_dashboard() for when the screen supports it.
props westi.
fixes #26354.


git-svn-id: https://develop.svn.wordpress.org/trunk@26617 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 17:27:34 +00:00
Andrew Nacin
3dcc14f58c Restore original properties of the right now (activity) and primary (news) dashboard widgets.
This avoids issues with those trying to remove/disable core meta boxes.

fixes #26392.


git-svn-id: https://develop.svn.wordpress.org/trunk@26611 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 16:55:58 +00:00
Matt Thomas
71588c2933 Revert r26593 so Available and Inactive widgets are once again collapsible. Make the arrows only appear on hover when uncollapsed. Fixes #26327, props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@26608 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 16:30:05 +00:00
Andrew Ozz
93a5bff7a7 Svg-painter:
- Clean up the JS, better names, etc.
- Convert the base64 encode/decode code from jQuery plugin to local use.
- Add missing icon colors for the default theme.
- Make it more error-proof.
Fixes #26333.

git-svn-id: https://develop.svn.wordpress.org/trunk@26601 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 04:12:41 +00:00
Matt Thomas
933a5f252f Set Available and Inactive Widget areas to not collapse, since they don't look like collapsing elements. Fixes #26327, props MikeHansenMe.
git-svn-id: https://develop.svn.wordpress.org/trunk@26593 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-03 21:31:37 +00:00
Andrew Nacin
57bede1005 Use current_user_can('manage_network_plugins') in validate_active_plugins() instead of is_super_admin().
props jdgrimes.
fixes #26068.


git-svn-id: https://develop.svn.wordpress.org/trunk@26590 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-03 21:11:21 +00:00
Andrew Nacin
f627d23555 In dbDelta(), ensure we are not running CREATE TABLE queries for global tables we wish to not upgrade.
props fliespl.
fixes #22134.


git-svn-id: https://develop.svn.wordpress.org/trunk@26566 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-03 17:43:52 +00:00
Helen Hou-Sandi
6e77a372e2 Better Dashboard treatment when in no-JS, especially Quick Draft. props georgestephanis, helen. fixes #26376.
git-svn-id: https://develop.svn.wordpress.org/trunk@26563 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-03 17:31:33 +00:00
Andrew Ozz
75ac2cf131 Heartbeat:
- Bring back heartbeat.interval().
- Rename wp_disable_heartbeat_suspend() to wp_heartbeat_set_suspension().
- Rename the option for disabling suspension from options.suspend to options.suspension.
Fixes #25073.

git-svn-id: https://develop.svn.wordpress.org/trunk@26549 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-03 00:44:22 +00:00
Andrew Nacin
ea5963f944 Remove @uses from get_screen_icon() / screen_icon(). see #26119.
git-svn-id: https://develop.svn.wordpress.org/trunk@26541 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-02 21:58:57 +00:00
Drew Jaynes
4f78450a25 Inline documentation for hooks in wp-admin/includes/update.php.
Props stevenkword for the initial patches.
Fixes #26252.


git-svn-id: https://develop.svn.wordpress.org/trunk@26540 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-02 21:54:24 +00:00
Andrew Nacin
85be737cae Only informally deprecate get_screen_icon() and screen_icon(). fixes #26119.
git-svn-id: https://develop.svn.wordpress.org/trunk@26537 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-02 19:59:40 +00:00
Andrew Nacin
16b6b6b8e4 Simplify the color scheme profile saving JS. see #25858.
git-svn-id: https://develop.svn.wordpress.org/trunk@26535 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-02 19:44:50 +00:00
Andrew Nacin
616eb91d95 Themes: Always include the current theme in the list, even if it is not allowed.
see #25948.


git-svn-id: https://develop.svn.wordpress.org/trunk@26529 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-02 18:45:28 +00:00
Andrew Ozz
b33d0da84c Remove all screen_icon() calls and deprecate the functions, props TobiasBg, fixes #26119
git-svn-id: https://develop.svn.wordpress.org/trunk@26518 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-02 03:52:23 +00:00