Ryan Boren
|
f39604511e
|
Fix CPT rewrite generation when turning on permalinks. Props andy. see #18040 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@18443 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-07-15 15:49:42 +00:00 |
|
Ryan Boren
|
acc022ea36
|
Unset filter when inserting/updating posts. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@18367 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-28 21:46:18 +00:00 |
|
Andrew Ozz
|
8649cfa2e9
|
Fix phpdoc for register_post_status(), props aaroncampbell, fixes #17900
git-svn-id: https://develop.svn.wordpress.org/trunk@18352 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-27 21:22:31 +00:00 |
|
Ryan Boren
|
cdd05b3c9f
|
Sanitize sort_column and sort_order in get_pages(). Escape search_term in WP_User_Search. Cast blog_id to int in get_blog_prefix(). Props duck_
git-svn-id: https://develop.svn.wordpress.org/trunk@18350 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-27 20:47:04 +00:00 |
|
Andrew Nacin
|
240e0f44d6
|
Introduce name_admin_bar label and the show_in_admin_bar (Add New menu) argument for post types. Allows for proper translations of these strings and provides for consolidated logic. fixes #16406.
git-svn-id: https://develop.svn.wordpress.org/trunk@18261 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-11 02:20:18 +00:00 |
|
Mark Jaquith
|
2aea6faf97
|
Fix mistaken use of publicly_queryable when public was what was intended. props nacin. fixes #17040
git-svn-id: https://develop.svn.wordpress.org/trunk@18234 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-10 17:02:03 +00:00 |
|
Peter Westwood
|
29a53e3eb0
|
Only show Comments are Closed when they are supported.
Tidy up the logic to be clearer.
Mark attachements as supporting comments.
Fixes #17568 props duck_
git-svn-id: https://develop.svn.wordpress.org/trunk@18211 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-09 11:12:39 +00:00 |
|
Ryan Boren
|
13a399b112
|
Use array_combine() to avoid a hard-coded copy of the post format slugs. Props mfields. fixes #17576
git-svn-id: https://develop.svn.wordpress.org/trunk@18083 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-31 19:52:38 +00:00 |
|
Ryan Boren
|
9eb9cb1e01
|
phpdoc typo fix. Props Caspie. fixes #17616
git-svn-id: https://develop.svn.wordpress.org/trunk@18080 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-31 15:23:21 +00:00 |
|
Ryan Boren
|
48fd7708b1
|
Rename duplicate delete_post and deleted_post actions to before_delete_post and after_delete_post. Props scribu. fixes #13731
git-svn-id: https://develop.svn.wordpress.org/trunk@18012 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-23 23:43:14 +00:00 |
|
Ryan Boren
|
da02537bb0
|
Mark import attachments as private. Schedule job to delete old import attachments. Introduce attachment context.
git-svn-id: https://develop.svn.wordpress.org/trunk@17999 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-22 23:25:28 +00:00 |
|
Andrew Nacin
|
b2a37f2965
|
Allow get_pages() to take multiple post statuses. see #8592.
git-svn-id: https://develop.svn.wordpress.org/trunk@17889 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-12 03:53:46 +00:00 |
|
Mark Jaquith
|
1271508bb2
|
Rename submenus to not clash with top level menus. Introduce all_items CPT string, defaulting to menu_name. fixes #17378
git-svn-id: https://develop.svn.wordpress.org/trunk@17864 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-11 20:09:28 +00:00 |
|
Andrew Nacin
|
f504e221e1
|
Switch from Panel/SubPanel to Screen in inline documentation and Codex links. props michaelh, fixes #17265.
git-svn-id: https://develop.svn.wordpress.org/trunk@17748 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-28 15:24:49 +00:00 |
|
Andrew Nacin
|
e2c4a1b26e
|
Use the post type object in get_posts_by_author_sql() and add a post type parameter to count_many_users_posts(). The formerly somewhat useless and now totally useless pub_priv_sql_capability filter is considered deprecated. fixes #17220.
git-svn-id: https://develop.svn.wordpress.org/trunk@17742 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-28 11:27:39 +00:00 |
|
Ryan Boren
|
c4d025eb56
|
Typo fix. Props ocean90, guyn. fixes #17234
git-svn-id: https://develop.svn.wordpress.org/trunk@17698 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-25 14:33:27 +00:00 |
|
Andrew Nacin
|
4876de9bed
|
Fix copypasta typo in docblock. props scribu, fixes #16384.
git-svn-id: https://develop.svn.wordpress.org/trunk@17540 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-23 18:42:59 +00:00 |
|
Mark Jaquith
|
0984bae175
|
Correctly handle PATHINFO CPTs and CTs that specify with_front=false. fixes #16807 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17518 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-10 04:24:48 +00:00 |
|
Mark Jaquith
|
f490877ab4
|
Use with_front properly when creating rules for CPT archive pages. props scribu. fixes #16626 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17514 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-09 05:40:52 +00:00 |
|
Ryan Boren
|
4d95849968
|
Don't query the post format for post types that don't support formats. Props nacin. fixes #16503 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17429 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-02-09 17:13:28 +00:00 |
|
Mark Jaquith
|
118fb7f8ed
|
Do not use PHP5-only array_combine. props duck_. see #16459 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17402 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-02-05 18:46:07 +00:00 |
|
Mark Jaquith
|
acfa8f4e60
|
No translation for post format slugs. Too fragile for the future. fixes #16459 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17391 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-02-05 18:24:01 +00:00 |
|
Andrew Nacin
|
b735118cd7
|
Don't allow an empty rewrite slug for CPT. If you need something like this, do rewrite=>false. fixes #15082.
git-svn-id: https://develop.svn.wordpress.org/trunk@17298 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-14 15:42:56 +00:00 |
|
Andrew Nacin
|
dd4329a4bc
|
Limit post format queries to the post types registered for the taxonomy. see #16149.
git-svn-id: https://develop.svn.wordpress.org/trunk@17249 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-11 18:30:37 +00:00 |
|
Ryan Boren
|
eba71eb7c0
|
Bring out the shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@17228 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-06 04:11:14 +00:00 |
|
Mark Jaquith
|
6a79affc88
|
Funnel unknown values to blank (standard) post format in set_post_format()
git-svn-id: https://develop.svn.wordpress.org/trunk@17224 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-05 22:26:55 +00:00 |
|
Andrew Nacin
|
0bd60eb228
|
Have menu_name work with show_in_menu = submenu. fixes #14832.
git-svn-id: https://develop.svn.wordpress.org/trunk@17197 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-01 00:21:18 +00:00 |
|
Andrew Nacin
|
2fee9b3e7f
|
Correct the docs for register_post_status. fixes #15947, props simonwheatley.
git-svn-id: https://develop.svn.wordpress.org/trunk@17158 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-26 22:45:34 +00:00 |
|
Mark Jaquith
|
135bd083a4
|
Translate post format term names on the fly. props mfields. fixes #15899
git-svn-id: https://develop.svn.wordpress.org/trunk@17092 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-20 21:59:16 +00:00 |
|
Andrew Nacin
|
23339857e5
|
Docs for get_post_format_slugs(). props demetris, fixes #15867.
git-svn-id: https://develop.svn.wordpress.org/trunk@17073 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-20 10:22:06 +00:00 |
|
Peter Westwood
|
c80789036e
|
Allow a plugin to filter our slugs if it wants to. Fixes #15726
git-svn-id: https://develop.svn.wordpress.org/trunk@16960 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-15 17:56:25 +00:00 |
|
Ryan Boren
|
6dc2d07bc4
|
Pink trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@16900 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-13 21:21:50 +00:00 |
|
Ryan Boren
|
00f652341f
|
s/default/standard/ for post format slug.
git-svn-id: https://develop.svn.wordpress.org/trunk@16898 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-13 20:50:10 +00:00 |
|
Andrew Nacin
|
abd3871510
|
Use correct query var. see #15378.
git-svn-id: https://develop.svn.wordpress.org/trunk@16837 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-09 14:23:54 +00:00 |
|
Andrew Nacin
|
6fcde6c9fe
|
Remove post_type_supports check from register_post_type caps all together. fixes #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@16825 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-08 22:07:29 +00:00 |
|
Mark Jaquith
|
b105838594
|
Do not store empty _wp_old_slug values. fixes #15736
git-svn-id: https://develop.svn.wordpress.org/trunk@16820 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-08 21:22:16 +00:00 |
|
Mark Jaquith
|
956b191c60
|
Use is_page_type_hierarchical(). props nacin. see #15140
git-svn-id: https://develop.svn.wordpress.org/trunk@16819 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-08 21:17:01 +00:00 |
|
Mark Jaquith
|
08671532d3
|
Do not do slug logging/redirects for hierarchical post types. see #15140
git-svn-id: https://develop.svn.wordpress.org/trunk@16818 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-08 21:10:38 +00:00 |
|
Andrew Nacin
|
b613ab037c
|
Use pagination base for CPT archives. props scribu, fixes #15728.
git-svn-id: https://develop.svn.wordpress.org/trunk@16787 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-08 07:02:52 +00:00 |
|
Ryan Boren
|
fcfb406c7c
|
Apply wp_get_attachment_url to empty urls. Props filosofo. fixes #15494
git-svn-id: https://develop.svn.wordpress.org/trunk@16768 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-07 18:16:21 +00:00 |
|
Andrew Nacin
|
96e0e3b82f
|
Post format indexes. First pass. see #15378.
git-svn-id: https://develop.svn.wordpress.org/trunk@16705 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-03 10:13:17 +00:00 |
|
Andrew Nacin
|
6352189dd5
|
Remove sticky arg from post support. props michaelh, see #12702.
git-svn-id: https://develop.svn.wordpress.org/trunk@16698 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-02 23:16:04 +00:00 |
|
Mark Jaquith
|
4b8e7b1c5b
|
Missed a s/default/standard/ in [16679]. props PeteMall. see #15582.
git-svn-id: https://develop.svn.wordpress.org/trunk@16682 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-02 04:36:00 +00:00 |
|
Mark Jaquith
|
c821bc7ca2
|
The name of the standard post format is now Standard (might offer ability to change Default). fixes #15582
git-svn-id: https://develop.svn.wordpress.org/trunk@16679 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-02 03:19:14 +00:00 |
|
Mark Jaquith
|
c9690cf60b
|
Throw WP_Error if post_type passed to register_post_type() is longer than schema allows. props phrostypoison. fixes #13709
git-svn-id: https://develop.svn.wordpress.org/trunk@16670 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-01 20:43:39 +00:00 |
|
scribu
|
c6d9ed1f35
|
Remove archaic reference return in get_children(). Props filosofo. Fixes #12372
git-svn-id: https://develop.svn.wordpress.org/trunk@16667 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-01 20:23:57 +00:00 |
|
Ryan Boren
|
a7d80782f2
|
Prevent default post formats from entering the DB. see #15629 #15582
git-svn-id: https://develop.svn.wordpress.org/trunk@16662 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-01 20:03:39 +00:00 |
|
Ryan Boren
|
51879abf56
|
Export filtering. Props duck_. fixes #15197
git-svn-id: https://develop.svn.wordpress.org/trunk@16652 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-01 17:21:58 +00:00 |
|
scribu
|
40c993af3f
|
Fix 'timeinfo' cache invalidation. Fixes #14922
git-svn-id: https://develop.svn.wordpress.org/trunk@16537 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-22 21:45:45 +00:00 |
|
Andrew Nacin
|
e8dd42ce2a
|
Revert [15688], [15689], [15691]. Try again in 3.2. see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@16535 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-22 17:17:26 +00:00 |
|
Andrew Nacin
|
4cfa4aaacf
|
Add the audio post format, the final format we plan to support. see #14746.
git-svn-id: https://develop.svn.wordpress.org/trunk@16534 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-22 17:05:14 +00:00 |
|
Mark Jaquith
|
94737b9d3b
|
Use "default" as the key (not "0") for the default post format string in the translation array. props josephscott
git-svn-id: https://develop.svn.wordpress.org/trunk@16477 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-19 04:32:33 +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 |
|
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
|
55e0256967
|
esc_textarea() and application for obvious textarea escaping. props alexkingorg. fixes #15454
git-svn-id: https://develop.svn.wordpress.org/trunk@16431 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-17 17:12:01 +00:00 |
|
Andrew Nacin
|
b0abda23b6
|
Don't check post_type_supports in map_meta_cap. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@16422 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-17 06:21:34 +00:00 |
|
scribu
|
43a3b3b65d
|
Update some @since tags. Props demetris. Fixes #15438
git-svn-id: https://develop.svn.wordpress.org/trunk@16400 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-16 13:16:13 +00:00 |
|
Andrew Nacin
|
76a7d50069
|
Sanity cast. see #15192.
git-svn-id: https://develop.svn.wordpress.org/trunk@16389 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-15 18:06:57 +00:00 |
|
Andrew Nacin
|
0b7f397e9b
|
set_post_thumbnail(). fixes #15192.
git-svn-id: https://develop.svn.wordpress.org/trunk@16388 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-15 17:59:25 +00:00 |
|
Andrew Nacin
|
682b6a20b2
|
capability_type = page and no custom caps should also kick on map_meta_cap. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@16387 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-15 17:11:34 +00:00 |
|
scribu
|
32b416f959
|
Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422
git-svn-id: https://develop.svn.wordpress.org/trunk@16365 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-14 15:50:02 +00:00 |
|
Andrew Nacin
|
812c44072a
|
Set map_meta_cap to true when capability_type = post and no custom caps are specified. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@16338 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-13 08:40:38 +00:00 |
|
Andrew Nacin
|
8d5463366a
|
Use term cache in get_post_format() to save a boatload of queries. see #15396.
git-svn-id: https://develop.svn.wordpress.org/trunk@16319 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-12 09:49:34 +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 |
|
Ryan Boren
|
af72ac38ff
|
Pass post ID to get_enclosed filter. Props willnorris. fixes #14018
git-svn-id: https://develop.svn.wordpress.org/trunk@16275 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-10 16:40:49 +00:00 |
|
Andrew Nacin
|
66d261ba84
|
Cripple capability_type. Produced inconsistent, janky meta cap mapping; now only acts as a capability base. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@16273 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-10 14:50:14 +00:00 |
|
Andrew Nacin
|
5861cd15ae
|
Properly set up menu_name. We're handling it differently because it defaults off other labels. fixes #14832.
git-svn-id: https://develop.svn.wordpress.org/trunk@16268 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-10 00:42:43 +00:00 |
|
Andrew Nacin
|
a8fca7761a
|
Better better message.
git-svn-id: https://develop.svn.wordpress.org/trunk@16263 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-09 20:37:47 +00:00 |
|
Peter Westwood
|
3f01db9dd9
|
Better message.
git-svn-id: https://develop.svn.wordpress.org/trunk@16257 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-09 10:45:30 +00:00 |
|
Peter Westwood
|
29da3d7730
|
Mark the calling of wp_get_recent_posts() with just a count as deprecated - only use in core was from XMLRPC.
git-svn-id: https://develop.svn.wordpress.org/trunk@16255 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-09 10:14:38 +00:00 |
|
Andrew Nacin
|
c165557b3e
|
Introduce menu_name label for taxonomies and post types. Defaults to name. fixes #14832.
git-svn-id: https://develop.svn.wordpress.org/trunk@16251 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-09 02:09:00 +00:00 |
|
Ryan Boren
|
d73a826715
|
Eliminate some queries in get_page_by_path() by consulting cache. Props Denis-de-Bernardy, wojtek.szkutnik. fixes #11373
git-svn-id: https://develop.svn.wordpress.org/trunk@16206 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-05 15:26:15 +00:00 |
|
Mark Jaquith
|
85957ff289
|
Allow get_post_format() to assume current post if none passed in. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16202 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-05 09:40:36 +00:00 |
|
Mark Jaquith
|
32ac7d22a6
|
get_post_format_string() to get nice version of a post format slug. Try appending post format as a post-status label. Enclose in square brackets to help it stand out. Remove post format strings filter. If this is going to be standard, it should be standard. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16198 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-05 03:04:13 +00:00 |
|
Mark Jaquith
|
c44eb74f66
|
Use post_type_supports() to check for whether a post type supports post formats. Only posts support it by default. props mikeschinkel. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16196 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-05 02:04:22 +00:00 |
|
Mark Jaquith
|
6648c30823
|
Translate and prettify post formats for display. Also, filterable by themes/plugins to add new ones. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16191 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-04 18:33:50 +00:00 |
|
scribu
|
a3009772e7
|
make not_found puctuation translatable. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16121 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-31 23:21:56 +00:00 |
|
Andrew Nacin
|
310a9b04d2
|
Move code out of the conditional. props duck_, fixes #14415.
git-svn-id: https://develop.svn.wordpress.org/trunk@16104 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-30 18:21:23 +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 |
|
Ryan Boren
|
2184a5d0f6
|
get_current_blog_id(). Props aaroncampbell. fixes #15233
git-svn-id: https://develop.svn.wordpress.org/trunk@16050 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-28 15:46:11 +00:00 |
|
Ryan Boren
|
c9d26cd5b3
|
Refactor wp_get_recent_posts to use get_posts(). Props blepoxp. fixes #14389
git-svn-id: https://develop.svn.wordpress.org/trunk@15973 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-26 13:50:38 +00:00 |
|
Andrew Nacin
|
90b2bbe16e
|
Allow page rewrites to be disabled. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15970 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-26 07:12:06 +00:00 |
|
Andrew Nacin
|
6eb9fbbd39
|
Remove post_type params from is_archive(). use is_post_type_archive() for full context. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15937 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-23 19:20:47 +00:00 |
|
Andrew Nacin
|
6d7366d5fc
|
Move the CPT archive flag outside of the rewrite argument, into its own has_archive. has_archive controls more than just URL rewriting, it also handles whether ?post_type= is treated as a CPT archive. feeds remain in rewrite as ?feed= would work regardless. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15936 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-23 18:29:22 +00:00 |
|
Andrew Nacin
|
7a0720ec5e
|
Allow capability_type to be an array, for odd plural situations such as story/storys/stories. After registration it reverts to a singular string. Lots of documentation for meta capabilities and post types, also some cleanups for register_post_type documentation. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15934 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-23 18:03:26 +00:00 |
|
Andrew Nacin
|
146a8cf16c
|
Revisions and attachments should also generate meta capabilities as part of their cap object. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15909 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-22 00:25:14 +00:00 |
|
Andrew Nacin
|
7e48ac3e78
|
Pruning shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@15904 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-21 19:55:28 +00:00 |
|
Andrew Nacin
|
96052a12a5
|
Only dumb down delete_others_posts if it deserves to exist. fixes a notice. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15897 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-21 16:28:35 +00:00 |
|
Andrew Nacin
|
c5b02e9685
|
Clean up get_post_type_capabilities. Don't bother with new capabilities for edit_others_posts and delete_others_posts if the post type does not support authors.
git-svn-id: https://develop.svn.wordpress.org/trunk@15892 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-21 15:05:10 +00:00 |
|
Andrew Nacin
|
71ebaa6170
|
Rough first pass on map_meta_cap for custom post types. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15890 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-21 14:40:04 +00:00 |
|
scribu
|
c5520dab32
|
Don't stomp on posts_per_page in get_posts(). Props bobbyblade. Fixes #15150
git-svn-id: https://develop.svn.wordpress.org/trunk@15852 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-19 17:08:32 +00:00 |
|
Andrew Nacin
|
22ba9295bf
|
Introduce show_in_menu for register_post_type. Allows post types to be a submenu. Accepts boolean and also a parent base. With help from duck_. fixes #14145.
git-svn-id: https://develop.svn.wordpress.org/trunk@15844 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-19 07:58:02 +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
|
44bf886cb9
|
Inline docs for _get_last_post_time helper.
git-svn-id: https://develop.svn.wordpress.org/trunk@15841 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-19 07:35:12 +00:00 |
|
scribu
|
dfbe420d9c
|
Get rid of wp_cache_key(), as it's not really that useful. See [15838]
git-svn-id: https://develop.svn.wordpress.org/trunk@15839 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-18 21:54:39 +00:00 |
|
scribu
|
e62f41c374
|
Fix custom post type feed when no regular posts present. Props aaroncampbell for initial patch. Fixes #14922
git-svn-id: https://develop.svn.wordpress.org/trunk@15838 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-18 21:06:49 +00:00 |
|
Dion Hulse
|
846ef7d8c3
|
Save _wp_old_slug for all published post_type's, brings old-slug redirection to Posts and CPT's. See #15140
git-svn-id: https://develop.svn.wordpress.org/trunk@15831 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-18 11:24:29 +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
|
8e1da911a2
|
Prevent post and term hierarchy loops. Props mdawaffe. fixes #14662
git-svn-id: https://develop.svn.wordpress.org/trunk@15806 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-14 15:09:04 +00:00 |
|
Andrew Nacin
|
cb3396d39c
|
Use correct variable. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15804 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-14 11:31:48 +00:00 |
|
Andrew Nacin
|
86ab32a196
|
Custom post type archives. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15803 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-14 10:39:47 +00:00 |
|
Ryan Boren
|
40dade4c0e
|
Allow deleting a format. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@15779 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-12 19:43:54 +00:00 |
|
Ryan Boren
|
0ccec0d6f1
|
has_post_format(). see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@15778 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-12 19:25:58 +00:00 |
|
Ryan Boren
|
b1beb9c211
|
Post formats, take one. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@15777 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-12 18:33:14 +00:00 |
|
Ryan Boren
|
3a8fb669cb
|
Some more hierarchy loop detection.
git-svn-id: https://develop.svn.wordpress.org/trunk@15758 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-08 16:22:14 +00:00 |
|
Andrew Nacin
|
d8596259e2
|
Sticky post support for post types, first pass. see #12702, props azizur.
git-svn-id: https://develop.svn.wordpress.org/trunk@15742 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-07 09:10:35 +00:00 |
|
Dion Hulse
|
d837eb9f8f
|
Cache terms under more scenario's in update_post_caches(). Fixes #15026
git-svn-id: https://develop.svn.wordpress.org/trunk@15700 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-04 08:56:04 +00:00 |
|
Andrew Nacin
|
d2cfd1f678
|
wp_quickpress_form, first pass. props jorbin. see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@15691 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-03 07:41:48 +00:00 |
|
Andrew Nacin
|
ea2f90c70e
|
Move some post and taxonomy functions from admin/includes to wp-includes in preparation for QuickPress template tag. Moves get_tags_to_edit, get_terms_to_edit, get_default_post_to_edit, media_buttons, _media_button, get_upload_iframe_src. Also introduce get_media_buttons as a wrapper for media_buttons. props jorbin, see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@15688 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-03 02:58:59 +00:00 |
|
Ryan Boren
|
df6d5550db
|
Simplify sanitize_key() and use it in more places. see #14910
git-svn-id: https://develop.svn.wordpress.org/trunk@15635 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-09-20 15:28:58 +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 |
|
Mark Jaquith
|
93680ad646
|
Rename caller_get_posts WP_Query flag to ignore_sticky_posts, because that is the only thing it does. fixes #14624. props scribu
git-svn-id: https://develop.svn.wordpress.org/trunk@15589 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-09-07 04:46:08 +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
|
af29b5d5cf
|
phpdoc, @since, whitespace. Also require an argument in wp_insert_post(). props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15564 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-09-05 02:45:39 +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 |
|
scribu
|
fbdaa80fde
|
Always set no_found_rows = true in get_posts(). Fixes #14528
git-svn-id: https://develop.svn.wordpress.org/trunk@15548 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-08-28 11:51:02 +00:00 |
|
Mark Jaquith
|
ad944bb822
|
Do not attempt to clear post cache for post ID 0... that will recursively destroy your server
git-svn-id: https://develop.svn.wordpress.org/trunk@15503 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-08-18 06:50:53 +00:00 |
|
Andrew Nacin
|
c9d4749ed7
|
Doc update for [15402]. fixes #14301.
git-svn-id: https://develop.svn.wordpress.org/trunk@15449 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-07-21 00:50:01 +00:00 |
|
Ryan Boren
|
4fb68cd5e8
|
Sanity check properties in wp_get_single_post(). Props filosofo. fixes #13904 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15405 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-07-13 21:30:09 +00:00 |
|
Andrew Nacin
|
dc3140a664
|
Have wp_set_post_terms return wp_set_object_terms. fixes #14301.
git-svn-id: https://develop.svn.wordpress.org/trunk@15402 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-07-13 21:01:48 +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 |
|
Ryan Boren
|
44a502207a
|
Use get_post_types() to create list of hierarchical post types. fixes #14079 for 3.1
git-svn-id: https://develop.svn.wordpress.org/trunk@15348 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-29 14:10:54 +00:00 |
|
Ryan Boren
|
58a038d2ad
|
Avoid var name collision. see #13929
git-svn-id: https://develop.svn.wordpress.org/trunk@15269 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-16 21:46:42 +00:00 |
|
Ryan Boren
|
7def07393e
|
Retern variable to avoid notice in PHP 4.
git-svn-id: https://develop.svn.wordpress.org/trunk@15265 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-16 19:11:44 +00:00 |
|
Ryan Boren
|
fc2793bd46
|
Deprecate is_term, is_taxonomy, is_post_type for *_exists(). Props nacin. fixes #13747
git-svn-id: https://develop.svn.wordpress.org/trunk@15220 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-11 15:53:41 +00:00 |
|
Andrew Nacin
|
9d38c0af9e
|
Move 'helps' argument to the taxonomy labels object. Also move over help_nojs and help_cloud, both introduced in 3.0. This adds three new core labels for non-hierarchical taxonomies, for tweaking the meta box strings. fixes #13805.
git-svn-id: https://develop.svn.wordpress.org/trunk@15190 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-10 16:07:33 +00:00 |
|
Ryan Boren
|
9319e06698
|
Fix global post stomping in get_post(). Turn get_page() into an alias of get_post(). Props westi. fixes #13753
git-svn-id: https://develop.svn.wordpress.org/trunk@15188 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-10 14:55:26 +00:00 |
|
Ryan Boren
|
c0570f3494
|
phpdoc fix. Props duck_
git-svn-id: https://develop.svn.wordpress.org/trunk@15169 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-08 13:24:20 +00:00 |
|
Andrew Nacin
|
60b96042f2
|
Use show_in_nav_menus for attachments. Also add it to register_taxonomy for consistency and have it default to public, not show_ui, like post types. see #13621.
git-svn-id: https://develop.svn.wordpress.org/trunk@15056 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-29 16:46:46 +00:00 |
|
Andrew Nacin
|
ac048dfbd8
|
Some inline doc updates for get_post_type_capabilities and get_post_type_labels. props MichaelH, fixes #13573.
git-svn-id: https://develop.svn.wordpress.org/trunk@14991 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-27 12:44:08 +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
|
855bc34ad9
|
Remove unused/duplicated/undocumented post type object label. see #13539
git-svn-id: https://develop.svn.wordpress.org/trunk@14903 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-25 19:25:27 +00:00 |
|
Andrew Nacin
|
ad59625e7f
|
Fix typo. props rovo89, fixes #13494.
git-svn-id: https://develop.svn.wordpress.org/trunk@14902 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-25 18:59:20 +00:00 |
|
Ryan Boren
|
e63b2b97be
|
Don't set default category when saving an auto-draft. fixes #13531
git-svn-id: https://develop.svn.wordpress.org/trunk@14883 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-25 14:43:39 +00:00 |
|
Andrew Nacin
|
0e7af12e41
|
Remove now-unused post_type_object->labels>edit, which was 'Edit' (with context). see #12968, see #11274.
git-svn-id: https://develop.svn.wordpress.org/trunk@14857 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-24 21:19:29 +00:00 |
|
Dion Hulse
|
b93faecc52
|
Introduce a 'post_updated' action, Fires when a post is updated, Post ID, Current and Previous post objects are passed. Updatewp_check_for_changed_slugs() to use new hook. See #12473
git-svn-id: https://develop.svn.wordpress.org/trunk@14814 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-23 07:49:21 +00:00 |
|
Ryan Boren
|
e88dc2d87d
|
Set show_ui to true for post and page. Exclude _builtin = true from areas where we need to special case builtin types. fixes #13403
git-svn-id: https://develop.svn.wordpress.org/trunk@14713 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-17 16:39:36 +00:00 |
|
Peter Westwood
|
a0740155c5
|
Make get_attachment_metadata() loop safe.
git-svn-id: https://develop.svn.wordpress.org/trunk@14699 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-16 21:00:00 +00:00 |
|
Andrew Nacin
|
f92765c934
|
Remove default_comment_status_pages setting. Reverts [14451], [14448] for 3.0. see #12991.
git-svn-id: https://develop.svn.wordpress.org/trunk@14650 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-15 04:56:56 +00:00 |
|
Ryan Boren
|
35cd94b58c
|
register_post_type phpdoc updates. Props michaelh. fixes #13398
git-svn-id: https://develop.svn.wordpress.org/trunk@14648 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-14 22:26:07 +00:00 |
|
Nikolay Bachiyski
|
8a95987fad
|
Keep label as a quick way to set up a taxonomy/post type, without diving into the labels array. Deprecate singular_label while there. Props nacin. Fixes #13357
git-svn-id: https://develop.svn.wordpress.org/trunk@14619 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-14 02:13:49 +00:00 |
|
Nikolay Bachiyski
|
599c19481e
|
I18n for custom taxonomies. Fixes #13357
git-svn-id: https://develop.svn.wordpress.org/trunk@14614 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-14 00:34:04 +00:00 |
|
Ryan Boren
|
3c7ca79f6e
|
Add show_in_nav_menus flag to post type registration. Props williamsba1. fixes #13144
git-svn-id: https://develop.svn.wordpress.org/trunk@14602 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-13 17:29:45 +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
|
7c0dcdca6b
|
Unset capabilities property when we're done. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14589 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-12 21:17:38 +00:00 |
|
Andrew Nacin
|
4a19ba4f0f
|
Fix typos. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14587 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-12 20:57:47 +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 |
|
Andrew Nacin
|
4b6c5c65c6
|
Use correct cap check. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14584 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-12 19:39:30 +00:00 |
|
Nikolay Bachiyski
|
ad3881470e
|
I18n for custom post type labels. Props demetris, dimadin. Fixes #12968
git-svn-id: https://develop.svn.wordpress.org/trunk@14571 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-11 19:52:50 +00:00 |
|
Ryan Boren
|
d5308265cd
|
Don't set/get tags or categories for post types that do not support them. fixes #13346
git-svn-id: https://develop.svn.wordpress.org/trunk@14561 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-11 16:28:00 +00:00 |
|
Ryan Boren
|
ee0b76261b
|
Allow turning off object_term and postmeta cache updates. Turn off object_term updates in the wp_get_nav_menu_items() get_posts() query to avoid useless taxonomy query.
git-svn-id: https://develop.svn.wordpress.org/trunk@14528 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-10 00:58:39 +00:00 |
|
Andrew Nacin
|
fd9b4855e6
|
Simplify is_post_type and is_post_type_hierarchical. Make them work like their taxonomy counterparts. see #12588.
git-svn-id: https://develop.svn.wordpress.org/trunk@14521 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-08 22:10:28 +00:00 |
|
Peter Westwood
|
5b4e507d7d
|
Restore the strtotime(). See #9285.
git-svn-id: https://develop.svn.wordpress.org/trunk@14507 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-07 20:57:23 +00:00 |
|
Andrew Nacin
|
ec9d233b8b
|
Fix to is_post_type. props scribu, fixes #12588.
git-svn-id: https://develop.svn.wordpress.org/trunk@14498 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-07 04:57:23 +00:00 |
|
Peter Westwood
|
dacd1c5623
|
Improve cross DST future post publishing behaviour to try and publish at the correct time if we have PHP5 timezone support available to help. Fixes #9285 props technosailor.
git-svn-id: https://develop.svn.wordpress.org/trunk@14487 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-06 20:40:29 +00:00 |
|
Andrew Nacin
|
cba25aba7e
|
Prevent ambiguous table aliases in wp_post_mime_type_where. props stephdau, jfarthing84, fixes #12750.
git-svn-id: https://develop.svn.wordpress.org/trunk@14478 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-06 18:03:05 +00:00 |
|
Ron Rennick
|
bdb89ac091
|
add default comment status setting for pages, props messenlehner, see #12991
git-svn-id: https://develop.svn.wordpress.org/trunk@14448 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-04 19:31:24 +00:00 |
|
Ron Rennick
|
3dea05d10c
|
use reset vs offset 0, props scribu, see #13246
git-svn-id: https://develop.svn.wordpress.org/trunk@14447 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-04 18:41:38 +00:00 |
|
Ron Rennick
|
5ac6893996
|
add export property to post types, see #10317
git-svn-id: https://develop.svn.wordpress.org/trunk@14441 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-04 16:23:25 +00:00 |
|
Andrew Nacin
|
23ce2f4151
|
Clean up whitespace in status/PT/tax registration.
git-svn-id: https://develop.svn.wordpress.org/trunk@14432 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-04 06:13:28 +00:00 |
|
Dion Hulse
|
a8feef50fc
|
Remove accidental code. See #10122
git-svn-id: https://develop.svn.wordpress.org/trunk@14431 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-04 05:48:08 +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 |
|
Dion Hulse
|
52cdae0385
|
Handle $_POST containing an empty term array, Fixes saving of deselecting all hierarchical terms. Fixes #10122
git-svn-id: https://develop.svn.wordpress.org/trunk@14426 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 23:35:22 +00:00 |
|
Ryan Boren
|
d783952469
|
Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 20:26:11 +00:00 |
|
Andrew Nacin
|
2fa9643cf2
|
Handle page hierarchy when showing the sample permalink. props duck_, fixes #12327.
git-svn-id: https://develop.svn.wordpress.org/trunk@14399 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 20:10:26 +00:00 |
|
Andrew Nacin
|
fbac23f1eb
|
Update object term cache for custom post types. props scribu, fixes #12989.
git-svn-id: https://develop.svn.wordpress.org/trunk@14310 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-29 20:43:59 +00:00 |
|
Andrew Nacin
|
5dbf47294f
|
When posts/terms are deleted/trashed, update associated menu items. Deleted post = deleted menu item, trashed post = menu item becomes a draft. props filosofo, see #13174
git-svn-id: https://develop.svn.wordpress.org/trunk@14295 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-29 07:33:56 +00:00 |
|
Andrew Nacin
|
68db25c00c
|
Don't translate internal post stati. props nbachiyski, fixes #13024.
git-svn-id: https://develop.svn.wordpress.org/trunk@14262 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-27 22:36:46 +00:00 |
|
Ryan Boren
|
77be931ef4
|
New menu UI. Props filosofo. see #12713
git-svn-id: https://develop.svn.wordpress.org/trunk@14248 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-27 01:05:58 +00:00 |
|
Ryan Boren
|
cb27ac1a30
|
Revert [14230]. Broke menu save. see #10122
git-svn-id: https://develop.svn.wordpress.org/trunk@14247 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-27 00:44:38 +00:00 |
|
Dion Hulse
|
e857394694
|
Allow edit posts page to save a empty set of terms for a custom hierarchical taxonomy. Props scribu for initial patch. See #10122
git-svn-id: https://develop.svn.wordpress.org/trunk@14230 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-25 07:42:51 +00:00 |
|
Dion Hulse
|
87981059db
|
Change custom post_type default Rewrite endpoint mask to EP_PERMALINK to ensure comment paging rules are added. Removes redundant/non-usable EP_NONE branch. Fixes #13086
git-svn-id: https://develop.svn.wordpress.org/trunk@14219 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-24 14:42:30 +00:00 |
|
Andrew Nacin
|
d7a1de87f0
|
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: https://develop.svn.wordpress.org/trunk@14158 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-18 17:40:50 +00:00 |
|
Andrew Nacin
|
bf00891a05
|
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: https://develop.svn.wordpress.org/trunk@14155 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-18 15:54:45 +00:00 |
|
Andrew Nacin
|
8771fc4af7
|
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: https://develop.svn.wordpress.org/trunk@14133 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-18 04:54:19 +00:00 |
|
Dion Hulse
|
1e0f313b60
|
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: https://develop.svn.wordpress.org/trunk@14122 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-17 10:30:46 +00:00 |
|
Andrew Nacin
|
8bc3075b1f
|
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: https://develop.svn.wordpress.org/trunk@14117 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-16 21:39:10 +00:00 |
|
Andrew Nacin
|
028f262ccf
|
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: https://develop.svn.wordpress.org/trunk@14108 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-16 14:08:58 +00:00 |
|
Ryan Boren
|
b9bdd0bfb1
|
Assume unattached attachments are published. fixes #12999
git-svn-id: https://develop.svn.wordpress.org/trunk@14087 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-14 15:20:15 +00:00 |
|
Ryan Boren
|
2e60fb8e0e
|
Register 'inherit' as a post status. Check the parent post status when commenting on attachments.
git-svn-id: https://develop.svn.wordpress.org/trunk@14086 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-14 14:07:48 +00:00 |
|
Dion Hulse
|
223677bd30
|
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: https://develop.svn.wordpress.org/trunk@14071 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-11 11:10:54 +00:00 |
|
Dion Hulse
|
92e3e6d69f
|
Update Future Scheduled posts publish status to Published upon updating the date to a past date. Props bumbu. Fixes #12751
git-svn-id: https://develop.svn.wordpress.org/trunk@14062 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-10 14:00:30 +00:00 |
|
Dion Hulse
|
0197326e4c
|
Handle future-scheduled custom post_type's. Props waltervos. Fixes #12842
git-svn-id: https://develop.svn.wordpress.org/trunk@14056 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-10 12:17:19 +00:00 |
|
Andrew Nacin
|
f6e054f892
|
Quick edit taxonomy label. props scribu, keighl, fixes #12796
git-svn-id: https://develop.svn.wordpress.org/trunk@14054 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-10 11:54:33 +00:00 |
|
Dion Hulse
|
4d5709b11d
|
Introduce is_post_type_hierarchical(). Props ptahdunbar. See #12950
git-svn-id: https://develop.svn.wordpress.org/trunk@14053 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-10 11:42:45 +00:00 |
|
Andrew Nacin
|
c30f9e100c
|
Spell out that _builtin and _edit_link are internal use only. Include some redundancy and repetition for emphasis.
git-svn-id: https://develop.svn.wordpress.org/trunk@14034 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-08 01:04:22 +00:00 |
|
Mark Jaquith
|
697e807eb0
|
Add menu_position and menu_icon params to register_post_type(). props ptahdunbar. fixes #12541
git-svn-id: https://develop.svn.wordpress.org/trunk@14014 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-06 04:32:08 +00:00 |
|
Andrew Nacin
|
966b3a13e7
|
Use the API to remove comments when deleting a post. Cleans up comment meta in the process. fixes #12766, props briancolinger
git-svn-id: https://develop.svn.wordpress.org/trunk@13997 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-04 12:42:34 +00:00 |
|
Andrew Nacin
|
122c6db06a
|
Add $force_delete to wp_delete_comment(). see #12766, see #11470.
git-svn-id: https://develop.svn.wordpress.org/trunk@13995 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-04 12:20:19 +00:00 |
|
Andrew Nacin
|
23858b35c2
|
Add docs to add_post_type_support(). fixes #12644, props sillybean.
git-svn-id: https://develop.svn.wordpress.org/trunk@13985 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-04 04:14:17 +00:00 |
|
Andrew Nacin
|
96697adf96
|
Add post type parameter to get_page_by_title(). props mikeschinkel, fixes #12743.
git-svn-id: https://develop.svn.wordpress.org/trunk@13899 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-31 08:20:28 +00:00 |
|
Andrew Nacin
|
d43df7123a
|
Change @since 2.9 to @since 2.9.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13829 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-26 19:23:39 +00:00 |
|
Andrew Nacin
|
e34ca97ae0
|
Change @since 3.0 to @since 3.0.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13827 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-26 19:13:36 +00:00 |
|
Andrew Nacin
|
94ec7ba0eb
|
Various bug fixes and improvements to menu management. props ptahdunbar, see #11817.
git-svn-id: https://develop.svn.wordpress.org/trunk@13802 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-22 19:56:16 +00:00 |
|
Andrew Nacin
|
747fd91e0a
|
Fix typo in inline docs for register_post_type(). fixes #12664 props sillybean.
git-svn-id: https://develop.svn.wordpress.org/trunk@13793 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-22 03:11:15 +00:00 |
|
Dion Hulse
|
6be1550e75
|
Add hierarchical support for custom post_types in Rewrite Rules & Querying. See #12643
git-svn-id: https://develop.svn.wordpress.org/trunk@13774 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-20 02:23:52 +00:00 |
|
Dion Hulse
|
513dc9d474
|
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: https://develop.svn.wordpress.org/trunk@13773 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-20 02:05:32 +00:00 |
|