Commit Graph

9502 Commits

Author SHA1 Message Date
Andrew Nacin d49d30651b Only grow input.small-text if type='number'. see [20168], see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20201 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:28:32 +00:00
Andrew Nacin 492400a0eb comment_max_links may be zero to bypass the moderation check entirely. [20168] erred. see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20200 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:26:25 +00:00
Andrew Nacin eb066c0b33 Adjust site upload space HTML5 type='number' validation. see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20199 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:16:21 +00:00
Andrew Nacin a30c7c32c4 Remove type='number' from list table page inputs out of a concern for UX, as well as styling issues. fixes #20247. see #17863 for further discussion.
git-svn-id: https://develop.svn.wordpress.org/trunk@20198 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-16 04:04:07 +00:00
Andrew Nacin ce48b0d471 Revert type="email" (HTML5) as some browsers that do validation on these fields do not work for IDN domains yet. Core does not support these well either, but server-side validation can at least be dealt with by a plugin. see #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20196 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 18:09:14 +00:00
Andrew Nacin a72a104a4c Change 'Post Format' bulk/quick edit label to 'Format'. Consistent with the UI and prevents word wrapping. Tidy logic. see #20245.
git-svn-id: https://develop.svn.wordpress.org/trunk@20195 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 17:19:30 +00:00
Andrew Nacin 183c5df8c2 Hide unsupported post formats from bulk edit. fixes #20245.
git-svn-id: https://develop.svn.wordpress.org/trunk@20194 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 17:17:56 +00:00
Andrew Nacin e71167bbee Updates to WP_Theme, wp_get_themes(), and related deprecated functions, after [UT570] [UT578] [UT579]. see #20103.
* ['Template Files'] and ['Stylesheet Files'] need to return files from the parent theme as well.
 * Don't strip links from the Author header. Some themes rely on the previous behavior, such as to link multiple authors (Sandbox, for example.) Don't restore links to the Name, that's just a bad idea.
 * Ensure we are always passing around arrays in get_files/scandir.
 * Better inline doc for wp_get_themes() arguments.
 * Introduce a 'force' flag for search_theme_directories() to re-scan, rather than return the cache. We will use this to re-build the theme_roots transient in get_theme_roots(), but it is more helpful for unit tests. Since search_theme_directories() is cached, don't cache again in wp_get_themes(). (Again benefits testing.)
 * Handle duplicate theme names in the old get_themes() when two themes match (and neither are a default theme, which is already handled). wp_get_themes() will consider both names to be the same; this is just for back compat since get_themes() is keyed by name.
 * Include an old array key in wp_broken_themes().



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

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

git-svn-id: https://develop.svn.wordpress.org/trunk@20179 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 04:14:05 +00:00
bumpbot 02e1841cc4 Compress scripts/styles: 3.4-alpha-20175. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20175 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-14 22:00:22 +00:00
Andrew Ozz 995926a5f0 Add support for line breaks to the caption textareas, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20174 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-14 21:53:11 +00:00
Andrew Nacin 0459805741 Increase default upload space for sites on a network from 10M to 100M. props andrea_r. fixes #18831.
git-svn-id: https://develop.svn.wordpress.org/trunk@20170 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-10 22:07:17 +00:00
bumpbot 9890600190 Compress scripts/styles: 3.4-alpha-20169.
git-svn-id: https://develop.svn.wordpress.org/trunk@20169 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-10 01:30:30 +00:00
Andrew Ozz fcbd8f7f57 Set proper HTML5 input types in the admin, props georgestephanis, fixes #17863
git-svn-id: https://develop.svn.wordpress.org/trunk@20168 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-10 01:23:48 +00:00
bumpbot 1ae155013d Compress scripts/styles: 3.4-alpha-20167. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20167 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 23:30:29 +00:00
Andrew Ozz 78c8dedcdc Add support for DFW for all instances of the editor, part props sushkov, fixes #19843
git-svn-id: https://develop.svn.wordpress.org/trunk@20166 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 23:23:10 +00:00
bumpbot 4147d09fd0 Compress scripts/styles: 3.4-alpha-20165.
git-svn-id: https://develop.svn.wordpress.org/trunk@20165 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 01:45:40 +00:00
Andrew Ozz 654e72714c Add new comment from post edit screen, partial props: garyc40, see #15527
git-svn-id: https://develop.svn.wordpress.org/trunk@20164 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 01:30:11 +00:00
Andrew Nacin f173370ae1 Don't show the Network Enable link for broken themes. Include broken themes in searching on network/themes.php. fixes #20099, see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20160 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 17:08:55 +00:00
Andrew Nacin c7b3d21c18 In multisite, list broken themes on network/themes.php instead of on individual Manage Themes pages. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20151 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 07:32:42 +00:00
bumpbot 59844ad848 Compress scripts/styles: 3.4-alpha-20150.
git-svn-id: https://develop.svn.wordpress.org/trunk@20150 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 07:00:38 +00:00
Andrew Nacin df153a9a64 Add missing CSS selectors for when these admin menus are missing submenus. fixes #20199.
git-svn-id: https://develop.svn.wordpress.org/trunk@20149 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 06:59:02 +00:00
Andrew Nacin f9d7952855 The allowed_themes rolling upgrade for individual sites should not add empty allowedthemes arrays. If there are no allowed themes, don't add an empty option. Move the network rolling upgrade to upgrade_network(). see #20146.
git-svn-id: https://develop.svn.wordpress.org/trunk@20148 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 03:22:39 +00:00
Andrew Nacin c57039543d Always print the Author in the MS themes list table. display('Author') will be 'Anonymous' if no author is specified. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20147 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 00:01:35 +00:00
Daryl Koopersmith 8ae9285c2a Combine two strings. Cheatin', uh?
git-svn-id: https://develop.svn.wordpress.org/trunk@20143 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 19:00:12 +00:00
bumpbot ff65fe6d6b Compress scripts/styles: 3.4-alpha-20142.
git-svn-id: https://develop.svn.wordpress.org/trunk@20142 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 18:30:21 +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
bumpbot eb50f7efa4 Compress scripts/styles: 3.4-alpha-20139.
git-svn-id: https://develop.svn.wordpress.org/trunk@20139 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 17:45:21 +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
bumpbot 98715e56d9 Compress scripts/styles: 3.4-alpha-20134.
git-svn-id: https://develop.svn.wordpress.org/trunk@20134 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 03:30:21 +00:00
Daryl Koopersmith f5b9beb8dd Theme Customizer: Move contents of customize.loader.css to wp-admin.css. Make markup/CSS for the full-screen overlay modular. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20133 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 03:19:35 +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
bumpbot d24750e3a1 Compress scripts/styles: 3.4-alpha-20115.
git-svn-id: https://develop.svn.wordpress.org/trunk@20115 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 07:45:20 +00:00
Andrew Ozz e169217ad0 Based on the current UX feedback, remove the "Insert Link" UI from under the caption fields, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20114 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 07:31:31 +00:00
Andrew Nacin 21dd77dbe2 Use new WP_Theme API in list_theme_updates(). fixes #20173. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20113 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 13:03:48 +00:00
Daryl Koopersmith 90a115e4b4 Partially revert [20100]. The list_args JS variable cannot be extended due to its use as an argument in fetch-list. see #19815.
We should reattempt extending the args created in WP_List_Table, but will need to deprecate the current list_args to do so.

Also, infinite scroll on themes pages is no longer broken. Go team.

git-svn-id: https://develop.svn.wordpress.org/trunk@20104 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-03 02:40:43 +00:00
bumpbot ba75fc6e7d Compress scripts/styles: 3.4-alpha-20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20103 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-03 00:30:21 +00:00
Andrew Nacin a7122f9269 Don't hide PHP warnings under the toolbar in the admin. fixes #19196.
git-svn-id: https://develop.svn.wordpress.org/trunk@20102 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-03 00:29:50 +00:00
Andrew Nacin b6b4d37fcb Allow WP_List_Table::_js_vars() to take an array of additional args to add. Allows us to have a single variable printing data when child classes need more data. Also, fix compact() call in [20094]. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20100 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 23:06:31 +00:00
Andrew Nacin c56b5f3f59 Use sanitize_key(). sanitize_title_with_dashes() is more than we need. see #19815. see [20096], [20097].
git-svn-id: https://develop.svn.wordpress.org/trunk@20098 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:32:29 +00:00
Andrew Nacin 9f47e027ca Revert [20096] which was an accidental partial revert of [20094]. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20097 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:31:15 +00:00
Andrew Nacin 7dd527a421 Use sanitize_key() for theme search tags/features. sanitize_title_with_dashes() is overkill. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20096 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:26:58 +00:00
bumpbot fd8c500bda Compress scripts/styles: 3.4-alpha-20095.
git-svn-id: https://develop.svn.wordpress.org/trunk@20095 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:15:21 +00:00
Andrew Nacin 43209998c6 Output themes and theme-install infinite scrolling args in JS, rather than parsing query strings. props DH-Shredder, helenyhou. Make WP_Theme_Install_List_Table extend WP_Themes_List_Table. Doesn't help much yet, but we should be able to dry things up further. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20094 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:09:26 +00:00
Jon Cave d996b72215 Use tabs for indentation.
git-svn-id: https://develop.svn.wordpress.org/trunk@20093 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:03:15 +00:00
Jon Cave c6d3eafb7e Drop unnecessary if-statements which also have some strange logic. Fixes #20159.
git-svn-id: https://develop.svn.wordpress.org/trunk@20092 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:01:41 +00:00