Commit Graph

18237 Commits

Author SHA1 Message Date
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
Lance Willett c41874b4d7 Twenty Twelve: remove an unneeded, presentational class value, see #19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@20011 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 05:28:08 +00:00
Lance Willett e6282c7f0d Twenty Twelve: better comment markup and styles, props drewstrojny. See #19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@20010 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 05:24:57 +00:00
Lance Willett 90df91666c Twenty Twelve: correctly enqueue the fonts CSS file, see #19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@20009 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 05:19:50 +00:00
potbot 326b2db4fa POT, generated from r20007
git-svn-id: https://develop.svn.wordpress.org/trunk@20008 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 04:17:41 +00:00
Lance Willett 91511b6a18 Twenty Twelve: add support for toggling the navigation menu in small screens. See #19978.
Triggered when a viewport is under 600 pixels wide. This functionality depends on JS being enabled, and will naturally fall back to a normal, expanded menu for a client without JS.

Props iandstewart for the original JS file and concept.


git-svn-id: https://develop.svn.wordpress.org/trunk@20007 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 03:59:47 +00:00
Lance Willett 2a1dff3136 Twenty Twelve: better "no posts found" message and action for index view. If a logged-in user can edit posts, show an appropriate message. Otherwise, show the normal "no posts found" message. See #19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@20006 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 03:48:34 +00:00
potbot fc85a24fea POT, generated from r20003
git-svn-id: https://develop.svn.wordpress.org/trunk@20005 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 03:17:50 +00:00
Lance Willett 4709676a6f Twenty Twelve: remove test lines from r20003
git-svn-id: https://develop.svn.wordpress.org/trunk@20004 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 03:14:00 +00:00
Lance Willett 28592c377a Twenty Twelve: use the time element for image attachment views, and `esc_html()` for `get_the_date()` in the element's output. Props iandstewart, see #19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@20003 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 03:10:53 +00:00
Andrew Nacin 563c3231b2 Move the template loading functions from wp-includes/theme.php to wp-includes/template.php. This includes get_query_template(), locate_template(), and friends. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20002 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 01:49:49 +00:00
Andrew Nacin 97adddcaf7 Always return an absolute path in get_raw_theme_root() and get_theme_roots().
These functions were changed in [15641] to avoid any calculations when only one theme directory is registered. However, the short-circuit ended up being relative to WP_CONTENT_DIR, rather than absolute. This broke situations where theme roots are outside the content directory (technically allowed), and made return values inconsistent, as when multiple roots were registered, absolute paths were always returned.

fixes #17597. see #20103. see #14911.



git-svn-id: https://develop.svn.wordpress.org/trunk@20001 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 01:28:56 +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
bumpbot b9736c98e6 Compress scripts/styles: 3.4-alpha-19998.
git-svn-id: https://develop.svn.wordpress.org/trunk@19998 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:31:03 +00:00
bumpbot 071026ba26 Compress scripts/styles: 3.4-alpha-19996.
git-svn-id: https://develop.svn.wordpress.org/trunk@19997 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:16:01 +00:00
Andrew Nacin fefbd866d6 Correct [19952]. see #19592.
git-svn-id: https://develop.svn.wordpress.org/trunk@19996 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:15:08 +00:00
Daryl Koopersmith 9f29c06954 Introduce new theme customizer to replace theme preview. Rough first pass. props koopersmith, ocean90. see #19910.
Merges in http://plugins.svn.wordpress.org/gandalf/branches/dev/ rev 510148.

git-svn-id: https://develop.svn.wordpress.org/trunk@19995 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:12:43 +00:00
bumpbot 8ba7abcdef Compress scripts/styles: 3.4-alpha-19994.
git-svn-id: https://develop.svn.wordpress.org/trunk@19994 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 02:15:56 +00:00
Andrew Ozz d3cecfc612 Use json_encode when outputting translated strings for use in TinyMCE, fixes #20119
git-svn-id: https://develop.svn.wordpress.org/trunk@19993 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 02:11:29 +00:00
Andrew Nacin eecaca2457 Add jQuery postMessage v 0.2. Dual licensed MIT/GPL. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@19992 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 02:04:17 +00:00
bumpbot 31e28f6f2e Compress scripts/styles: 3.4-alpha-19991.
git-svn-id: https://develop.svn.wordpress.org/trunk@19991 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 00:01:02 +00:00
Andrew Ozz ffdbe9be58 TinyMCE: move the WordPress plugins styles to the theme's stylesheet, fixes #20118
git-svn-id: https://develop.svn.wordpress.org/trunk@19990 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 23:46:04 +00:00
bumpbot 076239d0ed Compress scripts/styles: 3.4-alpha-19989.
git-svn-id: https://develop.svn.wordpress.org/trunk@19989 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 22:30:59 +00:00
Andrew Ozz d1eb773689 Close TinyMCE popups/dialogs when clicking on the background, fixes #20117
git-svn-id: https://develop.svn.wordpress.org/trunk@19988 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 22:29:46 +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
Andrew Ozz cb306d5f4b Add new string to the proper i18n object, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@19986 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 20:42:36 +00:00
bumpbot d3d4cb95e8 Compress scripts/styles: 3.4-alpha-19985.
git-svn-id: https://develop.svn.wordpress.org/trunk@19985 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 19:30:59 +00:00
Andrew Ozz 1a357fa920 Don't show edit/remove image buttons in the visual editor when an image is floated, doesn't have a caption and there is text in the same paragraph, props solarissmoke, fixes #19611
git-svn-id: https://develop.svn.wordpress.org/trunk@19984 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 19:18:59 +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