Commit Graph

100 Commits

Author SHA1 Message Date
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
ryan
98d62f55bb Make sure dir() returned a dir object.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-17 19:56:05 +00:00
markjaquith
bf264bb66d 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: http://svn.automattic.com/wordpress/trunk@12351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-10 06:14:36 +00:00
ryan
1c90385918 Allow registering post image support per post type. fixes #11364
git-svn-id: http://svn.automattic.com/wordpress/trunk@12350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-09 15:39:20 +00:00
markjaquith
f2df3f3751 Revision 12345. Nothing but whitespace fixes. That's how I roll.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-08 21:29:12 +00:00
markjaquith
0415ab7b42 Standardize around "post image" instead of "post thumbnail"
git-svn-id: http://svn.automattic.com/wordpress/trunk@12339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-08 16:34:04 +00:00
westi
c616c60c0d Reduce the size of the data returned by get_themes() by ~30% by reducing duplication.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-19 20:45:37 +00:00
ryan
f0f570d098 Avoid warning when parent template does not exist.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-19 16:35:17 +00:00
westi
a980ec773a Improve get_page_template() to search based on slug and id as well. Fixes #11055 props aaroncampbell.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-01 10:18:34 +00:00
westi
7251aff3f3 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: http://svn.automattic.com/wordpress/trunk@12134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-01 10:10:06 +00:00
markjaquith
a8c96db902 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: http://svn.automattic.com/wordpress/trunk@12132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-01 05:27:39 +00:00
ryan
7578a5b511 get_themes() and theme root fixes. see #10467
git-svn-id: http://svn.automattic.com/wordpress/trunk@12129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-30 00:18:15 +00:00
ryan
9ee06eaec7 Introduce get/set/delete_site_transient(). Make theme_roots a site transient.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-29 21:53:57 +00:00
ryan
f089f96723 Theme roots are prefixed with a slash. No need to add another. Props hakre. fixes #11036
git-svn-id: http://svn.automattic.com/wordpress/trunk@12124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-28 21:58:15 +00:00
ryan
1ada1c60de Theme subdirs that contain themes are not broken if missing a stylesheet. see #10467
git-svn-id: http://svn.automattic.com/wordpress/trunk@12119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-27 17:32:12 +00:00
ryan
fd5848823e More theme subdir fixes. see #10467
git-svn-id: http://svn.automattic.com/wordpress/trunk@12118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-27 17:17:23 +00:00
ryan
b2a6e37519 Partial fix for theme subdir support. see #10467
git-svn-id: http://svn.automattic.com/wordpress/trunk@12117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-27 16:45:30 +00:00
westi
3eb5db4558 Display better information about broken themes when there is no stylesheet. Fixes #10999 props sivel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-22 20:15:54 +00:00
westi
c26e33b939 Allow for plugins to enhance the number of metadata fields captured from plugin and theme headers. See #8964 props strider72.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-15 21:07:00 +00:00
westi
995ff3cd3c Restore the functionality of the theme_root filter. See #10467.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-15 20:45:32 +00:00
ryan
bf96c01551 Associate subdirector of whitespace trims trailing whites with pinking shears.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-15 20:26:21 +00:00
markjaquith
d86259fcb1 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: http://svn.automattic.com/wordpress/trunk@12025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-13 19:06:35 +00:00
westi
7d2a85c40e Allow for tag templates to be linked by tag id as well as name. Fixes #10868.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-08 17:27:51 +00:00
ryan
57f26bb58e Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@11971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-24 17:19:13 +00:00
westi
7b54e813b5 Updated phpdoc for the theme preview code.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-22 07:16:19 +00:00
westi
6ed2dfd478 Move theme preview away from using create_function and to predefined functions. See #10729.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-21 21:43:41 +00:00
ryan
8e3808bce2 Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@11930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-14 14:03:32 +00:00
westi
23a106b6d0 Support location of category templates based on category slug as well as id. Fixes #10614 based on patch from scribu.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-14 16:56:51 +00:00
westi
c5ae6aa620 Remove theme_basename() for now as the changeset that introduced it was reverted and nothing uses it. See #10067.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-06-10 16:36:46 +00:00
ryan
2df887bd07 Trim tailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@11450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-24 23:47:49 +00:00
markjaquith
3ebf837ced Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()
git-svn-id: http://svn.automattic.com/wordpress/trunk@11383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-18 16:00:33 +00:00
markjaquith
6c2ffddf31 _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: http://svn.automattic.com/wordpress/trunk@11204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-05 19:43:53 +00:00
westi
c8c528f18e 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: http://svn.automattic.com/wordpress/trunk@11168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-04 09:12:12 +00:00
ryan
2d489767bb s/attribute_escape/attr/. see #9650
git-svn-id: http://svn.automattic.com/wordpress/trunk@11109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-28 05:58:45 +00:00
ryan
7fd61e13df Always display the default header when previewing a theme. Props Viper007Bond. fixes #9152
git-svn-id: http://svn.automattic.com/wordpress/trunk@11061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-22 22:32:35 +00:00
ryan
a61bc0ec8a Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@11013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-20 18:18:39 +00:00
ryan
a3d28151b2 Show template files in subdirs. Props DD32. fixes #4131
git-svn-id: http://svn.automattic.com/wordpress/trunk@10835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-25 16:51:08 +00:00
azaozz
7510ca2238 Fix notice in wp-includes/theme.php, props filosofo, fixes #9336
git-svn-id: http://svn.automattic.com/wordpress/trunk@10825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-20 00:52:42 +00:00
azaozz
c25364742c Less confusing regex, props filosofo, fixes #9244
git-svn-id: http://svn.automattic.com/wordpress/trunk@10824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-20 00:30:32 +00:00
ryan
ebe8aa4804 Escape hyphen in regex. Props chrisbliss18. fixes #8548 #9244
git-svn-id: http://svn.automattic.com/wordpress/trunk@10676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-01 19:57:37 +00:00
ryan
19e01565d4 Fix previewing of themes in subdirs. Props zedlander. fixes #8548
git-svn-id: http://svn.automattic.com/wordpress/trunk@10483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-02 19:17:14 +00:00
ryan
e89192b1a8 Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-09 18:03:31 +00:00
ryan
40c754df1d Unused var fixes. Props DD32. see #8220
git-svn-id: http://svn.automattic.com/wordpress/trunk@9716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-15 18:10:35 +00:00
azaozz
9050fd4a5a Strip "onclick" when previewing themes, props DD32, fixes #7303
git-svn-id: http://svn.automattic.com/wordpress/trunk@9707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-15 02:20:26 +00:00
westi
da8f0a17a7 Fix regression in get_tag_template(). Tag templates are referenced by tag name not id. Fixes #7865.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-12 08:19:56 +00:00
markjaquith
944306301a Allow a filter to disable the validate_current_theme() functionality
git-svn-id: http://svn.automattic.com/wordpress/trunk@9087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-06 15:29:47 +00:00
azaozz
2c3a8ecd98 Complete inline documentation for theme.php, props jacobsantos, fixes #7657
git-svn-id: http://svn.automattic.com/wordpress/trunk@8974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-25 14:12:58 +00:00
ryan
bf910e58ad phpdoc for themes.php. Props jacobsantos. see #7657
git-svn-id: http://svn.automattic.com/wordpress/trunk@8965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-24 05:24:33 +00:00
ryan
2c6a8aff32 Skeleton phpdoc patch for themes.php. Props jacobsantos. see #7657
git-svn-id: http://svn.automattic.com/wordpress/trunk@8791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-01 05:44:16 +00:00
ryan
f089ebcfe4 Quote array indexes. Props wet. fixes #7502
git-svn-id: http://svn.automattic.com/wordpress/trunk@8629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-12 21:13:25 +00:00