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
Ryan Boren
58a9595df2
Theme preview and thickbox CSS cleanup. Props azaozz. see #5486
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7961 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-20 17:19:33 +00:00
Ryan Boren
9faab00411
Add some page template validation
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7921 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-12 23:51:54 +00:00
Mark Jaquith
15490b8df5
Sanitize "cat" query var and cast to int before looking for a category template
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7586 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-02 13:15:21 +00:00
Ryan Boren
cbfb5d78b5
Taxonomy queries and urls. Props andy. see #6357
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7491 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-23 17:02:11 +00:00
Matt Mullenweg
e8eaeb4e43
Smaller regex.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7224 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-11 00:43:07 +00:00
Matt Mullenweg
c9f428abc1
Big regex for type.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7223 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-11 00:37:29 +00:00
Mark Jaquith
26c5a4f49d
Make sure the theme_dir is a dir before we attempt to closedir(). fixes #5768
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6744 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-06 23:17:13 +00:00
Peter Westwood
f1d41cb830
Add missing brace. Fixes #5643 props xknown.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6598 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-11 18:35:34 +00:00
Peter Westwood
90e193bdab
Notice fixing for wp-includes. See #5607 props filosofo.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6592 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-10 20:51:07 +00:00
Ryan Boren
00db74c820
Theme tagging from andy. fixes #5545
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6530 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-31 18:39:43 +00:00
Ryan Boren
8966b24e0b
Add a get_stylesheet_dir to sprintf in get_theme_mod. Props andy. fixes #5398
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6410 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 17:47:06 +00:00
Ryan Boren
3a8b2fcca3
Remove unused vars. Props DD32. see #5418
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6364 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 19:49:33 +00:00
Ryan Boren
31fc42f07b
Add switch_theme(). Cache current theme in options to avoid calling get_themes(). fixes #5346
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6334 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-13 05:07:44 +00:00
Mark Jaquith
23eba5ca0a
Set $theme_loc correctly when ABSPATH is "/". Props arabek. fixes #4541
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6099 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 22:19:26 +00:00
Ryan Boren
7a43c01e08
Remove trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6026 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:32:58 +00:00
Ryan Boren
3e5d2230d2
Use opendir instead of dir. Props nbachiyski. fixes #4450
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5867 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-14 02:58:33 +00:00