Commit Graph

99 Commits

Author SHA1 Message Date
Ryan Boren
b239244636 New asyncronous ping method. fixes #2048
git-svn-id: https://develop.svn.wordpress.org/trunk@3317 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-16 03:04:33 +00:00
Ryan Boren
7321cfa5a1 When changing a post's categories, redo category counts for both old and new cats. Props ringmaster. fixes #2085
git-svn-id: https://develop.svn.wordpress.org/trunk@3311 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-15 20:31:29 +00:00
Ryan Boren
f160329f66 Attachment enhancements from skeltoac. fixes #2074
git-svn-id: https://develop.svn.wordpress.org/trunk@3303 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-13 19:19:56 +00:00
Ryan Boren
b74a303ec5 Resurrect save_post action for back compat. fixes #2063
git-svn-id: https://develop.svn.wordpress.org/trunk@3291 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-12 00:30:14 +00:00
Ryan Boren
2ec76f2801 Make sure fields without defaults are specified when inserting. fixes #1953
git-svn-id: https://develop.svn.wordpress.org/trunk@3285 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-10 23:22:47 +00:00
Ryan Boren
1a2ed535e9 Make page slugs unique. Props skeltoac. fixes #2034
git-svn-id: https://develop.svn.wordpress.org/trunk@3277 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-07 19:02:05 +00:00
Ryan Boren
163b423722 Relocate wp_upload_dir(). fixes #2019
git-svn-id: https://develop.svn.wordpress.org/trunk@3267 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-05 03:17:03 +00:00
Ryan Boren
96a472460d Add wp_upload_bits(). Attempt to fix mw_newMediaObject().
git-svn-id: https://develop.svn.wordpress.org/trunk@3255 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-01 22:51:40 +00:00
Ryan Boren
81fed95acf Add get_attached_file().
git-svn-id: https://develop.svn.wordpress.org/trunk@3203 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-23 10:00:07 +00:00
Ryan Boren
2bab8b487e Allow wp_insert/update_post to handle classes in addition to associative arrays. This should avoid the 'Cannot use object of type stdClass as array' warnings.
git-svn-id: https://develop.svn.wordpress.org/trunk@3200 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-23 01:35:08 +00:00
Ryan Boren
43002e6cc1 Update meta before updating the post so that page_template is not stomped. fixes #1933
git-svn-id: https://develop.svn.wordpress.org/trunk@3190 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-22 00:36:36 +00:00
Ryan Boren
d9d9fedb7a get_post_mime_type() from skeltoac.
git-svn-id: https://develop.svn.wordpress.org/trunk@3169 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-19 20:08:21 +00:00
Ryan Boren
77fe382c33 Move category post count updater into wp_set_post_cats().
git-svn-id: https://develop.svn.wordpress.org/trunk@3094 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-15 23:47:16 +00:00
Ryan Boren
1a012b8b49 Renaming. object and subpost are now attachment. post_type is post_mime_type.
git-svn-id: https://develop.svn.wordpress.org/trunk@3092 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-15 22:55:24 +00:00
Ryan Boren
06d61e1f7a Update category counts. Props donncha. fixes #1886
git-svn-id: https://develop.svn.wordpress.org/trunk@3091 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-15 16:31:24 +00:00
Ryan Boren
1a7354a608 Fix [3074] commit so that draft->publish transitions up date the timestamp.
git-svn-id: https://develop.svn.wordpress.org/trunk@3090 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-15 00:00:26 +00:00
Matt Mullenweg
a313d7adfb Fixes #1837 timestamp funkiness
git-svn-id: https://develop.svn.wordpress.org/trunk@3074 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-14 09:56:41 +00:00
Ryan Boren
c72a1f461e Object caching, round one.
git-svn-id: https://develop.svn.wordpress.org/trunk@3011 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-07 21:56:03 +00:00
Ryan Boren
0c2daa617d Protection against multiple trackbacks in one bunch from markjaquith. fixes #1817
git-svn-id: https://develop.svn.wordpress.org/trunk@2996 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-06 04:02:12 +00:00
Ryan Boren
de8d78270a If post_date_gmt is not supplied, derive it from post_date instead of current time.
git-svn-id: https://develop.svn.wordpress.org/trunk@2969 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-28 04:34:49 +00:00
Ryan Boren
df1f4e7389 Don't process enclosures when importing. Props: skeltoac. fixes #1771
git-svn-id: https://develop.svn.wordpress.org/trunk@2953 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-17 23:45:50 +00:00
Ryan Boren
ae85f7064b wp_attach_object threading fix ups. fixes #1760 #1758
git-svn-id: https://develop.svn.wordpress.org/trunk@2949 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-14 18:06:23 +00:00
Ryan Boren
561c9d7ff3 Remove thread unsafe Auto_increment tricks. fixes #1753
git-svn-id: https://develop.svn.wordpress.org/trunk@2948 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-13 19:06:31 +00:00
Ryan Boren
097080a29e wp_delete_object() and image popup from skeltoac. fixes #1731
git-svn-id: https://develop.svn.wordpress.org/trunk@2929 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-04 17:38:04 +00:00
Ryan Boren
1f4f968040 Image uploading widget from skeltoac. fixes #1710
git-svn-id: https://develop.svn.wordpress.org/trunk@2921 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-26 23:55:36 +00:00
Ryan Boren
9441bb9093 wp_insert_comment(), wp_update_comment(), wp_allow_comment(), and wp_filter_comment() from skeltoac. fixes #1683
git-svn-id: https://develop.svn.wordpress.org/trunk@2894 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-20 03:17:43 +00:00
Matt Mullenweg
6d4f063c69 Fixes #1681 and the annoying empty meta problem.
git-svn-id: https://develop.svn.wordpress.org/trunk@2887 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-16 17:27:09 +00:00
Ryan Boren
c8cb9b4236 wp_insert_post() return value fix from skeltoac. fixes #1678
git-svn-id: https://develop.svn.wordpress.org/trunk@2878 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-15 23:34:54 +00:00
Ryan Boren
3c12867919 Add clean_post_cache() and clean_page_cache(). Reset GUID when transitioning from draft to publish. fixes #1257
git-svn-id: https://develop.svn.wordpress.org/trunk@2873 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-14 00:34:04 +00:00
Ryan Boren
97a7959a71 Don't ping when importing.
git-svn-id: https://develop.svn.wordpress.org/trunk@2865 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-10 22:44:14 +00:00
Ryan Boren
5932ee4425 Move pings out-of-band to speed up posting. Props to Owen. fixes #1644
git-svn-id: https://develop.svn.wordpress.org/trunk@2833 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-02 16:56:28 +00:00
Matt Mullenweg
3f1fe52b6e Make posting faster. Fixes #1580 for 1.6
git-svn-id: https://develop.svn.wordpress.org/trunk@2828 602fd350-edb4-49c9-b593-d223f7449a82
2005-08-30 23:19:32 +00:00
Matt Mullenweg
593b6b49ab You should be able to change the defaults
git-svn-id: https://develop.svn.wordpress.org/trunk@2753 602fd350-edb4-49c9-b593-d223f7449a82
2005-08-05 20:44:18 +00:00
Matt Mullenweg
b480c75559 Adding some hooks, fixes #1489
git-svn-id: https://develop.svn.wordpress.org/trunk@2743 602fd350-edb4-49c9-b593-d223f7449a82
2005-08-03 00:40:42 +00:00
Ryan Boren
235345a916 Move user_can_*() functions to capabilities.php.
git-svn-id: https://develop.svn.wordpress.org/trunk@2713 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-15 01:27:01 +00:00
Ryan Boren
7e94ba45c5 Cap migration.
git-svn-id: https://develop.svn.wordpress.org/trunk@2712 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-15 01:24:08 +00:00
Ryan Boren
506091a710 XMLRPC category fixes
git-svn-id: https://develop.svn.wordpress.org/trunk@2693 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-03 18:33:03 +00:00
Ryan Boren
15a525e6dc Make sure cat list is an array. Props: Peter Westwood
git-svn-id: https://develop.svn.wordpress.org/trunk@2683 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-02 17:28:06 +00:00
Ryan Boren
706c897f32 Comment updating cleanup. Add get_comment(), edit_comment(), get_comment_to_edit(), and wp_update_comment().
git-svn-id: https://develop.svn.wordpress.org/trunk@2662 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-26 19:55:12 +00:00
Ryan Boren
2b50612117 Add get_post_to_edit() and get_default_post_to_edit(). More post.php cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@2651 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-19 02:51:48 +00:00
Ryan Boren
67846fb123 Consolidate post update code.
git-svn-id: https://develop.svn.wordpress.org/trunk@2650 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-19 01:33:38 +00:00
Ryan Boren
f2d1f8460f Use default_category option if not cat specified.
git-svn-id: https://develop.svn.wordpress.org/trunk@2648 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-18 19:17:55 +00:00
Ryan Boren
15dc0c3307 Consolidate post creation code into wp_insert_post().
git-svn-id: https://develop.svn.wordpress.org/trunk@2647 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-18 19:08:38 +00:00
Matt Mullenweg
7f7c72cbe2 More user
git-svn-id: https://develop.svn.wordpress.org/trunk@2633 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-12 23:22:06 +00:00
Ryan Boren
0edec9ae9e Don't attempt to trackback an empty string. Fix file path in wp_get_http_headers(). This avoids 'File does not exist' server messages when processing enclosures.
git-svn-id: https://develop.svn.wordpress.org/trunk@2612 602fd350-edb4-49c9-b593-d223f7449a82
2005-05-18 03:17:55 +00:00
Ryan Boren
e932142953 Fix comment auto-approval for authors/admins. http://mosquito.wordpress.org/view.php?id=1291 Props: kim, coffee2code
git-svn-id: https://develop.svn.wordpress.org/trunk@2576 602fd350-edb4-49c9-b593-d223f7449a82
2005-04-27 23:55:06 +00:00
Matt Mullenweg
acf9076fc0 Dupe comment check - http://mosquito.wordpress.org/view.php?id=1265
git-svn-id: https://develop.svn.wordpress.org/trunk@2561 602fd350-edb4-49c9-b593-d223f7449a82
2005-04-20 21:56:28 +00:00
Matt Mullenweg
2e3c23045c Line ending fixes and commenting cleanups from Scott Reilly
git-svn-id: https://develop.svn.wordpress.org/trunk@2556 602fd350-edb4-49c9-b593-d223f7449a82
2005-04-20 03:37:23 +00:00
Ryan Boren
a0d5ea6ba2 Remove old preview stuff. Allow draft posts to be displayed if the logged in user has edit permissions on the draft. Don't use cruft-free links for drafts since they might not have a slug. http://mosquito.wordpress.org/view.php?id=1220
git-svn-id: https://develop.svn.wordpress.org/trunk@2523 602fd350-edb4-49c9-b593-d223f7449a82
2005-04-09 17:12:36 +00:00
Ryan Boren
d381ae36da Level 1 users cannot edit or delete published posts. http://mosquito.wordpress.org/view.php?id=1004
git-svn-id: https://develop.svn.wordpress.org/trunk@2453 602fd350-edb4-49c9-b593-d223f7449a82
2005-03-17 03:39:02 +00:00