Commit Graph

120 Commits

Author SHA1 Message Date
Ryan Boren
ef222cf77c Flush all_page_ids when a page is addded or deleted.
git-svn-id: https://develop.svn.wordpress.org/trunk@3496 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-29 19:58:48 +00:00
Ryan Boren
f08416af58 More upload path tweaks. fixes #2271
git-svn-id: https://develop.svn.wordpress.org/trunk@3437 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-14 22:09:51 +00:00
Ryan Boren
f8f6b07e9c Force absolute lookup. Props tanuki. fixes #2237
git-svn-id: https://develop.svn.wordpress.org/trunk@3433 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-13 22:40:22 +00:00
Ryan Boren
ad6ed9c744 Add upload folder options. Props David House. fixes #2206
git-svn-id: https://develop.svn.wordpress.org/trunk@3413 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-09 22:24:57 +00:00
Ryan Boren
78d90dda67 Remove printr calls.
git-svn-id: https://develop.svn.wordpress.org/trunk@3403 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-05 05:27:31 +00:00
Ryan Boren
fce486c48c Create dir hierarchy for files passed to wp_upload_bits().
git-svn-id: https://develop.svn.wordpress.org/trunk@3390 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-02 04:59:39 +00:00
Ryan Boren
e6e5cd892f Upload dir cleanups. Honor old fileupload_path settings if present.
git-svn-id: https://develop.svn.wordpress.org/trunk@3389 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-02 04:33:27 +00:00
Ryan Boren
f34cbd8d67 Preserve suid and sgid bits when creating new directories. fixes #2190
git-svn-id: https://develop.svn.wordpress.org/trunk@3388 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-02 02:50:59 +00:00
Ryan Boren
946cae67f4 Default expiration is too long. Change it to 15 minutes.
git-svn-id: https://develop.svn.wordpress.org/trunk@3386 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-31 22:34:58 +00:00
Ryan Boren
db2bd867db Trackback tweaks. Props http://blog.serv.idv.tw/2005/12/29/380/. fixes #2170
git-svn-id: https://develop.svn.wordpress.org/trunk@3384 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-31 21:24:56 +00:00
Ryan Boren
dbde443d4a More wp_upload_bits() fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@3378 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-29 02:07:10 +00:00
Ryan Boren
164371f70f Fix extension handling.
git-svn-id: https://develop.svn.wordpress.org/trunk@3377 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-29 01:46:32 +00:00
Ryan Boren
a3cb29233b Typo in wp_upload_bits()
git-svn-id: https://develop.svn.wordpress.org/trunk@3376 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-29 01:40:42 +00:00
Ryan Boren
5be951ca28 Cache rewrite rules. Add WP_Rewrite::flush_rules(). fixes #2155
git-svn-id: https://develop.svn.wordpress.org/trunk@3373 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-28 07:05:05 +00:00
Ryan Boren
eddf881bb5 Create explicit page attachment rewrite rules rather than matching the attachment name against a regexp.
git-svn-id: https://develop.svn.wordpress.org/trunk@3371 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-28 04:27:21 +00:00
Ryan Boren
9e591c4154 i18n trackback fix. Props thinkini. fixes #2163
git-svn-id: https://develop.svn.wordpress.org/trunk@3368 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-28 00:55:55 +00:00
Ryan Boren
01d852fe7f Silence mkdir().
git-svn-id: https://develop.svn.wordpress.org/trunk@3358 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-25 21:16:27 +00:00
Ryan Boren
bae7d044d2 Update post_modified when the post is changed. fixes #1837
git-svn-id: https://develop.svn.wordpress.org/trunk@3357 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-24 20:04:59 +00:00
Ryan Boren
250ecaaf4f Fix page permalink 404 when pages are reordered. Props David House. fixes #2071
git-svn-id: https://develop.svn.wordpress.org/trunk@3356 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-24 16:26:55 +00:00
Ryan Boren
ddbd1e3ac3 MAke sure post_parent is valid.
git-svn-id: https://develop.svn.wordpress.org/trunk@3354 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-24 05:34:50 +00:00
Ryan Boren
1d06871ca5 Make wp_insert_attachment() MySQL 5 strict mode compliant. fixes #2115
git-svn-id: https://develop.svn.wordpress.org/trunk@3353 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-24 05:32:49 +00:00
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