nacin
|
e47e3cc31c
|
Introduce is_post_type(). Can check if a post type is registered, or also if a post (current or specified) is of a certain post type. fixes #12588, props sirzooro, blepoxp, rmccue
git-svn-id: http://svn.automattic.com/wordpress/trunk@14158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-18 17:40:50 +00:00 |
nacin
|
98b9ace627
|
Use is_post_type_hierarchical and is_taxonomy_hierarchical when we're fetching a post/tax object only to check the hierarchical flag. fixes #12950.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-18 15:54:45 +00:00 |
nacin
|
4ba94c72fc
|
Allow include/exclude args to be arrays in get_posts() and get_pages(). Utilizes wp_parse_id_list(). props scribu, fixes #11076.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-18 04:54:19 +00:00 |
dd32
|
eb74c91d9f
|
Do not exclude inherit post_status from query results, Fixes Attachment listing in Gallery tab as well as displaying galleries on the front end (get_children() & friends). See #13031
git-svn-id: http://svn.automattic.com/wordpress/trunk@14122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-17 10:30:46 +00:00 |
nacin
|
e6e03bd7df
|
Allow for removing all tags in quick edit. Check only if $tags_input isset (can be empty) before running wp_set_post_tags. props sivel, fixes #12318.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-16 21:39:10 +00:00 |
nacin
|
14916e2449
|
Introduce the wp_filter_object_list() helper, with an $operator arg. Fixes an intersection bug in get_post_types() and get_taxonomies(). Also switches $operator default from 'or' to 'and' for get_post_stati(). props scribu, fixes #12966.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-16 14:08:58 +00:00 |
ryan
|
5e923222fa
|
Assume unattached attachments are published. fixes #12999
git-svn-id: http://svn.automattic.com/wordpress/trunk@14087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-14 15:20:15 +00:00 |
ryan
|
31c4756a42
|
Register 'inherit' as a post status. Check the parent post status when commenting on attachments.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-14 14:07:48 +00:00 |
dd32
|
b555a9a076
|
Update get_post_type() to perform on the current global post if none specified. Update PHPDoc to reflect changes. Props rmccue. Fixes #12827
git-svn-id: http://svn.automattic.com/wordpress/trunk@14071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-11 11:10:54 +00:00 |
dd32
|
0e7c1a0cb3
|
Update Future Scheduled posts publish status to Published upon updating the date to a past date. Props bumbu. Fixes #12751
git-svn-id: http://svn.automattic.com/wordpress/trunk@14062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-10 14:00:30 +00:00 |
dd32
|
0b4ebffe70
|
Handle future-scheduled custom post_type's. Props waltervos. Fixes #12842
git-svn-id: http://svn.automattic.com/wordpress/trunk@14056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-10 12:17:19 +00:00 |
nacin
|
5e36f9f821
|
Quick edit taxonomy label. props scribu, keighl, fixes #12796
git-svn-id: http://svn.automattic.com/wordpress/trunk@14054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-10 11:54:33 +00:00 |
dd32
|
ab16d12c2c
|
Introduce is_post_type_hierarchical(). Props ptahdunbar. See #12950
git-svn-id: http://svn.automattic.com/wordpress/trunk@14053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-10 11:42:45 +00:00 |
nacin
|
48dc61d1a9
|
Spell out that _builtin and _edit_link are internal use only. Include some redundancy and repetition for emphasis.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-08 01:04:22 +00:00 |
markjaquith
|
f1fd3f2780
|
Add menu_position and menu_icon params to register_post_type(). props ptahdunbar. fixes #12541
git-svn-id: http://svn.automattic.com/wordpress/trunk@14014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-06 04:32:08 +00:00 |
nacin
|
c059c511df
|
Use the API to remove comments when deleting a post. Cleans up comment meta in the process. fixes #12766, props briancolinger
git-svn-id: http://svn.automattic.com/wordpress/trunk@13997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-04 12:42:34 +00:00 |
nacin
|
791192d961
|
Add $force_delete to wp_delete_comment(). see #12766, see #11470.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-04 12:20:19 +00:00 |
nacin
|
2e054e2805
|
Add docs to add_post_type_support(). fixes #12644, props sillybean.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-04 04:14:17 +00:00 |
nacin
|
5f50e18c0b
|
Add post type parameter to get_page_by_title(). props mikeschinkel, fixes #12743.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-31 08:20:28 +00:00 |
nacin
|
3918b75cbe
|
Change @since 2.9 to @since 2.9.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-26 19:23:39 +00:00 |
nacin
|
a7feaed0e6
|
Change @since 3.0 to @since 3.0.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-26 19:13:36 +00:00 |
nacin
|
ba6f1cba07
|
Various bug fixes and improvements to menu management. props ptahdunbar, see #11817.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-22 19:56:16 +00:00 |
nacin
|
236a1f6ed4
|
Fix typo in inline docs for register_post_type(). fixes #12664 props sillybean.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-22 03:11:15 +00:00 |
dd32
|
b16190c496
|
Add hierarchical support for custom post_types in Rewrite Rules & Querying. See #12643
git-svn-id: http://svn.automattic.com/wordpress/trunk@13774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-20 02:23:52 +00:00 |
dd32
|
3fdd2bbdff
|
Allow for a custom Endpoint Mask to be passed to add_endpoint(). Allows for endpoints to be targeted to specific rewrite rules. Allow custom post_types to specify their Endpoint mask. Allows for post_type's rewrite rules to inherit Post endpoints, or alternatively, allows for add_endpoint() to target specific post_types. Fixes #12605
git-svn-id: http://svn.automattic.com/wordpress/trunk@13773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-20 02:05:32 +00:00 |
nacin
|
30d6eb32c6
|
Remove redundant isset() and empty() checks.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-19 21:29:21 +00:00 |
ryan
|
e25a65b36a
|
Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@13733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-17 16:27:25 +00:00 |
nacin
|
a237b80e0b
|
Prevent page(\d+) slugs, and force a suffix. props miqrogroove. fixes #11917. see #8948
git-svn-id: http://svn.automattic.com/wordpress/trunk@13717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-16 18:36:26 +00:00 |
ryan
|
81d6e1e8b3
|
Allow enabling/disabling title and editor per post type. Introdoce remove_post_type_support(). Add enable/disable for author override. Props scribu. fixes #12590
git-svn-id: http://svn.automattic.com/wordpress/trunk@13710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-15 21:16:41 +00:00 |
ryan
|
63302cae08
|
Add custom hierarchical post type support to get_pages(). Props ptahdunbar. see #12600
git-svn-id: http://svn.automattic.com/wordpress/trunk@13695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-13 20:01:02 +00:00 |
ryan
|
2d2cb240df
|
Cache get_lastpostmodified() results. see #12575
git-svn-id: http://svn.automattic.com/wordpress/trunk@13653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-10 21:32:03 +00:00 |
ryan
|
086ad7d933
|
Improve user listing performance. Props miqrogroove. see #11914
git-svn-id: http://svn.automattic.com/wordpress/trunk@13576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-03 19:08:30 +00:00 |
nacin
|
bf207bc6e6
|
Reject numeric page slugs as they don't work, and force a suffix. Props miqrogroove see #11917
git-svn-id: http://svn.automattic.com/wordpress/trunk@13424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-26 04:53:30 +00:00 |
nacin
|
8bcc5969dc
|
Spelling and grammar fun. Fixes #11875 props cnorris23
git-svn-id: http://svn.automattic.com/wordpress/trunk@13382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-24 20:13:23 +00:00 |
markjaquith
|
09e8d27130
|
Whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@13316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-22 23:12:48 +00:00 |
ryan
|
1f169578f9
|
Don't require a default category for attachment types other than 'post'. Props jfarthing84. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@13291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-22 17:19:54 +00:00 |
dd32
|
0ec732b34a
|
Introduce assign_cap for Taxonomies, Defaults to 'edit_posts'. Allows for Authors/Contributors to tag/categorise their posts. See #12035
git-svn-id: http://svn.automattic.com/wordpress/trunk@13289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-22 08:36:32 +00:00 |
ryan
|
41bea20d51
|
Use nav_menu as the taxonomy name and nav_menu_item as the post type. Set object_id in postmeta. see #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-21 18:24:41 +00:00 |
ryan
|
470eb8e6ce
|
Remove custom post states. Register taxonomy against menu_item post type. see #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-20 22:35:39 +00:00 |
wpmuguru
|
4d203a02c6
|
introduce custom menus, props jeffikus, See #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-20 21:57:43 +00:00 |
dd32
|
679250491d
|
Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: http://svn.automattic.com/wordpress/trunk@13242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-20 02:01:46 +00:00 |
dd32
|
80d9329e5e
|
Remove unused references to global $wpdb
git-svn-id: http://svn.automattic.com/wordpress/trunk@13240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-20 00:50:29 +00:00 |
dd32
|
35cdac687c
|
More Taxonomy cap checks. See #12035
git-svn-id: http://svn.automattic.com/wordpress/trunk@13217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-19 10:26:44 +00:00 |
nacin
|
84da5911aa
|
Assume WP_DEBUG is defined in wpdb. Remove unnecessary constant() calls. Ensure DB_COLLATE defined as empty string doesn't override default Multisite collation. fixes #12041, see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@13209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-19 01:03:58 +00:00 |
ryan
|
8e10d3dce0
|
Don't use array_fill_keys() as it is PHP5 only. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@13199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-18 20:03:04 +00:00 |
ryan
|
71b350a317
|
Don't include internal post types in the total. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@13198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-18 20:01:10 +00:00 |
azaozz
|
e41f7c83ce
|
Clean attachment cache when reattaching, fixes #11647
git-svn-id: http://svn.automattic.com/wordpress/trunk@13192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-18 07:43:35 +00:00 |
ryan
|
6baf424bf5
|
Don't require a default category for post types other than 'post'. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@13184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-17 20:33:29 +00:00 |
ryan
|
f18f34ead8
|
Flag post statuses as public, private, protected, or internal. Add flags for showing the type in the admin all query and the admin status list. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@13172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-16 21:13:44 +00:00 |
dd32
|
8136de990c
|
Introduce 'singular_label' for Post Types. Props scribu. See #12214
git-svn-id: http://svn.automattic.com/wordpress/trunk@13101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-13 08:56:38 +00:00 |