Commit Graph

234 Commits

Author SHA1 Message Date
Dion Hulse 5c9b1907a7 Make better use of $wp_query->get_queried_object() instead of duplicating its functionality. See [13143]
git-svn-id: https://develop.svn.wordpress.org/trunk@13219 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-19 10:45:29 +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
Peter Westwood e7d1e80302 Introduce new get_generic_template() function for themes to use to bring in pieces of template.
Use in twentyten for loop.php including. See #9015.

git-svn-id: https://develop.svn.wordpress.org/trunk@13146 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 09:32:23 +00:00
Dion Hulse f33e66e512 Optimize single_post_title(), single_tag_title() & single_cat_title() to use WP_Query globals if available. Removes an extra DB Query in single_post_title() in most cases.
git-svn-id: https://develop.svn.wordpress.org/trunk@13143 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 07:38:00 +00:00
Andrew Nacin 0fc1312800 Use stripos() instead of strpos() with strtolower(). For PHP < 5 we have stripos() in compat.php. Fixes #11176
git-svn-id: https://develop.svn.wordpress.org/trunk@13132 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 02:27:19 +00:00
Peter Westwood 1600c4610f Add the generator element in feeds through the {rss2|atom|rdf|rss|opml}_head hooks. Fixes #6947 props sivel.
git-svn-id: https://develop.svn.wordpress.org/trunk@13113 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 16:45:16 +00:00
Ryan Boren 48d12af9f6 Fix notices
git-svn-id: https://develop.svn.wordpress.org/trunk@13068 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-12 20:14:17 +00:00
Ryan Boren 5c5ceba9bf Add an echo arg to some general template functions. Props ShaneF. fixes #11842
git-svn-id: https://develop.svn.wordpress.org/trunk@13048 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-10 18:37:14 +00:00
Dion Hulse 8b38dceeca Move admin CSS colour themes to the admin_init hook. Fixes #11625
git-svn-id: https://develop.svn.wordpress.org/trunk@12982 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-06 05:15:26 +00:00
Ryan Boren 0d85cbf999 Make calendar valid HTML 5. Props iammattthomas. fixes #11554
git-svn-id: https://develop.svn.wordpress.org/trunk@12943 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 16:06:58 +00:00
Ryan Boren edd0157375 Introduce get_the_date(). Props jeremyclarke. fixes #11264
git-svn-id: https://develop.svn.wordpress.org/trunk@12917 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-01 16:28:54 +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
Peter Westwood 72bc28a2ad @since version for wp_login_form. See #11172 props dd32.
git-svn-id: https://develop.svn.wordpress.org/trunk@12701 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-11 22:33:28 +00:00
Ryan Boren 234f4f0025 wp_login_form(). Props beaulebens. see #11172
git-svn-id: https://develop.svn.wordpress.org/trunk@12696 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-11 21:48:43 +00:00
Ryan Boren 45b15868ca phpdoc updates. Props sirzooro. fixes #11853
git-svn-id: https://develop.svn.wordpress.org/trunk@12687 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-10 15:50:17 +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 3d8c08b96a Use current_time() to calculate current time. Props filosofo. fixes #10915
git-svn-id: https://develop.svn.wordpress.org/trunk@12590 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 17:56:09 +00:00
Peter Westwood c38846defd Use _deprecated_argument() in get_bloginfo() and then don't pass deprecated argument to get_bloginfo(). Fixes #11652 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12587 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 17:05:02 +00:00
Peter Westwood 30e399b3e7 Extend the_modified_date() to support before/after/echo. Fixes #11255 props ShaneF.
git-svn-id: https://develop.svn.wordpress.org/trunk@12514 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:22:08 +00:00
Ryan Boren 6de4fcc190 Remove unneeded quotes around vars. Props johnbillion. fixes #10245
git-svn-id: https://develop.svn.wordpress.org/trunk@12513 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:16:53 +00:00
Mark Jaquith 7caab9d8e3 Do not double-stripslashes() on get_search_query(). fixes #11374
git-svn-id: https://develop.svn.wordpress.org/trunk@12356 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 08:07:19 +00:00
Peter Westwood 073884cb99 Urlencode the redirect url for the logout links as well as login in links. Fixes #10991 props Utkarsh.
git-svn-id: https://develop.svn.wordpress.org/trunk@12340 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 16:38:59 +00:00
Ryan Boren 76fdc4d91e Add translator comment. Props nbachiyski. fixes #10737
git-svn-id: https://develop.svn.wordpress.org/trunk@12201 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 20:54:38 +00:00
Peter Westwood df78ed2118 Remove duplicate action addition of delete_get_calendar_cache() on update_option_start_of_week. Fixes #10718 props johnjosephbachir.
git-svn-id: https://develop.svn.wordpress.org/trunk@11898 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-02 07:11:07 +00:00
Ryan Boren f4f70a6479 Prophylactic escapes
git-svn-id: https://develop.svn.wordpress.org/trunk@11838 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-18 16:05:07 +00:00
Andrew Ozz ad0b56690a Fix check for a published post in calendar widget, props Denis-de-Bernardy, fixes #10091
git-svn-id: https://develop.svn.wordpress.org/trunk@11548 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-11 00:04:20 +00:00
Ryan Boren 5ef10c1dba Pass name to sidebar, footer, and header get actions. Props scribu. fixes #10022
git-svn-id: https://develop.svn.wordpress.org/trunk@11521 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-04 17:59:14 +00:00
Andrew Ozz e6d33b952a Add more translator comments for placeholders, props nbachiyski, fixes #10002
git-svn-id: https://develop.svn.wordpress.org/trunk@11506 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-02 07:21:42 +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
Peter Westwood 76eabb6d25 Add a wp_lostpassword_url() function to complete the set. Based on patch from ramiy fixes #9932.
git-svn-id: https://develop.svn.wordpress.org/trunk@11448 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-24 20:58:22 +00:00
Ryan Boren 783f4ea189 Allow multiple search form templates. Props mtdewvirus. fixes #9908
git-svn-id: https://develop.svn.wordpress.org/trunk@11430 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-22 16:04:49 +00:00
Ryan Boren 1ce4fb03fd Fix display of titles for front pages. Props sivel. fixes #9288
git-svn-id: https://develop.svn.wordpress.org/trunk@11395 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-19 15:48:47 +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 f0336cfa7d deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: https://develop.svn.wordpress.org/trunk@11380 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 15:11:07 +00:00
Peter Westwood c98f9104b6 Migrate final get_author_name() calls to use get_the_author_meta() instead. See #9393 props sivel.
git-svn-id: https://develop.svn.wordpress.org/trunk@11370 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-16 22:32:48 +00:00
Ryan Boren 4fefdf5498 Use get_post_modified_time filter in get_post_modified_time(). Props Denis-de-Bernardy. fixes #9734
git-svn-id: https://develop.svn.wordpress.org/trunk@11347 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-15 22:33:33 +00:00
Ryan Boren fe335afb5f urlencode login redirect. Props Viper007Bond. fixes #9817
git-svn-id: https://develop.svn.wordpress.org/trunk@11328 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-14 16:11:01 +00:00
Ryan Boren c4f78ad63a Don't localize dates where not appropriate. Props Denis-de-Bernardy, hakre. fixes #9730
git-svn-id: https://develop.svn.wordpress.org/trunk@11323 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-14 02:00:32 +00:00
Mark Jaquith a2bf4db52b Use a semantic class name for text targeted to screen readers. props filosofo. fixes #9791
git-svn-id: https://develop.svn.wordpress.org/trunk@11312 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-12 22:40:56 +00:00
Ryan Boren 9d41d07f40 Escape title attributes in calendar links. fixes #8967
git-svn-id: https://develop.svn.wordpress.org/trunk@11215 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-06 04:56:32 +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
Andrew Ozz 3bf18aa189 Banishing ASCII quotes and apostrophes, props demetris, fixes #9655
git-svn-id: https://develop.svn.wordpress.org/trunk@11190 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 04:28:05 +00:00
Ryan Boren 4a047f4240 Use invisible class for hiding labels and legends.
git-svn-id: https://develop.svn.wordpress.org/trunk@11180 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-04 21:28:58 +00:00
Ryan Boren cfd320446f Attr escaping
git-svn-id: https://develop.svn.wordpress.org/trunk@11173 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-04 17:54:08 +00:00
Andrew Ozz 687a400776 Hide text while editor is loading, show html editor on error
git-svn-id: https://develop.svn.wordpress.org/trunk@11171 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-04 10:34:50 +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 8f15c79dda Add redirect param to wp_loginout(). Props Denis-de-Bernardy. fixes #9241
git-svn-id: https://develop.svn.wordpress.org/trunk@11101 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-27 20:00:59 +00:00
Ryan Boren eef293ff04 Add WAI-ARIA landmark roles to default theme. Props peterkz. fixes #9408
git-svn-id: https://develop.svn.wordpress.org/trunk@10945 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-16 16:42:32 +00:00
Ryan Boren 2eae08c088 Updates to wp_login_url() and wp_logout_url(). Use them in more places. Props wnorris. fixes #9536
git-svn-id: https://develop.svn.wordpress.org/trunk@10931 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-14 18:31:49 +00:00
Ryan Boren 8d00b5d37d Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 02:43:45 +00:00