Commit Graph

610 Commits

Author SHA1 Message Date
nacin
562c038e71 Remove sticky arg from post support. props michaelh, see #12702.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-02 23:16:04 +00:00
markjaquith
e98e5b094b Missed a s/default/standard/ in [16679]. props PeteMall. see #15582.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-02 04:36:00 +00:00
markjaquith
e7140d23cb The name of the standard post format is now Standard (might offer ability to change Default). fixes #15582
git-svn-id: http://svn.automattic.com/wordpress/trunk@16679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-02 03:19:14 +00:00
markjaquith
5b37b224f8 Throw WP_Error if post_type passed to register_post_type() is longer than schema allows. props phrostypoison. fixes #13709
git-svn-id: http://svn.automattic.com/wordpress/trunk@16670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-01 20:43:39 +00:00
scribu
57d6d72d2f Remove archaic reference return in get_children(). Props filosofo. Fixes #12372
git-svn-id: http://svn.automattic.com/wordpress/trunk@16667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-01 20:23:57 +00:00
ryan
1b72cb22a4 Prevent default post formats from entering the DB. see #15629 #15582
git-svn-id: http://svn.automattic.com/wordpress/trunk@16662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-01 20:03:39 +00:00
ryan
ce490df051 Export filtering. Props duck_. fixes #15197
git-svn-id: http://svn.automattic.com/wordpress/trunk@16652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-01 17:21:58 +00:00
scribu
2ec0d0509e Fix 'timeinfo' cache invalidation. Fixes #14922
git-svn-id: http://svn.automattic.com/wordpress/trunk@16537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-22 21:45:45 +00:00
nacin
69b3167678 Revert [15688], [15689], [15691]. Try again in 3.2. see #14966.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-22 17:17:26 +00:00
nacin
0d56b69953 Add the audio post format, the final format we plan to support. see #14746.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-22 17:05:14 +00:00
markjaquith
8cd425bf92 Use "default" as the key (not "0") for the default post format string in the translation array. props josephscott
git-svn-id: http://svn.automattic.com/wordpress/trunk@16477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-19 04:32:33 +00:00
nacin
b8ce0261df More param fixes, props duck_. see #14783.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-18 19:12:48 +00:00
ryan
847499e531 Pinking shears
git-svn-id: http://svn.automattic.com/wordpress/trunk@16438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-17 18:47:34 +00:00
markjaquith
6482610f9a esc_textarea() and application for obvious textarea escaping. props alexkingorg. fixes #15454
git-svn-id: http://svn.automattic.com/wordpress/trunk@16431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-17 17:12:01 +00:00
nacin
e5f944a913 Don't check post_type_supports in map_meta_cap. see #14122.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-17 06:21:34 +00:00
scribu
aa0e750a9f Update some @since tags. Props demetris. Fixes #15438
git-svn-id: http://svn.automattic.com/wordpress/trunk@16400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-16 13:16:13 +00:00
nacin
29203134cb Sanity cast. see #15192.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-15 18:06:57 +00:00
nacin
bd638424fc set_post_thumbnail(). fixes #15192.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-15 17:59:25 +00:00
nacin
c5aa88412a capability_type = page and no custom caps should also kick on map_meta_cap. see #14122.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-15 17:11:34 +00:00
scribu
03dd41a0d2 Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422
git-svn-id: http://svn.automattic.com/wordpress/trunk@16365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-14 15:50:02 +00:00
nacin
3ccfb56e3c Set map_meta_cap to true when capability_type = post and no custom caps are specified. see #14122.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-13 08:40:38 +00:00
nacin
96835b99d0 Use term cache in get_post_format() to save a boatload of queries. see #15396.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-12 09:49:34 +00:00
nacin
5f4a583fb1 Remove more create_function calls. props huichen, see #14424.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 22:50:36 +00:00
ryan
d26a1aa4ef Pass post ID to get_enclosed filter. Props willnorris. fixes #14018
git-svn-id: http://svn.automattic.com/wordpress/trunk@16275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 16:40:49 +00:00
nacin
795ab6d0f3 Cripple capability_type. Produced inconsistent, janky meta cap mapping; now only acts as a capability base. see #14122.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 14:50:14 +00:00
nacin
42fbeea783 Properly set up menu_name. We're handling it differently because it defaults off other labels. fixes #14832.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 00:42:43 +00:00
nacin
faa53fa488 Better better message.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-09 20:37:47 +00:00
westi
b14547df9b Better message.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-09 10:45:30 +00:00
westi
01c45f4bad Mark the calling of wp_get_recent_posts() with just a count as deprecated - only use in core was from XMLRPC.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-09 10:14:38 +00:00
nacin
91d3b6bea9 Introduce menu_name label for taxonomies and post types. Defaults to name. fixes #14832.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-09 02:09:00 +00:00
ryan
fccb87dbcb Eliminate some queries in get_page_by_path() by consulting cache. Props Denis-de-Bernardy, wojtek.szkutnik. fixes #11373
git-svn-id: http://svn.automattic.com/wordpress/trunk@16206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-05 15:26:15 +00:00
markjaquith
92159ea0c2 Allow get_post_format() to assume current post if none passed in. see #14746
git-svn-id: http://svn.automattic.com/wordpress/trunk@16202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-05 09:40:36 +00:00
markjaquith
a4ac7eca6f 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: http://svn.automattic.com/wordpress/trunk@16198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-05 03:04:13 +00:00
markjaquith
920bfad390 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: http://svn.automattic.com/wordpress/trunk@16196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-05 02:04:22 +00:00
markjaquith
b581a43b30 Translate and prettify post formats for display. Also, filterable by themes/plugins to add new ones. see #14746
git-svn-id: http://svn.automattic.com/wordpress/trunk@16191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-04 18:33:50 +00:00
scribu
c8bd2835a0 make not_found puctuation translatable. See #14579
git-svn-id: http://svn.automattic.com/wordpress/trunk@16121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-31 23:21:56 +00:00
nacin
a512dbefb2 Move code out of the conditional. props duck_, fixes #14415.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-30 18:21:23 +00:00
nacin
0552424317 Revert submit_button() for wp-includes, setup-config, install, login, signup. see [16061], see #15064, fixes #15247.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-29 00:31:27 +00:00
markjaquith
fc6e89da45 Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064
git-svn-id: http://svn.automattic.com/wordpress/trunk@16061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-28 21:56:43 +00:00
ryan
23948ab364 get_current_blog_id(). Props aaroncampbell. fixes #15233
git-svn-id: http://svn.automattic.com/wordpress/trunk@16050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-28 15:46:11 +00:00
ryan
197a16b836 Refactor wp_get_recent_posts to use get_posts(). Props blepoxp. fixes #14389
git-svn-id: http://svn.automattic.com/wordpress/trunk@15973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-26 13:50:38 +00:00
nacin
49672ae608 Allow page rewrites to be disabled. see #13818.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-26 07:12:06 +00:00
nacin
fe9c1f3770 Remove post_type params from is_archive(). use is_post_type_archive() for full context. see #13818.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-23 19:20:47 +00:00
nacin
86112c2f7e 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: http://svn.automattic.com/wordpress/trunk@15936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-23 18:29:22 +00:00
nacin
f244d99609 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: http://svn.automattic.com/wordpress/trunk@15934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-23 18:03:26 +00:00
nacin
53e77351a5 Revisions and attachments should also generate meta capabilities as part of their cap object. see #14122.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-22 00:25:14 +00:00
nacin
14ccdbec33 Pruning shears.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 19:55:28 +00:00
nacin
a724633db8 Only dumb down delete_others_posts if it deserves to exist. fixes a notice. see #14122.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 16:28:35 +00:00
nacin
02440f343c 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: http://svn.automattic.com/wordpress/trunk@15892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 15:05:10 +00:00
nacin
d27f272247 Rough first pass on map_meta_cap for custom post types. see #14122.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 14:40:04 +00:00
scribu
10532b9345 Don't stomp on posts_per_page in get_posts(). Props bobbyblade. Fixes #15150
git-svn-id: http://svn.automattic.com/wordpress/trunk@15852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-19 17:08:32 +00:00
nacin
c840f4676e 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: http://svn.automattic.com/wordpress/trunk@15844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-19 07:58:02 +00:00
nacin
5e1184aa57 Pinking shears.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-19 07:48:22 +00:00
nacin
76e493c281 Full @since's for 3.1.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-19 07:38:42 +00:00
nacin
7c39422697 Inline docs for _get_last_post_time helper.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-19 07:35:12 +00:00
scribu
efb8b6abcc Get rid of wp_cache_key(), as it's not really that useful. See [15838]
git-svn-id: http://svn.automattic.com/wordpress/trunk@15839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-18 21:54:39 +00:00
scribu
ea1470d6af Fix custom post type feed when no regular posts present. Props aaroncampbell for initial patch. Fixes #14922
git-svn-id: http://svn.automattic.com/wordpress/trunk@15838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-18 21:06:49 +00:00
dd32
7c046687ec Save _wp_old_slug for all published post_type's, brings old-slug redirection to Posts and CPT's. See #15140
git-svn-id: http://svn.automattic.com/wordpress/trunk@15831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-18 11:24:29 +00:00
nacin
7ef6752c9d Custom post type archives, second pass. see #13818.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-15 19:44:57 +00:00
ryan
0a01e66745 Prevent post and term hierarchy loops. Props mdawaffe. fixes #14662
git-svn-id: http://svn.automattic.com/wordpress/trunk@15806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-14 15:09:04 +00:00
nacin
142f9230f0 Use correct variable. see #13818.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-14 11:31:48 +00:00
nacin
eb8762d626 Custom post type archives. see #13818.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-14 10:39:47 +00:00
ryan
d082fbbb4f Allow deleting a format. see #14746
git-svn-id: http://svn.automattic.com/wordpress/trunk@15779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-12 19:43:54 +00:00
ryan
d753847050 has_post_format(). see #14746
git-svn-id: http://svn.automattic.com/wordpress/trunk@15778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-12 19:25:58 +00:00
ryan
0982c3c0f9 Post formats, take one. see #14746
git-svn-id: http://svn.automattic.com/wordpress/trunk@15777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-12 18:33:14 +00:00
ryan
76c787d4d2 Some more hierarchy loop detection.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-08 16:22:14 +00:00
nacin
5757866954 Sticky post support for post types, first pass. see #12702, props azizur.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-07 09:10:35 +00:00
dd32
6129438ba5 Cache terms under more scenario's in update_post_caches(). Fixes #15026
git-svn-id: http://svn.automattic.com/wordpress/trunk@15700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-04 08:56:04 +00:00
nacin
d596b05eac wp_quickpress_form, first pass. props jorbin. see #14966.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-03 07:41:48 +00:00
nacin
4e666d5d44 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: http://svn.automattic.com/wordpress/trunk@15688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-03 02:58:59 +00:00
ryan
6b351163ef Simplify sanitize_key() and use it in more places. see #14910
git-svn-id: http://svn.automattic.com/wordpress/trunk@15635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-20 15:28:58 +00:00
nacin
5a20c05d27 Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-07 11:21:11 +00:00
markjaquith
4d44c562e4 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: http://svn.automattic.com/wordpress/trunk@15589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-07 04:46:08 +00:00
scribu
f2c9a08521 Don't hardcode the pagination base. Fixes #12507
git-svn-id: http://svn.automattic.com/wordpress/trunk@15582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-07 01:18:42 +00:00
nacin
15bc341696 phpdoc, @since, whitespace. Also require an argument in wp_insert_post(). props duck_, see #14783.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-05 02:45:39 +00:00
nacin
650f97e684 Adjustments to [15549]. See #11624.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-04 15:51:04 +00:00
scribu
950901ca92 Don't use the global anymore. Fixes #11624
git-svn-id: http://svn.automattic.com/wordpress/trunk@15549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-08-28 11:57:28 +00:00
scribu
bc0c1bb3f0 Always set no_found_rows = true in get_posts(). Fixes #14528
git-svn-id: http://svn.automattic.com/wordpress/trunk@15548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-08-28 11:51:02 +00:00
markjaquith
e55cf70e35 Do not attempt to clear post cache for post ID 0... that will recursively destroy your server
git-svn-id: http://svn.automattic.com/wordpress/trunk@15503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-08-18 06:50:53 +00:00
nacin
34e43c7bce Doc update for [15402]. fixes #14301.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-21 00:50:01 +00:00
ryan
8513fbef01 Sanity check properties in wp_get_single_post(). Props filosofo. fixes #13904 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/trunk@15405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-13 21:30:09 +00:00
nacin
5fb64228d8 Have wp_set_post_terms return wp_set_object_terms. fixes #14301.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-13 21:01:48 +00:00
dd32
a14d289755 Alot more tabs. Props jacobsantos & Viper007bond. See #14147
git-svn-id: http://svn.automattic.com/wordpress/trunk@15355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-30 00:05:18 +00:00
ryan
088aff8699 Use get_post_types() to create list of hierarchical post types. fixes #14079 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/trunk@15348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-29 14:10:54 +00:00
ryan
d053a4f707 Avoid var name collision. see #13929
git-svn-id: http://svn.automattic.com/wordpress/trunk@15269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-16 21:46:42 +00:00
ryan
bfd7a6b75b Retern variable to avoid notice in PHP 4.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-16 19:11:44 +00:00
ryan
c614b6d0a2 Deprecate is_term, is_taxonomy, is_post_type for *_exists(). Props nacin. fixes #13747
git-svn-id: http://svn.automattic.com/wordpress/trunk@15220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-11 15:53:41 +00:00
nacin
af612805e8 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: http://svn.automattic.com/wordpress/trunk@15190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-10 16:07:33 +00:00
ryan
930711454f Fix global post stomping in get_post(). Turn get_page() into an alias of get_post(). Props westi. fixes #13753
git-svn-id: http://svn.automattic.com/wordpress/trunk@15188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-10 14:55:26 +00:00
ryan
a353af5a41 phpdoc fix. Props duck_
git-svn-id: http://svn.automattic.com/wordpress/trunk@15169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-08 13:24:20 +00:00
nacin
332c2773e0 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: http://svn.automattic.com/wordpress/trunk@15056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-29 16:46:46 +00:00
nacin
844226a1d8 Some inline doc updates for get_post_type_capabilities and get_post_type_labels. props MichaelH, fixes #13573.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-27 12:44:08 +00:00
ryan
1a552dd029 Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@14924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-26 02:42:15 +00:00
nacin
16f79e5377 Remove unused/duplicated/undocumented post type object label. see #13539
git-svn-id: http://svn.automattic.com/wordpress/trunk@14903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-25 19:25:27 +00:00
nacin
479d1d3617 Fix typo. props rovo89, fixes #13494.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-25 18:59:20 +00:00
ryan
432d56981e Don't set default category when saving an auto-draft. fixes #13531
git-svn-id: http://svn.automattic.com/wordpress/trunk@14883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-25 14:43:39 +00:00
nacin
10562923ae Remove now-unused post_type_object->labels>edit, which was 'Edit' (with context). see #12968, see #11274.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-24 21:19:29 +00:00
dd32
378f68a0a0 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: http://svn.automattic.com/wordpress/trunk@14814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-23 07:49:21 +00:00
ryan
f0076eed1c 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: http://svn.automattic.com/wordpress/trunk@14713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-17 16:39:36 +00:00
westi
01389755c7 Make get_attachment_metadata() loop safe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-16 21:00:00 +00:00