Commit Graph

292 Commits

Author SHA1 Message Date
Mark Jaquith 0f477199c3 Revert [15611] for 3.1. Needs more time for peer review and iteration. see #14310
git-svn-id: https://develop.svn.wordpress.org/trunk@17214 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-04 07:23:41 +00:00
Ryan Boren 26597c2e34 Ignore unsupported post types in add_theme_support(). Props garyc40. fixes #16073
git-svn-id: https://develop.svn.wordpress.org/trunk@17213 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-03 23:56:42 +00:00
Andrew Nacin 1c309312a0 Revert [16915]. Don't honor the page template for the posts page. Deal with this with a better UX in 3.2. see #15513, fixes #15945.
git-svn-id: https://develop.svn.wordpress.org/trunk@17123 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-23 17:05:47 +00:00
Ryan Boren 34ef8c8df9 Translations in title attributes require esc_attr().
git-svn-id: https://develop.svn.wordpress.org/trunk@17102 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-21 17:17:58 +00:00
Peter Westwood 373ed6ae4e -- bad white space part deux
git-svn-id: https://develop.svn.wordpress.org/trunk@17023 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-17 08:42:37 +00:00
Peter Westwood 6853258d19 If we are previewing don't show the admin bar. See #15856
git-svn-id: https://develop.svn.wordpress.org/trunk@17020 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-17 08:32:53 +00:00
Andrew Nacin a653754287 Add theme_mods option if is_admin. props MarkJaquith, fixes #14828.
git-svn-id: https://develop.svn.wordpress.org/trunk@16958 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-15 17:39:00 +00:00
Andrew Nacin 8b6cf91dc9 Revert to WP_DEFAULT_THEME if a child theme is in use and no style.css is present. fixes #15712, props greuben.
git-svn-id: https://develop.svn.wordpress.org/trunk@16925 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-14 19:19:47 +00:00
Andrew Nacin 70b6bbcfa8 Revert to WP_DEFAULT_THEME if a child theme is in use and no style.css is present. fixes #15712.
git-svn-id: https://develop.svn.wordpress.org/trunk@16924 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-14 19:17:49 +00:00
Ryan Boren ccd108bd5e Honor the page template when a page is the home page but not also the front page. Props filosofo. fixes #15513
git-svn-id: https://develop.svn.wordpress.org/trunk@16915 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-14 15:45:19 +00:00
Ryan Boren 6dc2d07bc4 Pink trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@16900 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-13 21:21:50 +00:00
Andrew Nacin 0979c21ab0 Make get_header_image() ssl-aware. fixes #14835.
git-svn-id: https://develop.svn.wordpress.org/trunk@16846 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 17:59:35 +00:00
Andrew Nacin 3a9829f9f1 Introduce remove_editor_styles(). fixes #14903.
git-svn-id: https://develop.svn.wordpress.org/trunk@16721 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-04 10:09:00 +00:00
Andrew Nacin 136f212baa Introduce remove_custom_background(). see #14903.
git-svn-id: https://develop.svn.wordpress.org/trunk@16720 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-04 09:59:35 +00:00
Andrew Nacin 368926d657 Make sure get_themes() returns the proper template and stylesheet directory paths. Use the correct variables. fixes #15671.
git-svn-id: https://develop.svn.wordpress.org/trunk@16711 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-03 22:53:01 +00:00
Mark Jaquith 74a8e25463 Fix typo in PHPdoc. props PeteMall.
git-svn-id: https://develop.svn.wordpress.org/trunk@16697 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 22:56:55 +00:00
Andrew Nacin 6297b3184b Return true if not is_admin. Tidy. see #14903.
git-svn-id: https://develop.svn.wordpress.org/trunk@16677 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 00:50:23 +00:00
Andrew Nacin 8ca2300955 Introduce remove_custom_image_header(). see #14903.
git-svn-id: https://develop.svn.wordpress.org/trunk@16674 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 00:16:35 +00:00
Ryan Boren 36a4508140 Update since phpdoc. Props demetris. fixes #15445
git-svn-id: https://develop.svn.wordpress.org/trunk@16660 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-01 19:24:38 +00:00
Ryan Boren 81ae3cb21e Register the default theme dir in wp-settings.php so that it is registered even when get_themes() doesn't run. Fix counting of theme dirs. Add option to get_raw_theme_root() to disregard the current theme root cache. see #14911
git-svn-id: https://develop.svn.wordpress.org/trunk@16424 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 16:11:44 +00:00
Andrew Nacin 200eefec46 Use square brackets instead of braces for string access. props hakre, fixes #13900.
git-svn-id: https://develop.svn.wordpress.org/trunk@16340 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 09:53:55 +00:00
Mark Jaquith ef54c47f7a add_theme_support( 'post-formats', array( 'aside', 'image', 'etc' ) ); Add UI for choosing a post format, and save the choice. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16174 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-04 07:41:07 +00:00
scribu 58f4333233 Use get_queried_object() in more get_*_template() functions. Fixes #15263
git-svn-id: https://develop.svn.wordpress.org/trunk@16115 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-31 11:23:10 +00:00
scribu b4988b968b use get_queried_object() wrappers throughout. See #14015
git-svn-id: https://develop.svn.wordpress.org/trunk@16114 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-31 11:02:17 +00:00
Andrew Nacin af1bafa67b Remove unnecessary wp_cache_delete calls. props shidouhikari, fixes #14080.
git-svn-id: https://develop.svn.wordpress.org/trunk@16029 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 05:22:45 +00:00
Andrew Nacin b7ffec08f8 Allow disabling of custom header uploads via remove_theme_support. props jorbin, fixes #14837.
git-svn-id: https://develop.svn.wordpress.org/trunk@15828 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 07:12:34 +00:00
Andrew Nacin 86ab32a196 Custom post type archives. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15803 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 10:39:47 +00:00
scribu e5354a9e00 Allow string as first parameter to locate_template(). Props chrisbliss18 for initial patch. Fixes #15061
git-svn-id: https://develop.svn.wordpress.org/trunk@15771 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-10 22:10:36 +00:00
Andrew Nacin 07fca17d6d Some doc updates. see #15048.
git-svn-id: https://develop.svn.wordpress.org/trunk@15739 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 05:59:50 +00:00
Andrew Nacin 202ec80a4d Shift theme mods to be reliant on the theme slug instead of name. fixes #15048.
git-svn-id: https://develop.svn.wordpress.org/trunk@15736 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-06 21:00:17 +00:00
Andrew Nacin 24294c1c83 Account for Twenty Ten in theme name collisions and properly fall back to TT in get_current_theme(). fixes #15719, props tonyf12.
git-svn-id: https://develop.svn.wordpress.org/trunk@15720 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 19:50:13 +00:00
Ryan Boren 6121bb1234 Don't fetch theme_roots transient on every page load. Avoid it altogether if there is only one theme dir. fixes #14911
git-svn-id: https://develop.svn.wordpress.org/trunk@15641 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-21 19:41:35 +00:00
scribu 5c95616ce8 Clean up taxonomy queries in WP_Query. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15613 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-13 16:44:14 +00:00
scribu 0b09ec156f Apply filters consistently in get_*_template() functions. Fixes #14310
git-svn-id: https://develop.svn.wordpress.org/trunk@15611 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-12 18:46:18 +00:00
Andrew Nacin 9494e4ce7e Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
Peter Westwood 785c20b082 Remove debug cruft. See #14315 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@15435 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-17 11:13:35 +00:00
Peter Westwood 8d72c5172c Fix the theme compat file require paths to be fully absolute so they don't rely on a particular php path to work. Fixes #14315 for trunk props dougal.
git-svn-id: https://develop.svn.wordpress.org/trunk@15433 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-16 09:40:09 +00:00
Andrew Nacin 84ff7671a8 Blacklist remove_theme_support('menus'), used internally. fixes #13935 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15277 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-18 05:37:45 +00:00
Ryan Boren 82be9621ec Trim trailing whitespace.
git-svn-id: https://develop.svn.wordpress.org/trunk@15235 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 20:19:35 +00:00
Andrew Nacin 2621ba04fe Improve the custom background front-end callback. Also, background-attachment should default to scroll, not fixed. fixes #13751.
git-svn-id: https://develop.svn.wordpress.org/trunk@15196 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 18:28:25 +00:00
Dion Hulse e4b69457fb Use the correct variable name. See #13778
git-svn-id: https://develop.svn.wordpress.org/trunk@15167 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 11:04:51 +00:00
Dion Hulse f178115189 Use the correct variable name. Props ScottMac. Fixes #13778
git-svn-id: https://develop.svn.wordpress.org/trunk@15166 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-08 11:02:17 +00:00
Ryan Boren aec821c651 Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@14924 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 02:42:15 +00:00
Peter Westwood 545c432776 phpDoc updates.
git-svn-id: https://develop.svn.wordpress.org/trunk@14858 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 21:26:49 +00:00
Andrew Nacin b074c7be02 Invalidate header/background images for the current theme when the attachment is deleted. props ocean90, fixes #12467.
git-svn-id: https://develop.svn.wordpress.org/trunk@14850 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 19:42:43 +00:00
Andrew Nacin ae5af53f10 Custom background UI updates. props ocean90 for initial patch, see #12186.
git-svn-id: https://develop.svn.wordpress.org/trunk@14684 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 05:17:57 +00:00
Andrew Nacin 43c09c9587 Also return raw author name and URI from get_theme_data and get_themes. props blepoxp, fixes #12275.
git-svn-id: https://develop.svn.wordpress.org/trunk@14658 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 06:28:35 +00:00
Peter Westwood 4b3be4e693 Introduce __return_empty_array() and use it instead of create_function in the theme preview.
git-svn-id: https://develop.svn.wordpress.org/trunk@14641 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:55:26 +00:00
Andrew Nacin 98a20461dc Check if HEADER_ constants are defined before continuing. props ocean90, fixes #13367.
git-svn-id: https://develop.svn.wordpress.org/trunk@14610 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 21:44:37 +00:00
Andrew Nacin 4b48de9c08 Remove unused global var. props filosofo, fixes #13316.
git-svn-id: https://develop.svn.wordpress.org/trunk@14536 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 06:06:37 +00:00
Andrew Nacin 910c8e8bc9 Remove WP_FALLBACK_THEME, use WP_DEFAULT_THEME instead. We now only fall back to the default theme if the theme is broken. Incomplete themes that need to inherit templates will inherit them from wp-includes/theme-compat -- this behavior is deprecated. fixes #12846.
git-svn-id: https://develop.svn.wordpress.org/trunk@14485 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 19:53:40 +00:00
Peter Westwood c7e4d07d28 Add is_child_theme(). Fixes #12998 props ptahdunbar.
git-svn-id: https://develop.svn.wordpress.org/trunk@14409 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:56:57 +00:00
Ryan Boren d783952469 Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:26:11 +00:00
Peter Westwood 473772f395 First pass of compatibility code for old themes which relied on using templates from the default theme without expressly identifying it as the parent theme.
Fixes #12425 and #13009.
The fallback to these template files is now depreceated and will be removed in a future version.


git-svn-id: https://develop.svn.wordpress.org/trunk@14365 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 09:57:24 +00:00
Andrew Nacin d5e5ccdd72 Introduce is_rtl(). Use it in core. It only becomes defined when locale is loaded, so it's impossible to use it too early. Deprecate the get_bloginfo('text_direction') call. fixes #13206.
git-svn-id: https://develop.svn.wordpress.org/trunk@14360 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 05:49:19 +00:00
Peter Westwood 6d490bcd88 Introduce a template file for the Front Page of a site. Has priority over every other template which applies and falls back to the standard template flow for the page / list of posts.
Fixes #6801

git-svn-id: https://develop.svn.wordpress.org/trunk@14276 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 07:48:09 +00:00
Ryan Boren 24b7698dbf Add RTL support to add_editor_style(). Props yoavf. fixes #13120
git-svn-id: https://develop.svn.wordpress.org/trunk@14240 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-26 14:56:57 +00:00
Peter Westwood 633278d3be Improve documentation of validate_current_theme()
git-svn-id: https://develop.svn.wordpress.org/trunk@14175 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 17:14:25 +00:00
Dion Hulse 122abf2fa8 Fix page-<pageslug>.php templates for static front pages. See #12907
git-svn-id: https://develop.svn.wordpress.org/trunk@14152 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 11:50:48 +00:00
Andrew Nacin 7d823cbc23 Don't use require_once for get_template_part(). fixes #12958.
git-svn-id: https://develop.svn.wordpress.org/trunk@14075 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 17:26:03 +00:00
Andrew Nacin 9dab120905 Child theme support for theme header registrations. Second call to register_theme_headers() should add more headers, not replace existing headers. add unregister_theme_headers(). props jorbin. see #12343
git-svn-id: https://develop.svn.wordpress.org/trunk@13928 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 03:15:18 +00:00
Mark Jaquith 191c250172 Fix PHP notice
git-svn-id: https://develop.svn.wordpress.org/trunk@13908 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 07:43:04 +00:00
Andrew Nacin 47d995c72a Add blacklist to remove_theme_support(). fixes #12739.
git-svn-id: https://develop.svn.wordpress.org/trunk@13902 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-31 09:06:11 +00:00
Ron Rennick 580bd283fd add remove_theme_support(), props nathanrice, fixes #12739
git-svn-id: https://develop.svn.wordpress.org/trunk@13877 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-29 16:26:54 +00:00
Dion Hulse d3eec153be Add Repeat-x/repeat-y support to Custom Backgrounds, Add Live preview of Repeat option, Use Thumbnail of background for Background Preview. Props jshreve. See #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13856 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 02:53:04 +00:00
Andrew Nacin d43df7123a Change @since 2.9 to @since 2.9.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13829 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:23:39 +00:00
Andrew Nacin 28f8063d1f Introduce get_index_template(). Allows child themes to override a parent theme's index.php. Props koopersmith, fixes #12635
git-svn-id: https://develop.svn.wordpress.org/trunk@13819 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 13:52:43 +00:00
Ryan Boren 9b019acfbe make *_option(), *_transient() functions consistently expect unslashed data. Props Denis-de-Bernardy. see #12416
git-svn-id: https://develop.svn.wordpress.org/trunk@13673 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 21:49:56 +00:00
Ryan Boren a1d788a893 Custom background color fixes. see #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13668 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 20:21:58 +00:00
Ryan Boren 764b0e4068 Background color selection. Props lancewillett. see #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13574 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-03 17:10:43 +00:00
Andrew Nacin 7c2178caba Escape mod_$theme option name. see #9015
git-svn-id: https://develop.svn.wordpress.org/trunk@13469 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-27 20:26:37 +00:00
Andrew Nacin bd51cf8b51 add_editor_style() third pass. better performance and better child theme support. see #11512
git-svn-id: https://develop.svn.wordpress.org/trunk@13453 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-27 07:36:35 +00:00
Andrew Nacin 394430fbbe add_editor_style(), second pass. Accept an array of stylesheets, also allow multiple calls to the function. Support child themes. See #9015 see #11512
git-svn-id: https://develop.svn.wordpress.org/trunk@13444 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-26 21:07:41 +00:00
Andrew Nacin 33798863d4 Introduce add_editor_style() to easily register a stylesheet for the visual editor. see #11512 see #9015
git-svn-id: https://develop.svn.wordpress.org/trunk@13441 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-26 20:12:06 +00:00
Ryan Boren 61ffa682c1 Note theme support for custom background, header, and menus. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13417 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-25 22:04:59 +00:00
Ryan Boren 4ee18ae484 Default header selector, first pass. see #12343
git-svn-id: https://develop.svn.wordpress.org/trunk@13403 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-25 19:18:44 +00:00
Ryan Boren 66b081abd2 Remove author tags. fixes #12366
git-svn-id: https://develop.svn.wordpress.org/trunk@13377 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 19:07:21 +00:00
Andrew Nacin d0b71fc766 Fix potential notice. props hakre, see #12283
git-svn-id: https://develop.svn.wordpress.org/trunk@13225 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-19 15:04:46 +00:00
Peter Westwood 6c53a37d5b Move more references from default to WP_FALLBACK_THEME. To make 'default' theme transition smoother in the future.
git-svn-id: https://develop.svn.wordpress.org/trunk@13202 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 22:09:06 +00:00
Andrew Nacin 13584938e1 Use background-position, as background-position-x has incomplete browser support (Webkit and IE6+ only, no Firefox or Opera). See #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13190 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 04:46:40 +00:00
Ryan Boren f1eb009074 Add defaults for background option radios. see #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13189 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 03:12:05 +00:00
Ryan Boren 1cd2f4c113 Use background-position-x. Props iammattthomas. see #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13188 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 03:01:45 +00:00
Ryan Boren 5d1cb7981a Add some options to custom background admin. Needs styling. see #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13186 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 00:14:56 +00:00
Ryan Boren 8bc11462e3 First pass at custom background support. Needs UI love. see #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13041 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-09 20:37:12 +00:00
Ryan Boren 712c98007d Look for single-.php templates. Add single- class to get_body_class(). Props ptahdunbar. see #12105
git-svn-id: https://develop.svn.wordpress.org/trunk@13032 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-08 22:05:05 +00:00
Ryan Boren 2c1ee29143 Slightly more informative error message for themes missing their parent theme. Need to offer to install the parent if it is in the themes directory.
git-svn-id: https://develop.svn.wordpress.org/trunk@13020 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 23:19:39 +00:00
Peter Westwood 9fbea38820 Switch to a constant for the fallback theme. See #9015.
git-svn-id: https://develop.svn.wordpress.org/trunk@13019 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 22:36:37 +00:00
Ryan Boren ee112fbd12 Make twentyten the fallback theme. see #9015
git-svn-id: https://develop.svn.wordpress.org/trunk@13018 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 22:27:51 +00:00
Peter Westwood 085e0c3487 Ensure we are PHP4 compat. Fixes #12167 props blepoxp.
git-svn-id: https://develop.svn.wordpress.org/trunk@13014 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 21:07:35 +00:00
Peter Westwood 3a5f8c0ead Support specific author templates by id or user_nicename. Fixes #12064 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12915 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-31 21:32:39 +00:00
Ryan Boren 93fc30b2a0 Send user back to main custom header page after cropping and setting image. Add support for a custom image div callback for greather theme flexibility. Props dphiffer. see #11855
git-svn-id: https://develop.svn.wordpress.org/trunk@12890 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-28 19:00:16 +00:00
Ryan Boren 8ef8b7bad5 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:11:12 +00:00
Ryan Boren 974b6c1ce4 Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008
git-svn-id: https://develop.svn.wordpress.org/trunk@12598 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-04 17:23:29 +00:00
Ryan Boren d117c4918b Make sure dir() returned a dir object.
git-svn-id: https://develop.svn.wordpress.org/trunk@12434 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-17 19:56:05 +00:00
Mark Jaquith ab97039f96 Post/Page Image was too generic a name. Post/Page Thumbnail is more clear, even if you can create very large thumbnail images if you so choose.
git-svn-id: https://develop.svn.wordpress.org/trunk@12351 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 06:14:36 +00:00
Ryan Boren 3d6a741305 Allow registering post image support per post type. fixes #11364
git-svn-id: https://develop.svn.wordpress.org/trunk@12350 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-09 15:39:20 +00:00
Mark Jaquith aeb4be8d81 Revision 12345. Nothing but whitespace fixes. That's how I roll.
git-svn-id: https://develop.svn.wordpress.org/trunk@12345 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 21:29:12 +00:00
Mark Jaquith 51e25872a6 Standardize around "post image" instead of "post thumbnail"
git-svn-id: https://develop.svn.wordpress.org/trunk@12339 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 16:34:04 +00:00
Peter Westwood fffae7eb1f Reduce the size of the data returned by get_themes() by ~30% by reducing duplication.
git-svn-id: https://develop.svn.wordpress.org/trunk@12226 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 20:45:37 +00:00
Ryan Boren e6be89ee0a Avoid warning when parent template does not exist.
git-svn-id: https://develop.svn.wordpress.org/trunk@12216 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 16:35:17 +00:00
Peter Westwood 2c459fea5e Improve get_page_template() to search based on slug and id as well. Fixes #11055 props aaroncampbell.
git-svn-id: https://develop.svn.wordpress.org/trunk@12135 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-01 10:18:34 +00:00
Peter Westwood 20bd817385 Introduce require_if_theme_supports(), move post thumbnails functions to there own include and only included them if the theme supports them. See #10928 and [12132]
git-svn-id: https://develop.svn.wordpress.org/trunk@12134 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-01 10:10:06 +00:00
Mark Jaquith cde0b909e4 Introducing add_theme_support(feature) and current_theme_supports(feature) for announcing and checking theme support for various features. Implement it for post/page thumbanils, hiding UI if not supported.
git-svn-id: https://develop.svn.wordpress.org/trunk@12132 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-01 05:27:39 +00:00
Ryan Boren dfaf38749c get_themes() and theme root fixes. see #10467
git-svn-id: https://develop.svn.wordpress.org/trunk@12129 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-30 00:18:15 +00:00
Ryan Boren 944dad2c59 Introduce get/set/delete_site_transient(). Make theme_roots a site transient.
git-svn-id: https://develop.svn.wordpress.org/trunk@12128 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-29 21:53:57 +00:00
Ryan Boren 049955e49b Theme roots are prefixed with a slash. No need to add another. Props hakre. fixes #11036
git-svn-id: https://develop.svn.wordpress.org/trunk@12124 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-28 21:58:15 +00:00
Ryan Boren a96b4a4e18 Theme subdirs that contain themes are not broken if missing a stylesheet. see #10467
git-svn-id: https://develop.svn.wordpress.org/trunk@12119 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-27 17:32:12 +00:00
Ryan Boren ef9260219a More theme subdir fixes. see #10467
git-svn-id: https://develop.svn.wordpress.org/trunk@12118 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-27 17:17:23 +00:00
Ryan Boren a0f9bea8cb Partial fix for theme subdir support. see #10467
git-svn-id: https://develop.svn.wordpress.org/trunk@12117 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-27 16:45:30 +00:00
Peter Westwood df21977652 Display better information about broken themes when there is no stylesheet. Fixes #10999 props sivel.
git-svn-id: https://develop.svn.wordpress.org/trunk@12091 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-22 20:15:54 +00:00
Peter Westwood 9510a36835 Allow for plugins to enhance the number of metadata fields captured from plugin and theme headers. See #8964 props strider72.
git-svn-id: https://develop.svn.wordpress.org/trunk@12044 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 21:07:00 +00:00
Peter Westwood 097a918639 Restore the functionality of the theme_root filter. See #10467.
git-svn-id: https://develop.svn.wordpress.org/trunk@12043 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 20:45:32 +00:00
Ryan Boren a4789b3cc1 Associate subdirector of whitespace trims trailing whites with pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@12042 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 20:26:21 +00:00
Mark Jaquith 1a00881a37 Introducing register_theme_directory() which takes a wp-content-relative path and will additionally scan it for themes. Plugins can use this to add themes without requiring copying by the user. props apeatling. fixes #10467
git-svn-id: https://develop.svn.wordpress.org/trunk@12025 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-13 19:06:35 +00:00
Peter Westwood 44fc49bb90 Allow for tag templates to be linked by tag id as well as name. Fixes #10868.
git-svn-id: https://develop.svn.wordpress.org/trunk@12010 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-08 17:27:51 +00:00
Ryan Boren bb43e36418 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11971 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-24 17:19:13 +00:00
Peter Westwood 64adda80db Updated phpdoc for the theme preview code.
git-svn-id: https://develop.svn.wordpress.org/trunk@11959 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-22 07:16:19 +00:00
Peter Westwood 2838a1c85d Move theme preview away from using create_function and to predefined functions. See #10729.
git-svn-id: https://develop.svn.wordpress.org/trunk@11957 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-21 21:43:41 +00:00
Ryan Boren 43c201d458 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11930 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 14:03:32 +00:00
Peter Westwood 9e32cf358c Support location of category templates based on category slug as well as id. Fixes #10614 based on patch from scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@11814 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-14 16:56:51 +00:00
Peter Westwood b3144dd383 Remove theme_basename() for now as the changeset that introduced it was reverted and nothing uses it. See #10067.
git-svn-id: https://develop.svn.wordpress.org/trunk@11545 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-10 16:36:46 +00:00
Ryan Boren e12c642c54 Trim tailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11450 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-24 23:47:49 +00:00
Mark Jaquith ba1c3bdd5b Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()
git-svn-id: https://develop.svn.wordpress.org/trunk@11383 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 16:00:33 +00:00
Mark Jaquith c638e8d8de _a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11204 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 19:43:53 +00:00
Peter Westwood 5db0851318 Support single line Template Name comment blocks for theme Templates and apply same cleanup to all header lines. Fixes #8497 props DD32 and Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@11168 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-04 09:12:12 +00:00
Ryan Boren fe7c34b6fd s/attribute_escape/attr/. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11109 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-28 05:58:45 +00:00
Ryan Boren c43d9ccbdc Always display the default header when previewing a theme. Props Viper007Bond. fixes #9152
git-svn-id: https://develop.svn.wordpress.org/trunk@11061 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-22 22:32:35 +00:00
Ryan Boren 12c7093645 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@11013 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 18:18:39 +00:00
Ryan Boren a1037e9954 Show template files in subdirs. Props DD32. fixes #4131
git-svn-id: https://develop.svn.wordpress.org/trunk@10835 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-25 16:51:08 +00:00
Andrew Ozz 28db896510 Fix notice in wp-includes/theme.php, props filosofo, fixes #9336
git-svn-id: https://develop.svn.wordpress.org/trunk@10825 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-20 00:52:42 +00:00
Andrew Ozz f5942a0a73 Less confusing regex, props filosofo, fixes #9244
git-svn-id: https://develop.svn.wordpress.org/trunk@10824 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-20 00:30:32 +00:00
Ryan Boren 7a11e84775 Escape hyphen in regex. Props chrisbliss18. fixes #8548 #9244
git-svn-id: https://develop.svn.wordpress.org/trunk@10676 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-01 19:57:37 +00:00
Ryan Boren 73746940d9 Fix previewing of themes in subdirs. Props zedlander. fixes #8548
git-svn-id: https://develop.svn.wordpress.org/trunk@10483 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-02 19:17:14 +00:00
Ryan Boren baaaa352ba Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 18:03:31 +00:00
Ryan Boren fab4e5a68e Unused var fixes. Props DD32. see #8220
git-svn-id: https://develop.svn.wordpress.org/trunk@9716 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 18:10:35 +00:00
Andrew Ozz 3c71d6a1c1 Strip "onclick" when previewing themes, props DD32, fixes #7303
git-svn-id: https://develop.svn.wordpress.org/trunk@9707 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 02:20:26 +00:00
Peter Westwood 7abc98a62d Fix regression in get_tag_template(). Tag templates are referenced by tag name not id. Fixes #7865.
git-svn-id: https://develop.svn.wordpress.org/trunk@9125 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-12 08:19:56 +00:00
Mark Jaquith ca2acfa831 Allow a filter to disable the validate_current_theme() functionality
git-svn-id: https://develop.svn.wordpress.org/trunk@9087 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-06 15:29:47 +00:00
Andrew Ozz a4d3e40949 Complete inline documentation for theme.php, props jacobsantos, fixes #7657
git-svn-id: https://develop.svn.wordpress.org/trunk@8974 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-25 14:12:58 +00:00
Ryan Boren 9b0f76898f phpdoc for themes.php. Props jacobsantos. see #7657
git-svn-id: https://develop.svn.wordpress.org/trunk@8965 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-24 05:24:33 +00:00
Ryan Boren 719b42c024 Skeleton phpdoc patch for themes.php. Props jacobsantos. see #7657
git-svn-id: https://develop.svn.wordpress.org/trunk@8791 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-01 05:44:16 +00:00
Ryan Boren 935afabf92 Quote array indexes. Props wet. fixes #7502
git-svn-id: https://develop.svn.wordpress.org/trunk@8629 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-12 21:13:25 +00:00
Peter Westwood da46c93af9 Refactor template location code to reduce duplication.
Also make it easier for theme authors to pull in seperate files into templates while making theme overrideable. See #7492.

git-svn-id: https://develop.svn.wordpress.org/trunk@8624 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-12 20:18:05 +00:00
Ryan Boren 2272a1a950 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Peter Westwood 8b8928d5ac Look for template files in the stylesheet folder as well as the template folder for inheriting themes. Fixes #7086 props ionfish.
git-svn-id: https://develop.svn.wordpress.org/trunk@8497 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-30 06:21:14 +00:00
Ryan Boren 3b56605062 Allow dots in theme dirs when previewing. fixes #7482 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8485 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-29 17:03:00 +00:00
Ryan Boren 0fba0a6d4a Introduce content_url(). Don't prepend base url to content url in script loader. see #6938 #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@8301 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-09 17:24:36 +00:00
Ryan Boren ac50ccc1a2 Allow underscore and dash in theme dirs when previewing. fixes #7236
git-svn-id: https://develop.svn.wordpress.org/trunk@8252 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-03 23:10:28 +00:00
Ryan Boren a099e4c12f Use WP_CONTENT_DIR and URL when linking to theme screenshots. Props sambauers. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@8040 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-03 17:17:45 +00:00
Ryan Boren 6cc11cbf1e Allow wp-content to exist outside of webroot. Props sambauers. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@7999 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-27 17:55:24 +00:00