Commit Graph

225 Commits

Author SHA1 Message Date
Andrew Nacin
106a94406e Add filter for the args into wp_dropdown_pages() in the page attributes box. Give the list_pages filter the context of the post object. fixes #8592 for 3.3.
git-svn-id: https://develop.svn.wordpress.org/trunk@18818 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:21:15 +00:00
Ryan Boren
1ea42bc9b5 Do not output title attributes in the page walker since they match the anchor and are thus superfluous. Props logiclord. fixes #16783
git-svn-id: https://develop.svn.wordpress.org/trunk@18739 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-21 20:04:14 +00:00
Dion Hulse
ad6fac44d4 Allow Apostrophes in Post Passwords. $_POST and $_COOKIE are always slashed. Fixes #17145
git-svn-id: https://develop.svn.wordpress.org/trunk@18712 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-19 04:17:26 +00:00
Jon Cave
e65cce15f2 Only add the post format body classes when the post type supports post formats. props ocean90. fixes #18228.
git-svn-id: https://develop.svn.wordpress.org/trunk@18651 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-07 20:10:42 +00:00
Ryan Boren
6b5d8397b0 Introduce register_meta(), get_metadata_by_mid(), and *_post_meta capabilities. fixes #17850
git-svn-id: https://develop.svn.wordpress.org/trunk@18445 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-20 22:04:35 +00:00
Andrew Nacin
f733b63c93 Shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@18414 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-11 05:34:15 +00:00
Andrew Nacin
57b3d031a7 Restore page-template-default body class. props peterwilsoncc, fixes #18018 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@18412 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-11 05:31:57 +00:00
Peter Westwood
66307dc19d Ensure that we always coerce the class list passed to get_body_class to an array even when it is empty. Fixes #17717
git-svn-id: https://develop.svn.wordpress.org/trunk@18176 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-07 08:55:25 +00:00
Ryan Boren
8db8af8fe5 Return false from is_page_template() if the template is default. Props johnbillion. fixes #17458
git-svn-id: https://develop.svn.wordpress.org/trunk@18062 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-27 15:24:33 +00:00
Andrew Nacin
738458cab6 Apply esc_html properly in Walker_PageDropdown. fixes #17217.
git-svn-id: https://develop.svn.wordpress.org/trunk@17683 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-22 18:24:57 +00:00
Andrew Nacin
43d4c448bf Initialize a variable. props boonebgorges, fixes #16977.
git-svn-id: https://develop.svn.wordpress.org/trunk@17564 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-27 19:46:18 +00:00
Andrew Nacin
dc864d94e8 Only add the post format post classes when the post type supports post formats. posts posts posts posts. props iandstewart, fixes #16224.
git-svn-id: https://develop.svn.wordpress.org/trunk@17292 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-13 23:02:24 +00:00
Andrew Nacin
f384fe3e81 _get_post_ancestors() in Walker_Page. props layotte, fixes #14329.
git-svn-id: https://develop.svn.wordpress.org/trunk@16834 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 12:38:23 +00:00
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