Commit Graph

149 Commits

Author SHA1 Message Date
westi b5820d2934 phpDoc updates.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-24 21:26:49 +00:00
nacin 64601e97ae Invalidate header/background images for the current theme when the attachment is deleted. props ocean90, fixes #12467.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-24 19:42:43 +00:00
nacin d6e2ef4dbf Custom background UI updates. props ocean90 for initial patch, see #12186.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-16 05:17:57 +00:00
nacin a2a0b6041b Also return raw author name and URI from get_theme_data and get_themes. props blepoxp, fixes #12275.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 06:28:35 +00:00
westi 83ae6a51ea Introduce __return_empty_array() and use it instead of create_function in the theme preview.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 16:55:26 +00:00
nacin b38af2d56d Check if HEADER_ constants are defined before continuing. props ocean90, fixes #13367.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-13 21:44:37 +00:00
nacin e88d9914de Remove unused global var. props filosofo, fixes #13316.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 06:06:37 +00:00
nacin fa23d1edf0 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: http://svn.automattic.com/wordpress/trunk@14485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-06 19:53:40 +00:00
westi 1afa45d117 Add is_child_theme(). Fixes #12998 props ptahdunbar.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 20:56:57 +00:00
ryan 7b7243d94a Strip trailing whites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 20:26:11 +00:00
westi ae468d52ac 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: http://svn.automattic.com/wordpress/trunk@14365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 09:57:24 +00:00
nacin 4d7c88f4a4 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: http://svn.automattic.com/wordpress/trunk@14360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 05:49:19 +00:00
westi 033aac697c 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: http://svn.automattic.com/wordpress/trunk@14276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-28 07:48:09 +00:00
ryan 0d703dc2c0 Add RTL support to add_editor_style(). Props yoavf. fixes #13120
git-svn-id: http://svn.automattic.com/wordpress/trunk@14240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-26 14:56:57 +00:00
westi 8ce9670189 Improve documentation of validate_current_theme()
git-svn-id: http://svn.automattic.com/wordpress/trunk@14175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-21 17:14:25 +00:00
dd32 66a9d58336 Fix page-<pageslug>.php templates for static front pages. See #12907
git-svn-id: http://svn.automattic.com/wordpress/trunk@14152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-18 11:50:48 +00:00
nacin 3c5115f15f Don't use require_once for get_template_part(). fixes #12958.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-11 17:26:03 +00:00
nacin 1c9c709e8a 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: http://svn.automattic.com/wordpress/trunk@13928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-02 03:15:18 +00:00
markjaquith 9817fca789 Fix PHP notice
git-svn-id: http://svn.automattic.com/wordpress/trunk@13908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-01 07:43:04 +00:00
nacin 370f6a43b9 Add blacklist to remove_theme_support(). fixes #12739.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-31 09:06:11 +00:00
wpmuguru 175c104baa add remove_theme_support(), props nathanrice, fixes #12739
git-svn-id: http://svn.automattic.com/wordpress/trunk@13877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-29 16:26:54 +00:00
dd32 f0088e38eb 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: http://svn.automattic.com/wordpress/trunk@13856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 02:53:04 +00:00
nacin 3918b75cbe Change @since 2.9 to @since 2.9.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 19:23:39 +00:00
nacin 1eabd22805 Introduce get_index_template(). Allows child themes to override a parent theme's index.php. Props koopersmith, fixes #12635
git-svn-id: http://svn.automattic.com/wordpress/trunk@13819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 13:52:43 +00:00
ryan f91e95f100 make *_option(), *_transient() functions consistently expect unslashed data. Props Denis-de-Bernardy. see #12416
git-svn-id: http://svn.automattic.com/wordpress/trunk@13673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-11 21:49:56 +00:00
ryan 59873d0b4f Custom background color fixes. see #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-11 20:21:58 +00:00
ryan 4b766eb312 Background color selection. Props lancewillett. see #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-03 17:10:43 +00:00
nacin 6df81f3d95 Escape mod_$theme option name. see #9015
git-svn-id: http://svn.automattic.com/wordpress/trunk@13469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-27 20:26:37 +00:00
nacin 9797dacaa0 add_editor_style() third pass. better performance and better child theme support. see #11512
git-svn-id: http://svn.automattic.com/wordpress/trunk@13453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-27 07:36:35 +00:00
nacin 59b2461dcf 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: http://svn.automattic.com/wordpress/trunk@13444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-26 21:07:41 +00:00
nacin 45748141c0 Introduce add_editor_style() to easily register a stylesheet for the visual editor. see #11512 see #9015
git-svn-id: http://svn.automattic.com/wordpress/trunk@13441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-26 20:12:06 +00:00
ryan a3ae373902 Note theme support for custom background, header, and menus. see #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-25 22:04:59 +00:00
ryan a8a6d742e1 Default header selector, first pass. see #12343
git-svn-id: http://svn.automattic.com/wordpress/trunk@13403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-25 19:18:44 +00:00
ryan 9ab7306993 Remove author tags. fixes #12366
git-svn-id: http://svn.automattic.com/wordpress/trunk@13377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-24 19:07:21 +00:00
nacin b8ecd8058f Fix potential notice. props hakre, see #12283
git-svn-id: http://svn.automattic.com/wordpress/trunk@13225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-19 15:04:46 +00:00
westi aa5f4d55b7 Move more references from default to WP_FALLBACK_THEME. To make 'default' theme transition smoother in the future.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-18 22:09:06 +00:00
nacin 63af26e0cd Use background-position, as background-position-x has incomplete browser support (Webkit and IE6+ only, no Firefox or Opera). See #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-18 04:46:40 +00:00
ryan f35b2128ae Add defaults for background option radios. see #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-18 03:12:05 +00:00
ryan 447b0a50da Use background-position-x. Props iammattthomas. see #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-18 03:01:45 +00:00
ryan d472b153ca Add some options to custom background admin. Needs styling. see #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-18 00:14:56 +00:00
ryan 61859c5f5e First pass at custom background support. Needs UI love. see #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-09 20:37:12 +00:00
ryan 4ddde1ab9d Look for single-.php templates. Add single- class to get_body_class(). Props ptahdunbar. see #12105
git-svn-id: http://svn.automattic.com/wordpress/trunk@13032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-08 22:05:05 +00:00
ryan 4b2651d1e6 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: http://svn.automattic.com/wordpress/trunk@13020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-07 23:19:39 +00:00
westi 333f5b0cfa Switch to a constant for the fallback theme. See #9015.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-07 22:36:37 +00:00
ryan 8e1a363a8d Make twentyten the fallback theme. see #9015
git-svn-id: http://svn.automattic.com/wordpress/trunk@13018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-07 22:27:51 +00:00
westi f65140c7b3 Ensure we are PHP4 compat. Fixes #12167 props blepoxp.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-07 21:07:35 +00:00
westi e1ec3c052e Support specific author templates by id or user_nicename. Fixes #12064 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-31 21:32:39 +00:00
ryan bdfb0460da 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: http://svn.automattic.com/wordpress/trunk@12890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-28 19:00:16 +00:00
ryan 6da55f7792 Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@12733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-15 22:11:12 +00:00
ryan ec8e347792 Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008
git-svn-id: http://svn.automattic.com/wordpress/trunk@12598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-04 17:23:29 +00:00