Commit Graph

601 Commits

Author SHA1 Message Date
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