Commit Graph

18320 Commits

Author SHA1 Message Date
bumpbot 36ee9105d8 Compress scripts/styles: 3.4-alpha-20061.
git-svn-id: https://develop.svn.wordpress.org/trunk@20061 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-01 19:00:20 +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 Ozz 5d4a0adebd Don't pass non-existing rtl stylesheet to TinyMCE, update phpdoc for add_editor_style(), see #19437
git-svn-id: https://develop.svn.wordpress.org/trunk@20059 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-01 00:18:26 +00:00
Daryl Koopersmith 98c3fef8f7 Theme Customizer: Use wp_loaded for customize setting registration. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20058 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-01 00:14:51 +00:00
Daryl Koopersmith 82c8fbcf8e Theme Customizer: Use home_url instead of get_home_url. props nacin, fixes #20137, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20057 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 23:28:13 +00:00
bumpbot bc81976ef2 Compress scripts/styles: 3.4-alpha-20056.
git-svn-id: https://develop.svn.wordpress.org/trunk@20056 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 23:15:21 +00:00
Daryl Koopersmith e2a48b2abb Theme Customizer: Use a late priority when registering customize settings to ensure we catch any theme settings added earlier on init (such as nav menus). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20055 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 23:09:38 +00:00
Andrew Ozz 6afe9edf69 Improve adding more css classes to the editor body, add "rtl", "ie7", "ie8", "ie9" so they can be targeted in editor-style.css, see #19437
git-svn-id: https://develop.svn.wordpress.org/trunk@20054 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 23:06:24 +00:00
Andrew Nacin b57da5a92a Strict comparisons for the $allowed arg for wp_get_themes(). Otherwise 'network' does == true. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20053 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 23:04:25 +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
Daryl Koopersmith c3249b5f7f Theme Customizer: Load the preview iframe with the same scheme as the admin to prevent security warnings. props ocean90. fixes #20137, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20051 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 22:43:12 +00:00
bumpbot a13ce71c43 Compress scripts/styles: 3.4-alpha-20050.
git-svn-id: https://develop.svn.wordpress.org/trunk@20050 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 22:30:20 +00:00
Daryl Koopersmith fff67f819c Theme Customizer: Bind the preview iframe load event when triggering refresh instead of when creating the iframe. see #19910.
The loaded event should only fire when we've actually triggered a refresh. If loaded is bound when the iframe is created, sometimes the blank iframe will fire a 'load' event before a refresh is triggered (this occurred with relative frequency in firefox). By binding the loaded event in the refresh function, we prevent this from occurring.

git-svn-id: https://develop.svn.wordpress.org/trunk@20049 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 22:24:46 +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 5e9b785d5d Add widget_comments_args and widget_post_args filters. props ramiy, fixes #16159.
git-svn-id: https://develop.svn.wordpress.org/trunk@20047 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 21:56:24 +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 5bab3555d7 Use correct variable; return correct value for get_screenshot() when value is uncached. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20045 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 20:46:41 +00:00
Andrew Nacin f6299042c0 Remove debug cruft. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20044 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 20:41:01 +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 f4b7756402 Can haz recursion? get_current_theme() is deprecated in favor of wp_get_theme(), not itself. props duck_. see #20138.
git-svn-id: https://develop.svn.wordpress.org/trunk@20042 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 20:22:16 +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 6a4a8df204 Deprecate get_current_theme(). Use (string) wp_get_theme() to get the translated name of the theme. Keep the current_theme option for now. see #20103, see #20138.
git-svn-id: https://develop.svn.wordpress.org/trunk@20040 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 20:07:22 +00:00
Andrew Nacin 43913e382c (string) WP_Theme is now the theme name, translated. Good replacement for get_current_theme(); better than wp_get_theme()->display('Name'). see #20103, see #20138.
git-svn-id: https://develop.svn.wordpress.org/trunk@20039 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 19:27:54 +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
bumpbot fe736e6ca1 Compress scripts/styles: 3.4-alpha-20036.
git-svn-id: https://develop.svn.wordpress.org/trunk@20036 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 06:31:00 +00:00
Daryl Koopersmith 0d1e599420 Theme Customizer: Don't switch themes and update settings when the enter key is pressed. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20035 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 06:28:02 +00:00
Daryl Koopersmith a9cafbf2e8 Theme Customizer: Trigger UI updates only when necessary.
git-svn-id: https://develop.svn.wordpress.org/trunk@20034 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 06:18:17 +00:00
Andrew Nacin 7253e53962 Update switch_theme() to use wp_get_theme(). see #20103, #20138.
git-svn-id: https://develop.svn.wordpress.org/trunk@20033 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 05:09:29 +00:00
bumpbot ebe7582099 Compress scripts/styles: 3.4-alpha-20032.
git-svn-id: https://develop.svn.wordpress.org/trunk@20032 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 01:31:04 +00:00
Daryl Koopersmith 78bf972b68 Improve page loads in the theme customizer by layering loading iframes. Automate refreshing, but debounce multiple refresh events to prevent hammering the server with requests. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20031 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 01:17:21 +00:00
Daryl Koopersmith 1fd6d4bfd3 Update customize-controls.php to use new WP_Theme API. see #19910, [20029].
git-svn-id: https://develop.svn.wordpress.org/trunk@20030 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 21:41:19 +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
Daryl Koopersmith 233c465de2 Theme Customizer: Strip slashes when sanitizing previewed values. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20028 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 21:21:16 +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
Ryan Boren e6411302f0 Return to apply_filters_ref_array() for back compat with callbacks that specify a ref for the args. Props scribu. see #18536
git-svn-id: https://develop.svn.wordpress.org/trunk@20024 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:37:47 +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
Andrew Nacin 696f52729e Theme root transient caching is now in search_theme_directories(), not get_themes(). see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20021 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:08:08 +00:00
Andrew Nacin 3459ca246e Rewrite search_theme_directories() -- better performance and allow for caching.
* Update it to use PHP5 scandir().
 * Don't scan individual theme dirs -- we only need to check for style.css. (Solid performance gains.)
 * Improve and simplify branching.
 * Introduce wp_cache_themes_persistently filter to enable persistent caching of the return value, based on the theme_roots transient.

see #20103.


git-svn-id: https://develop.svn.wordpress.org/trunk@20020 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:05:00 +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
Andrew Nacin 75540de79c Clarify second argument for get_raw_theme_root() as the multiple negatives can get confusing. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20018 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 19:59:53 +00:00
Lance Willett 981992f8fb Twenty Twelve: make proper use of the cached jQuery collection in navigation.js, props mattwiebe. Fixes #20131.
git-svn-id: https://develop.svn.wordpress.org/trunk@20017 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 19:17:04 +00:00
Andrew Nacin d738367d99 Fix the return value of get_theme_root() when the theme root is outside of WP_CONTENT_DIR, thus making it absolute rather than the typical relative theme root.
Make get_theme_root_uri() tolerate an absolute path for a theme root. It will now make an attempt to find a corresponding URL for absolute paths as well.

see #17597.



git-svn-id: https://develop.svn.wordpress.org/trunk@20016 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 18:02:21 +00:00
Andrew Nacin bf2495e09c Revert [20001]. Theme roots that are passed around, stored, and cached can be valid as absolute paths or paths relative to wp-content. We'll have to patch this elsewhere. see #17597.
git-svn-id: https://develop.svn.wordpress.org/trunk@20015 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 16:22:26 +00:00
bumpbot 006515c8cc Compress scripts/styles: 3.4-alpha-20014.
git-svn-id: https://develop.svn.wordpress.org/trunk@20014 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 14:18:24 +00:00
Andrew Ozz b5a3c50057 HTML in image captions: improve converting the caption html elements to a shortcode, catch some rare cases where image with a caption is pasted in the visual editor, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20013 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 08:03:40 +00:00
potbot ffa265cebd POT, generated from r20011
git-svn-id: https://develop.svn.wordpress.org/trunk@20012 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 06:18:04 +00:00