Commit Graph

275 Commits

Author SHA1 Message Date
Ryan Boren 34ef8c8df9 Translations in title attributes require esc_attr().
git-svn-id: https://develop.svn.wordpress.org/trunk@17102 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-21 17:17:58 +00:00
Ryan Boren 2423095bc1 Relocate isset check. Props TobiasBg, SergeyBiryukov. fixes #15041
git-svn-id: https://develop.svn.wordpress.org/trunk@17076 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-20 11:41:08 +00:00
Ryan Boren 99bd388ef3 Fix guid generation for page auto drafts. Props shawnparker. fixes #15041
git-svn-id: https://develop.svn.wordpress.org/trunk@17061 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-19 14:42:17 +00:00
Andrew Nacin 541c45ba0e Make network_admin_url() return admin_url() when not multisite like its home and site counterparts. Kill the now redundant maybe_network_admin_url() function. fixes #15840.
git-svn-id: https://develop.svn.wordpress.org/trunk@16994 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 09:31:42 +00:00
Andrew Nacin 8cf8f3380c maybe_network_admin_url. see #15840.
git-svn-id: https://develop.svn.wordpress.org/trunk@16977 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 06:06:59 +00:00
Andrew Nacin c4ffd06f66 Inline doc fixes for get_next|previous|adjacent_post. props kawauso, fixes #15822.
git-svn-id: https://develop.svn.wordpress.org/trunk@16951 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-15 16:45:14 +00:00
Andrew Nacin 4904a251a5 Don't show extra .0 in _deprecated_argument calls. They should appear in @since docs though.
git-svn-id: https://develop.svn.wordpress.org/trunk@16938 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-15 11:27:38 +00:00
scribu 8c86414798 Revert logic change made in [16789]. See #13818
git-svn-id: https://develop.svn.wordpress.org/trunk@16793 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-08 09:15:09 +00:00
scribu 8f4416b53b Use has_archive in get_post_type_archive_link(). See #13818
git-svn-id: https://develop.svn.wordpress.org/trunk@16789 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-08 07:51:40 +00:00
Ryan Boren 18da5392f9 Link to edit profile screen within same admin if in network or user admin.
git-svn-id: https://develop.svn.wordpress.org/trunk@16475 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 23:07:59 +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 b4988b968b use get_queried_object() wrappers throughout. See #14015
git-svn-id: https://develop.svn.wordpress.org/trunk@16114 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-31 11:02:17 +00:00
Ryan Boren 40558c2dbc get_dashboard_url() and get_edit_profile_url(). Determine the appropriate dahboard for a user based on the user's blogs and the current blog. see #14696 #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16083 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 17:48:53 +00:00
Andrew Nacin 2c833277b2 Use correct variable. props linguasite, fixes #14141.
git-svn-id: https://develop.svn.wordpress.org/trunk@16030 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 05:58:49 +00:00
Andrew Nacin 234efcf413 Use a consistent variable.
git-svn-id: https://develop.svn.wordpress.org/trunk@15933 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 17:51:18 +00:00
Andrew Nacin cfde537391 Don't make redundant str_replace calls in link-template. props duck_.
git-svn-id: https://develop.svn.wordpress.org/trunk@15932 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 17:13:52 +00:00
Andrew Nacin fb4e38b0e7 Pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@15843 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:48:22 +00:00
Andrew Nacin fc71934f11 Full @since's for 3.1.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@15842 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:38:42 +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
Ryan Boren fe2b97b594 Remove dead code from get_next_posts_link(). Props filosofo. fixes #14850
git-svn-id: https://develop.svn.wordpress.org/trunk@15817 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 14:43:31 +00:00
scribu ba394c63a4 Rename get_edit_term_url() to get_edit_term_link() for consistency. See #9702
git-svn-id: https://develop.svn.wordpress.org/trunk@15801 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 08:47:41 +00:00
scribu 2e0bd92a09 get_edit_term_link() improvements:
* add optional $object_type parameter
	* make $term_id and $taxonomy parameters mandatory
	* pass all relevant information to the filter
	* use in WP_Terms_Table
See #9702


git-svn-id: https://develop.svn.wordpress.org/trunk@15800 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 07:35:13 +00:00
scribu 057abe87e0 Introduce edit_term_link() and get_term_url(). Props yoast. Fixes #9702
git-svn-id: https://develop.svn.wordpress.org/trunk@15792 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 14:54:21 +00:00
Ryan Boren 9ee8b20f30 First pass of user admin. Network admin and screen cleanups. see #14696
git-svn-id: https://develop.svn.wordpress.org/trunk@15746 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 19:34:18 +00:00
Dion Hulse 3d2e3625d4 Do not load Taxonomy cache & Postmeta cache in get_boundary_post(). Fixes #15028
git-svn-id: https://develop.svn.wordpress.org/trunk@15701 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 09:17:18 +00:00
Andrew Nacin f445cbf975 Have get_boundary_post sort by post_date, not ID. props scribu, jk0. fixes #14035.
git-svn-id: https://develop.svn.wordpress.org/trunk@15660 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-26 08:31:16 +00:00
scribu b1def7dad8 Introduce 'edit_comment' meta cap. Fixes #14520
git-svn-id: https://develop.svn.wordpress.org/trunk@15596 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 23:35:28 +00:00
Andrew Nacin 9494e4ce7e Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +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
Andrew Nacin 457c37ff01 Adjustments to [15549]. See #11624.
git-svn-id: https://develop.svn.wordpress.org/trunk@15563 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-04 15:51:04 +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
Ryan Boren edd48280e3 Network Admin, first pass. see #14435
git-svn-id: https://develop.svn.wordpress.org/trunk@15481 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-30 20:34:54 +00:00
Andrew Nacin 0d687968ef get_post_permalink() should take a post ID and pass the post object to the filter. Note that the filter received a post object previously as the variable. props filosofo, fixes #14299 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15411 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-13 21:56:49 +00:00
Dion Hulse 7efc4efdaa Alot more tabs. Props jacobsantos & Viper007bond. See #14147
git-svn-id: https://develop.svn.wordpress.org/trunk@15355 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-30 00:05:18 +00:00
Peter Westwood c8dae44e09 Let the filters know its a sample permalink. Props yoast.
git-svn-id: https://develop.svn.wordpress.org/trunk@15117 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 20:52:22 +00:00
Andrew Nacin 12a45498b6 Consider 'auto-draft' a draft in get_post_permalink(). prevents custom post types from getting borked GUIDs. see #13555
git-svn-id: https://develop.svn.wordpress.org/trunk@14948 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 17:25:57 +00:00
Ryan Boren aec821c651 Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@14924 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 02:42:15 +00:00
Andrew Nacin 7efaa581d3 Use a post type object label for edit_post_link's title attribute. props sc0ttkclark.
git-svn-id: https://develop.svn.wordpress.org/trunk@14901 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 18:55:51 +00:00
Ryan Boren 1c93bc2006 Introduce get_term_feed_link(). Use it in wp_list_categories(). Props blepoxp. see #13058
git-svn-id: https://develop.svn.wordpress.org/trunk@14711 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-17 16:21:12 +00:00
Ron Rennick 179273030a improvements to get_home/site_url, props andreasnrb + code cleanup, see #12735
git-svn-id: https://develop.svn.wordpress.org/trunk@14702 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 21:58:31 +00:00
Andrew Nacin e6ae8c05e8 Always pass post ID, not post object, to the_title filter. Original the_title filter in get_the_title() uses ID only. props filosofo, fixes #12631.
git-svn-id: https://develop.svn.wordpress.org/trunk@14653 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 05:26:25 +00:00
Andrew Nacin 4f689c8309 Move taxonomy object properties for capabilities into a cap object. Capabilities can be specified via ['capabilities'] (an array keyed by the generic cap name) for register_taxonomy. fixes #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14593 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 04:10:17 +00:00
Andrew Nacin 323342deec Move post type object capabilities to a 'cap' object. Allow them to be initialized via the 'capabilities' key (an array) when registering support for the post type. Caps are now referred to by the name of the cap as if it was a post, i.e. ->cap->edit_post. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14585 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 20:45:18 +00:00
Peter Westwood 85e9d665ee Make wp_get_shortlink() loop friendly. Fixes #13212 props ryan.
git-svn-id: https://develop.svn.wordpress.org/trunk@14490 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 21:20:17 +00:00
Ron Rennick c2b89e7330 use homeurl(), props PeteMall, see #9008
git-svn-id: https://develop.svn.wordpress.org/trunk@14429 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 00:28:29 +00:00
Ryan Boren 57a5a11660 Revert [14347] and [14372]. It broke more than we expected. Try again in 3.1. see #13051
git-svn-id: https://develop.svn.wordpress.org/trunk@14374 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 18:16:22 +00:00
Peter Westwood e20e62c135 Fix the edit post link to cope with the change in behaviour of admin_url to always escape the url. See #13051.
git-svn-id: https://develop.svn.wordpress.org/trunk@14372 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 13:56:35 +00:00
Ryan Boren 7fcda10d46 Escape links by default. Props alexkingorg. see #13051
git-svn-id: https://develop.svn.wordpress.org/trunk@14347 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-02 22:53:59 +00:00
Peter Westwood d192a8ca09 Switch to using esc_url{_raw} for the shortlink output as it is a url not just any attribute. Fixes #10640.
git-svn-id: https://develop.svn.wordpress.org/trunk@14208 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 21:23:32 +00:00