Ryan Boren
|
5e76729992
|
One newline is enough.
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
|
2012-01-05 20:10:39 +00:00 |
Ryan Boren
|
0f2274ee75
|
Introduce sanitize_trackback_urls(). Don't ping bad urls. Don't ping bad urls or save them to the DB. Props xknown, SergeyBiryukov. fixes #17560
git-svn-id: https://develop.svn.wordpress.org/trunk@19675 602fd350-edb4-49c9-b593-d223f7449a82
|
2012-01-04 19:45:13 +00:00 |
Ryan Boren
|
676ba7043e
|
Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-12-13 23:45:31 +00:00 |
Dion Hulse
|
d70ddc49f9
|
Switch to sanitize_title_for_query() for Query sanitization (allows for pre-3.3 page slugs to be viewable), Don't update page slugs to new slug-types when the slug is not being changed, Don't issue a XHR if the page slug hasn't changed. Group effort props xknown, markjaquith, nacin. See #19292
git-svn-id: https://develop.svn.wordpress.org/trunk@19444 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-11-24 00:20:21 +00:00 |
Andrew Nacin
|
88b1b11435
|
Only enforce content/title/excerpt requirement in wp_insert_post() if the post type supports all three. Add a filter to allow this to be modified. fixes #18713.
git-svn-id: https://develop.svn.wordpress.org/trunk@19305 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-11-15 21:19:29 +00:00 |
Jon Cave
|
9c824b6687
|
Don't pass $post_type as get_page()'s $filter argument. Copy-and-paste error. Removal improves get_page_by_path() performance dramatically by stopping sanitize_post() being called. Fixes #19175.
git-svn-id: https://develop.svn.wordpress.org/trunk@19283 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-11-14 21:32:56 +00:00 |
Dion Hulse
|
522f890c32
|
Fix typo in [19231]. See #17579
git-svn-id: https://develop.svn.wordpress.org/trunk@19234 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-11-09 22:13:35 +00:00 |
Andrew Nacin
|
f3ba249747
|
Check post type and bail earlier in wp_get_attachment_url(). props mitchoyoshitaka, fixes #17579.
git-svn-id: https://develop.svn.wordpress.org/trunk@19231 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-11-09 19:20:33 +00:00 |
Andrew Nacin
|
057afbb44b
|
Don't set post_type QV in _post_format_request() when we're in the admin. props ethitter. fixes #18475.
git-svn-id: https://develop.svn.wordpress.org/trunk@19193 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-11-06 21:15:23 +00:00 |
Jon Cave
|
479b59bdb0
|
Return full WHERE clause from get_posts_by_author_sql() if the post type isn't registerd. Fixes SQL sytax on users list when 'post' is unregistered. Fixes #19116.
git-svn-id: https://develop.svn.wordpress.org/trunk@19117 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-11-02 17:06:34 +00:00 |
Ryan Boren
|
4399cf7610
|
Avoid E_STRICT notices. see #18975
git-svn-id: https://develop.svn.wordpress.org/trunk@19094 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-10-31 19:38:46 +00:00 |
Ryan Boren
|
a3f2a7ce55
|
Fix notices and logic errors in get_page_by_path(). Props duck_. see #17670
git-svn-id: https://develop.svn.wordpress.org/trunk@19075 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-10-28 19:32:19 +00:00 |
Ryan Boren
|
fd10e500e4
|
Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@19054 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-10-24 19:13:23 +00:00 |
Andrew Nacin
|
0853bf3d40
|
Correct docs for get_post_field(). props JustinSainton, fixes #19025.
git-svn-id: https://develop.svn.wordpress.org/trunk@19034 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-10-21 17:13:26 +00:00 |
Ryan Boren
|
df5f69fabc
|
In wp_trash_post(), rename the trash_post action to wp_trash_post to avoid collision with the wp_transition_post_status() trash_post state transition. Props SergeyBiryukov. fixes #15628
git-svn-id: https://develop.svn.wordpress.org/trunk@18974 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-10-14 18:39:31 +00:00 |
Ryan Boren
|
448700b2e7
|
Count only published posts when updating term counts. Fire term count updates on transition_post_status. Props joehoyle. see #17548
git-svn-id: https://develop.svn.wordpress.org/trunk@18932 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-10-10 20:52:44 +00:00 |
Ryan Boren
|
c3212d522e
|
Avoid refetching a post in get_post() when passed a post object that has already been raw sanitized. Clean up sanitize loop. Props scribu. fixes #18822
git-svn-id: https://develop.svn.wordpress.org/trunk@18846 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-30 19:06:18 +00:00 |
Ryan Boren
|
2678fd4f60
|
Restore sorting by post_name in get_pages(). Props SergeyBiryukov. fixes #18805
git-svn-id: https://develop.svn.wordpress.org/trunk@18845 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-30 18:12:14 +00:00 |
Peter Westwood
|
2421e0ecc6
|
Fire an action when a post type or taxonomy is registered so plugins can react. Fixes #18802 props simonwheatley.
git-svn-id: https://develop.svn.wordpress.org/trunk@18833 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-30 09:53:35 +00:00 |
Andrew Ozz
|
b969d2ea80
|
Clean up remnants from having negative Post_IDs, props markjaquith, fixes #18235
git-svn-id: https://develop.svn.wordpress.org/trunk@18823 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-29 21:47:52 +00:00 |
Andrew Nacin
|
cd0ad3ead4
|
Revert [18783], as it breaks term relationship counts for attachment taxonomies. see #17548.
git-svn-id: https://develop.svn.wordpress.org/trunk@18809 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-29 05:29:20 +00:00 |
Ryan Boren
|
f63662aa82
|
Count only published posts when updating term counts. Fire term count updates on transition_post_status. Props joehoyle. fixes #17548
git-svn-id: https://develop.svn.wordpress.org/trunk@18783 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-26 22:24:46 +00:00 |
Andrew Nacin
|
0f4a1e5e3c
|
delete_post_thumbnail(). props CoenJacobs, duck_. fixes #17895.
git-svn-id: https://develop.svn.wordpress.org/trunk@18767 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-24 19:31:38 +00:00 |
Jon Cave
|
b60222700e
|
Documentation fixes. See #18560.
- Add missing parameters
- Add missing @param data types
- s/format_where/where_format/
git-svn-id: https://develop.svn.wordpress.org/trunk@18753 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-22 12:02:31 +00:00 |
Ryan Boren
|
9651a4b5b0
|
Don't send page slugs through prepare() to avoid breaking octets in i18n page slugs. Props SergeyBiryukov. see #10249 #166687
git-svn-id: https://develop.svn.wordpress.org/trunk@18652 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-08 17:17:17 +00:00 |
Jon Cave
|
82c0f09c09
|
Fix typos in documentation (wp-includes/[i-z]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18639 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-05 19:08:15 +00:00 |
Mark Jaquith
|
8094c89b39
|
Cast to array in get_page_by_path() foreach
git-svn-id: https://develop.svn.wordpress.org/trunk@18627 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-08-31 06:46:16 +00:00 |
Dion Hulse
|
c370cd58f1
|
Display 'Edit Media' instead of 'Edit Post' for Attachments/Media in the admin bar. Props johnbillion. Fixes #18529
git-svn-id: https://develop.svn.wordpress.org/trunk@18613 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-08-28 03:39:06 +00:00 |
Peter Westwood
|
0c6d0349f4
|
Add a general filter to wp_unique_post_slug to allow for full customisation of the uniqueness functionality. Fixes #14111.
git-svn-id: https://develop.svn.wordpress.org/trunk@18546 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-08-13 21:00:24 +00:00 |
Mark Jaquith
|
48d294e7ea
|
Eliminate verbose rewrite rules for ambiguous rewrite structures, resulting in massive performance gains. props andy, otto42, duck_. Nice work everyone! see #16687
git-svn-id: https://develop.svn.wordpress.org/trunk@18541 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-08-12 01:55:08 +00:00 |
Ryan Boren
|
eda7d43e85
|
Deprecate get_userdatabylogin() and get_user_by_email(). Props scribu. fixes #18333
git-svn-id: https://develop.svn.wordpress.org/trunk@18513 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-08-05 16:57:31 +00:00 |
Ryan Boren
|
dbb0b7c8d6
|
Turn delete_meta() , get_post_meta_by_id(), update_meta(), delete_post_meta_by_key() into wrappers around the metadata API. Add back compat *_postmeta actions to metadata API. Props jgadbois. see #18196
git-svn-id: https://develop.svn.wordpress.org/trunk@18500 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-08-03 16:48:37 +00:00 |
Ryan Boren
|
431cc66a5f
|
phpdoc for all_items and menu_name. Props ocean90. fixes #18036
git-svn-id: https://develop.svn.wordpress.org/trunk@18472 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-07-26 21:31:36 +00:00 |
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 |