Commit Graph

9437 Commits

Author SHA1 Message Date
Andrew Nacin f2dfcad422 Line up elements on themes.php. Line up 'Available Themes' header and search/feature form. Switch to padding instead of margin for #current-theme to prevent margin-uncollapse jitters when animating the feature filter. Move 'Current Theme' inside #current-theme so it is hidden by the feature filter. see #20147.
git-svn-id: https://develop.svn.wordpress.org/trunk@20064 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-01 23:55:09 +00:00
Ryan Boren 7df5a5294d Introduce jQuery Masonry. Use it to arrange header thumbnails on custom header screen. Props aaroncampbell. fixes #17242
git-svn-id: https://develop.svn.wordpress.org/trunk@20060 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-01 18:57:28 +00:00
Andrew Nacin 76a0adc5e2 Remove extra $. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20052 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 22:54:50 +00:00
Andrew Nacin cc503e4315 In WP_Themes_List_Table, don't perform unnecessary sanitization on search terms or filter features. We only use these for case-insensitive comparison. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20048 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 22:19:18 +00:00
Andrew Nacin d7b7ac8c1b 'Network Activate' should be the bulk action on network/plugins.php, to match the action link. props ampt, fixes #19946.
git-svn-id: https://develop.svn.wordpress.org/trunk@20046 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 21:52:27 +00:00
Andrew Nacin 47db4344b9 Have WP_Theme::get_screenshot() default to an absolute URI. Allow 'relative' to be requested. see #20103, see #19816.
git-svn-id: https://develop.svn.wordpress.org/trunk@20043 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 20:31:56 +00:00
Andrew Nacin cdaee9042d Translate page template names! Have WP_Theme::get_page_templates() return templates keyed by filename, not by template name, as it makes more sense. Flip this in get_page_templates() to be compatible. fixes #6007.
git-svn-id: https://develop.svn.wordpress.org/trunk@20041 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 20:18:53 +00:00
Andrew Nacin 9cc63bb04f Use proper object. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20038 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 18:11:49 +00:00
Andrew Nacin c7855fb7bc Use wp_get_theme() rather than get_theme_data() in the verify theme deletion (multisite network) screen. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20037 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 07:50:56 +00:00
Andrew Nacin 53a209a4ee Introduce WP_Theme, wp_get_themes(), and wp_get_theme() to replace get_themes(), get_theme(), get_theme_data(), current_theme_info(), and others.
* Getters and Helpers: Introduces a series of methods to allow for easy generation of headers for display, and other theme metadata, including page templates.
 * Screenshots: Handles support for multiple screenshots. (see # Additional screenshots must be PNG and start with screenshot-2.png, and be sequential to be counted. see #19816.
 * Error Handling: Broken themes have a WP_Error object attached to them.
 * Caching: Introduces a wp_cache_themes_persistently filter (also in [20020]) to enable persistent caching of all filesystem and sanitization operations normally handled by WP_Theme (and formerly get_file_data() and get_themes()). Themes are cached individually and across five different cache keys for different data pieces.
 * Compatibility: A WP_Theme object is backwards compatible with a theme's array formerly returned by get_themes() and get_theme(), and an stdClass object formerly returned by current_theme_info().
 * i18n/L10n: Theme headers are now localizable with proper Text Domain and Domain Path headers, like plugins. (Language packs may remove the requirement for headers.) For page templates, see #6007 (not fixed yet, but will be easy now). For headers, fixes #15858.
 * PHP and CSS files: New methods that fetch a list of theme files (for the theme editor) only on demand, rather than only loading them into memory. fixes #11214.

Functions deprecated:
 * get_themes(), get_allowed_themes() and get_broken_themes() -- use wp_get_themes()
 * get_theme() and current_theme_info() -- use wp_get_theme()
 * get_site_allowed_themes() -- use WP_Theme::get_allowed_on_network()
 * wpmu_get_blog_allowedthemes() -- use WP_theme::get_allowed_on_site()

see also [20016], [20018], [20019], [20020], [20021], [20022], [20025], [20026], [20027]. also fixes #19244.

see #20103.



git-svn-id: https://develop.svn.wordpress.org/trunk@20029 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 21:24:44 +00:00
Andrew Nacin f0c5c18d81 Faster theme searching. Only calculate what is necessary -- if the theme doesn't have all of the features, bail. If a word matches a tag or header, jump to the next word, we don't care how many times it matches. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20027 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:51:19 +00:00
Andrew Nacin 3924c4aab5 Don't sanitize theme tags while trying to search through them, as it is unnecessary. It is also very expensive -- 50% of the pageload for a search was spent sanitizing tags. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20026 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:41:53 +00:00
Andrew Nacin 11c4081aaf Add argument to get_theme_feature_list() to allow the tags to be returned without hitting the WP.org API. We'll be using this to translate tags. Remove trailing space in the 'Light' string. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20025 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:38:09 +00:00
Jon Cave cafa8dab24 Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546.
git-svn-id: https://develop.svn.wordpress.org/trunk@20023 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:29:33 +00:00
Andrew Nacin 21630b2828 Do not save the last visited tab on the multisite Network Themes page and Site Themes tab. These are poor UX, see #18810 for plugins. Entering these screens will always default to 'all' themes view. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20022 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:13:21 +00:00
Jon Cave 4c99743d06 Drop image resizing code from wp_handle_upload(). Fixes #19800.
This code stops wp_handle_upload() from reporting errors when the upload couldn't be moved to its final local and it was a non-JS fallback that is unused.


git-svn-id: https://develop.svn.wordpress.org/trunk@20019 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:02:43 +00:00
Ryan Boren 89e9bcc1d6 Pinking shears 6-20000
git-svn-id: https://develop.svn.wordpress.org/trunk@20000 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-27 19:46:52 +00:00
Ryan Boren 5648306064 Pass post id to get_upload_iframe_src() instead of relying on a global. Props tott. fixes #20003
git-svn-id: https://develop.svn.wordpress.org/trunk@19999 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-27 19:23:03 +00:00
Andrew Nacin 682b2a4b6d Remove out-of-place double quote. props niallkennedy. fixes #20113.
git-svn-id: https://develop.svn.wordpress.org/trunk@19987 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 20:49:54 +00:00
bumpbot 2a0b86ea08 Compress scripts/styles: 3.4-alpha-19983.
git-svn-id: https://develop.svn.wordpress.org/trunk@19983 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 02:00:58 +00:00
Andrew Ozz 0fa723245a HTML in image captions, first run, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@19982 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 01:58:18 +00:00
Peter Westwood 72ade0057d Make sure to echo out the comment_post_ID when building the edit comment form otherwise the post comment counts will get out of sync. Fixes #20108 props dllh.
git-svn-id: https://develop.svn.wordpress.org/trunk@19981 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-23 18:16:46 +00:00
Andrew Nacin 7327a30867 Preserve keys when splitting themes up for pagination. props Utkarsh. fixes #15306.
git-svn-id: https://develop.svn.wordpress.org/trunk@19980 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-23 14:42:01 +00:00
Andrew Nacin 082f9f9739 Use version_compare() when checking installed themes in the theme installer. fixes #20097.
git-svn-id: https://develop.svn.wordpress.org/trunk@19979 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-22 14:03:59 +00:00
bumpbot ccd9fbbbbb Compress scripts/styles: 3.4-alpha-19972.
git-svn-id: https://develop.svn.wordpress.org/trunk@19972 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 19:46:03 +00:00
Daryl Koopersmith 01cb46f5d7 Second pass at infinite scroll for themes, including polling, fixed paging, and fewer ajax calls. props DH-Shredder, helenyhou, garyc40. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@19971 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 19:44:10 +00:00
bumpbot 7399c1edc8 Compress scripts/styles: 3.4-alpha-19967.
git-svn-id: https://develop.svn.wordpress.org/trunk@19967 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 15:45:56 +00:00
Andrew Nacin f5e87e48af Allow counting by characters in lieu of a word count, for East Asian languages. First pass. see #8759.
git-svn-id: https://develop.svn.wordpress.org/trunk@19966 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 15:35:05 +00:00
Andrew Nacin 80b14c9de7 Allow bundled plugin headers to be translated. see #19597.
git-svn-id: https://develop.svn.wordpress.org/trunk@19965 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 15:26:08 +00:00
Andrew Nacin 4ca469ce8f Align the spacing of the multisite constants with what has been long-established in wp-config and wp-config-sample. props ryanduff, fixes #19869.
git-svn-id: https://develop.svn.wordpress.org/trunk@19956 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-20 16:35:03 +00:00
bumpbot 1ad8b7a376 Compress scripts/styles: 3.4-alpha-19955.
git-svn-id: https://develop.svn.wordpress.org/trunk@19955 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-20 00:30:57 +00:00
Andrew Ozz 789c4388df Refresh wpCookie, fixes #20078
git-svn-id: https://develop.svn.wordpress.org/trunk@19954 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-19 23:08:10 +00:00
Andrew Nacin 859a366cdc Add an @return. fixes #19974.
git-svn-id: https://develop.svn.wordpress.org/trunk@19950 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 21:59:47 +00:00
Andrew Nacin 74124c36ea Add WP_Screen methods get_help_tabs(), get_help_tab( $id ), get_help_sidebar(). Store help tabs by tab ID, not numeric key; allows proper removal with remove_help_tab( $id ). props BenChapman, npetetin for initial getter patch. fixes #19974.
git-svn-id: https://develop.svn.wordpress.org/trunk@19944 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 23:40:02 +00:00
Andrew Nacin 0d31edafda Only show 'Show on screen' once in screen options. fixes #17431.
git-svn-id: https://develop.svn.wordpress.org/trunk@19943 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 23:19:52 +00:00
Andrew Nacin 07cfcf9cb6 Use class name for @return. props markuak, fixes #20063.
git-svn-id: https://develop.svn.wordpress.org/trunk@19942 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 23:15:05 +00:00
Daryl Koopersmith 691ca6ead3 Don't unintentionally override the global variable. props ocean90, see #20062.
git-svn-id: https://develop.svn.wordpress.org/trunk@19941 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 19:17:38 +00:00
Andrew Nacin 7eb54b91be Remove unused logo-login.png after all. fixes #19955.
git-svn-id: https://develop.svn.wordpress.org/trunk@19940 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 05:06:09 +00:00
bumpbot af7e8999c8 Compress scripts/styles: 3.4-alpha-19939.
git-svn-id: https://develop.svn.wordpress.org/trunk@19939 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 05:00:52 +00:00
Andrew Nacin ec33125750 Remove old logo-login.gif from manifest. props edward mindreantre, see #19955.
git-svn-id: https://develop.svn.wordpress.org/trunk@19938 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 04:59:42 +00:00
Andrew Nacin 09b4c5d21f Update login-logo.png to use proper color. Copy it over wordpress-logo.png. Make that one canonical, and stop using login-logo.png. Leave it for plugins. props iammattthomas. see #19955.
git-svn-id: https://develop.svn.wordpress.org/trunk@19937 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 04:57:56 +00:00
Andrew Nacin ee01523b96 Deprecate ancient "debugging" tools.
* logIO() and the global $xmlrpc_logging in XML-RPC.
 * log_app() and the global $app_logging in APP.
 * debug_fwrite(), debug_fopen(), debug_fclose(), and $debug.
see #20051.



git-svn-id: https://develop.svn.wordpress.org/trunk@19935 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 00:02:42 +00:00
Jon Cave abfcb78ce7 Correct faulty logic when dealing with autocomplete_users_for_site_admins, and break logic into multiple lines. See #19810.
git-svn-id: https://develop.svn.wordpress.org/trunk@19934 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-16 17:12:10 +00:00
bumpbot 3189f43063 Compress scripts/styles: 3.4-alpha-19931.
git-svn-id: https://develop.svn.wordpress.org/trunk@19931 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-15 19:27:20 +00:00
Jon Cave 6792ef3018 Display menu_order value in quick edit for non-hierarchical post types. Props nikolay.yordanov. Fixes #19911, see #18352.
git-svn-id: https://develop.svn.wordpress.org/trunk@19929 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-15 17:19:59 +00:00
Jon Cave 5d9ade050e Remove use of nonexistent include_last_update_time arg from get_terms() call. See #19953.
git-svn-id: https://develop.svn.wordpress.org/trunk@19928 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-15 16:48:27 +00:00
Ryan Boren edc9b42f36 Lose unnecessary space. Props SergeyBiryukov. fixes #19964
git-svn-id: https://develop.svn.wordpress.org/trunk@19921 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 17:25:40 +00:00
Andrew Nacin 42b95ae4c9 Cap check help text. see #19933.
git-svn-id: https://develop.svn.wordpress.org/trunk@19920 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 17:23:31 +00:00
Ryan Boren d7454c743c Cap check help text. Add mention of Welcome box. Props dougwrites, nacin. fixes #19933
git-svn-id: https://develop.svn.wordpress.org/trunk@19919 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 17:12:27 +00:00
Jon Cave 5055a133d5 s/oembed_cache/oembed-cache/ in admin AJAX $core_actions_*. Props jeremyfelt. Fixes #20038.
git-svn-id: https://develop.svn.wordpress.org/trunk@19917 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 10:01:00 +00:00