Commit Graph

212 Commits

Author SHA1 Message Date
Mark Jaquith f842407e05 Another s/default/standard/. see #15582
git-svn-id: https://develop.svn.wordpress.org/trunk@16693 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 21:24:41 +00:00
Andrew Nacin 612a6bda24 escape URL in wp_link_pages. fixes #14271.
git-svn-id: https://develop.svn.wordpress.org/trunk@16539 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-22 23:54:30 +00:00
Andrew Nacin ccea27cbe7 More param fixes, props duck_. see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@16469 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 19:12:48 +00:00
Andrew Nacin 9437b31707 Add list_pages filter. props johnjamesjacoby, fixes #13668.
git-svn-id: https://develop.svn.wordpress.org/trunk@16446 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 02:23:05 +00:00
Ryan Boren 4b33a0e9c4 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@16438 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 18:47:34 +00:00
Mark Jaquith ae422f43ab Add admin-bar class to body_class() if the admin bar is showing. fixes #15455
git-svn-id: https://develop.svn.wordpress.org/trunk@16432 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 17:21:45 +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
Peter Westwood b08df21c26 Revert most of [16332] - renaming and deprecating a commonly used function is silly. Improving it is good. Fixes #15407.
git-svn-id: https://develop.svn.wordpress.org/trunk@16334 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 21:53:15 +00:00
scribu 11f20d737c Replace get_the_category() with get_the_categories(). Props filosofo. Fixes #15407
git-svn-id: https://develop.svn.wordpress.org/trunk@16332 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 20:05:37 +00:00
scribu 9f86bb7104 Don't use deprecated category properties. Props filosofo. Fixes #15408
git-svn-id: https://develop.svn.wordpress.org/trunk@16331 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 18:40:51 +00:00
Mark Jaquith d3684a509d Add checks for WP_Error. props ptahdunbar. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16315 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 04:10:56 +00:00
Andrew Nacin d8c91db1f4 Remove more create_function calls. props huichen, see #14424.
git-svn-id: https://develop.svn.wordpress.org/trunk@16313 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 22:50:36 +00:00
Peter Westwood be170fde65 Add support for ID style classes in get_body_class(). Fixes #12397 props filosofo
git-svn-id: https://develop.svn.wordpress.org/trunk@16283 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 22:07:07 +00:00
scribu 79c38419bf Skip category/tag queries if post type doesn't support them. Props mfields. Fixes #15322
git-svn-id: https://develop.svn.wordpress.org/trunk@16204 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 12:47:19 +00:00
Mark Jaquith 205c412afd Post Formats generate output in post_class() (format-foo), and body_class() (for single... single-format-foo). Now themers can support Post Formats with one line of PHP and by adding CSS! see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16200 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 06:48:56 +00:00
Peter Westwood 0bb1061d57 Add the post status as a class so that a theme can easily style private posts differently. Fixes #15279.
git-svn-id: https://develop.svn.wordpress.org/trunk@16139 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-01 18:07:31 +00:00
Peter Westwood 3462e6af43 Add a post class if a password is required for the post to be displayed. See #13860 props zeo.
git-svn-id: https://develop.svn.wordpress.org/trunk@16138 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-01 18:05:33 +00:00
Andrew Nacin f9c7ac66ec Move Walker_Page* to post-template, Walker_Category* to category-template, and rm classes.php. see #10287.
git-svn-id: https://develop.svn.wordpress.org/trunk@16100 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-30 14:06:08 +00:00
Andrew Nacin e2dfe4f5c2 Revert submit_button() for wp-includes, setup-config, install, login, signup. see [16061], see #15064, fixes #15247.
git-svn-id: https://develop.svn.wordpress.org/trunk@16066 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 00:31:27 +00:00
Mark Jaquith d65cdf4ba8 Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064
git-svn-id: https://develop.svn.wordpress.org/trunk@16061 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 21:56:43 +00:00
Peter Westwood 82d2869415 Remove create_function usage during preview. See #14424 props ScottMac.
git-svn-id: https://develop.svn.wordpress.org/trunk@16034 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 07:25:30 +00:00
Andrew Nacin 95ac3fc067 Body classes for custom taxonomies and terms. props nkuttler, fixes #15017.
git-svn-id: https://develop.svn.wordpress.org/trunk@15856 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 09:32:16 +00:00
Andrew Nacin 38092bb128 Custom post type archives, second pass. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15819 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 19:44:57 +00:00
Dion Hulse a59d598281 Use the correct term_id field in get_body_class().
git-svn-id: https://develop.svn.wordpress.org/trunk@15651 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-24 11:58:21 +00:00
Andrew Nacin 003a617439 Some docs and corrections to _wp_link_page().
git-svn-id: https://develop.svn.wordpress.org/trunk@15617 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-14 16:48:38 +00:00
scribu bfb520f616 Don't hardcode the pagination base. Fixes #12507
git-svn-id: https://develop.svn.wordpress.org/trunk@15582 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 01:18:42 +00:00
scribu b3ef955990 Don't use the global anymore. Fixes #11624
git-svn-id: https://develop.svn.wordpress.org/trunk@15549 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-28 11:57:28 +00:00
Andrew Nacin 3e337cf0fb Two birds with one stone. fixes #13902, props ocean90, wahgnube. fixes #13555, props hakre.
git-svn-id: https://develop.svn.wordpress.org/trunk@15264 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-15 20:31:44 +00:00
Ryan Boren 0922715668 Cut 'em out, move 'em on, trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@15116 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 20:04:07 +00:00
Ryan Boren e2407a19fc Don't add sticky class if is_paged(). Props iandstewart. fixes #13666
git-svn-id: https://develop.svn.wordpress.org/trunk@15088 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-01 15:03:49 +00:00
Peter Westwood 31be303930 Move the escaping into get_guid() so we don't have to repeat ourselves. See #13555.
git-svn-id: https://develop.svn.wordpress.org/trunk@14949 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 17:27:18 +00:00
Andrew Nacin 1db32f4b9f Context and translator comments for revisions column names. props dimadin, fixes #13434.
git-svn-id: https://develop.svn.wordpress.org/trunk@14753 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 19:20:22 +00:00
Ryan Boren efff0fe8bb Fix viewing autosave revision for custom post types. Props duck_. fixes #13110
git-svn-id: https://develop.svn.wordpress.org/trunk@14749 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 18:36:52 +00:00
Andrew Nacin 5f287dcb6d Clarify that link_before and link_after text for wp_list_pages also applies to the current page which doesn't actually have a link. fixes #12247.
git-svn-id: https://develop.svn.wordpress.org/trunk@14687 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 06:11:43 +00:00
Andrew Nacin 84578d128b Add trailing slash to some home_url() calls. props zeo, fixes #13245.
git-svn-id: https://develop.svn.wordpress.org/trunk@14443 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 17:13:11 +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
Dion Hulse 85b5a63f56 Fix notices in post_custom(). Props sirzooro. Fixes #11839
git-svn-id: https://develop.svn.wordpress.org/trunk@13861 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 04:19:44 +00:00
Dion Hulse 60d2b654ac Fix unset notice on Revisions page for custom post_types. Use $post object instead of relying on a Global
git-svn-id: https://develop.svn.wordpress.org/trunk@13772 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 01:10:01 +00:00
Andrew Nacin dd306def81 Remove redundant isset() and empty() checks.
git-svn-id: https://develop.svn.wordpress.org/trunk@13770 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:29:21 +00:00
Dion Hulse bfe10ba981 Re-use /page/xx/ for Post Paging on Page_on_front. Few fixes related to paging on front page. Fixes #12391
git-svn-id: https://develop.svn.wordpress.org/trunk@13494 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-28 09:40:42 +00:00
Andrew Nacin 6f3f1d0806 Add filter to the args in wp_link_pages(). fixes #12158 props greenshady
git-svn-id: https://develop.svn.wordpress.org/trunk@13479 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-28 01:46:39 +00:00
Andrew Nacin a7a3e94381 Add some whitespace to get_body_class(). props coffee2code. Clarify fallback parameter in sanitize_html_class(). see #11331
git-svn-id: https://develop.svn.wordpress.org/trunk@13468 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-27 20:06:35 +00:00
Andrew Nacin 7eea49d9d1 Pass post ID to post_class filter, even when calling post_class() without parameters in the loop. fixes #11878
git-svn-id: https://develop.svn.wordpress.org/trunk@13462 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-27 17:49:49 +00:00
Andrew Nacin 9b78314c05 A call to arms for grammarians. Fixes #12228 fixes #11875 props kurtmckee, filosofo, jjj
git-svn-id: https://develop.svn.wordpress.org/trunk@13425 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-26 05:46:08 +00:00
Andrew Nacin c9dfb91763 Spelling and grammar fun. Fixes #11875 props cnorris23
git-svn-id: https://develop.svn.wordpress.org/trunk@13382 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 20:13:23 +00:00
Andrew Nacin ef2c401876 Add .type-{post_type} to post_class. fixes #11609
git-svn-id: https://develop.svn.wordpress.org/trunk@13350 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-23 23:32:17 +00:00
Dion Hulse 468d0d7cff Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: https://develop.svn.wordpress.org/trunk@13242 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 02:01:46 +00:00
Dion Hulse f5c9054956 Always set $link_text.
git-svn-id: https://develop.svn.wordpress.org/trunk@13110 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 11:12:47 +00:00
Andrew Nacin 8e79d5c2ac Move deprecated functions to deprecated.php. Deprecate get_the_attachment_link() for wp_get_attachment_link(), get_attachment_icon_src() for wp_get_attachment_image_src(),
get_attachment_icon() and get_attachment_innerHTML() for wp_get_attachment_image(), get_link() for get_bookmark(). Add missing deprecated version numbers. Add inline documentation to pluggable functions that are deprecated. See #11388

git-svn-id: https://develop.svn.wordpress.org/trunk@13093 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 06:39:51 +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