Commit Graph

239 Commits

Author SHA1 Message Date
Ryan Boren 9442333d05 Use prepare() in wp_insert_attachment(). Props dwc. fixes #7933
git-svn-id: https://develop.svn.wordpress.org/trunk@9259 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-20 21:55:37 +00:00
Mark Jaquith fd96378b7f Update update_post_meta() and delete_post_meta() to work with post revisions. Props misterbisson. fixes #7925
git-svn-id: https://develop.svn.wordpress.org/trunk@9252 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-20 05:47:13 +00:00
Ryan Boren a612119693 Recognize windows absolute paths. see #7904
git-svn-id: https://develop.svn.wordpress.org/trunk@9242 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-18 19:48:49 +00:00
Ryan Boren 9fdf3da4a4 Must pass var by ref. Props x11tech. fixes #7781
git-svn-id: https://develop.svn.wordpress.org/trunk@9239 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-17 22:55:30 +00:00
Peter Westwood 3ec2c1ea4e Notice fixes. See #7509 props DD32.
git-svn-id: https://develop.svn.wordpress.org/trunk@9177 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-14 21:08:28 +00:00
Ryan Boren 6217916022 Add parent arg to get_pages(). Props DD32. fixes #7247
git-svn-id: https://develop.svn.wordpress.org/trunk@9145 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-14 00:15:59 +00:00
Andrew Ozz e769b6fabd Fix stripslashes for post metadata, phpDoc updates for media.php, props jacobsantos, fixes #7871
git-svn-id: https://develop.svn.wordpress.org/trunk@9129 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-13 02:48:45 +00:00
Mark Jaquith 46740aae3a Prevent future posts from publishing early. fixes #7441
git-svn-id: https://develop.svn.wordpress.org/trunk@9123 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-11 05:46:20 +00:00
Andrew Ozz f121f6c983 Fix escaping of post meta, props DD32, fixes #7768
git-svn-id: https://develop.svn.wordpress.org/trunk@9116 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-10 09:40:30 +00:00
Ryan Boren ec205359bc Suspend cache invalidation while importing posts with WP importer
git-svn-id: https://develop.svn.wordpress.org/trunk@9106 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-09 00:50:52 +00:00
Ryan Boren b55a27e419 Don't flush rules for every post imported. see #7193
git-svn-id: https://develop.svn.wordpress.org/trunk@9101 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-08 22:16:35 +00:00
Ryan Boren d2fa84c740 Try to preserve post IDs during import
git-svn-id: https://develop.svn.wordpress.org/trunk@9100 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-08 21:42:52 +00:00
Andrew Ozz 603dbcdf4f Quick Edit for Tags, Categories and Link Categories, improvements to handling errors in quick and bulk edit.
git-svn-id: https://develop.svn.wordpress.org/trunk@9083 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-05 04:43:52 +00:00
Mark Jaquith f56dd1dff9 Do not allow contributors to set the post slug for pending review posts. fixes #7805
git-svn-id: https://develop.svn.wordpress.org/trunk@9055 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-02 04:10:54 +00:00
Ryan Boren f4eae0c3eb Don't try to assign non-ref return value by ref. Props Sam_a. fixes #7783
git-svn-id: https://develop.svn.wordpress.org/trunk@8966 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-24 05:28:05 +00:00
Ryan Boren 160f106ca8 Set post_date for drafts. see #5698
git-svn-id: https://develop.svn.wordpress.org/trunk@8920 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-17 20:19:29 +00:00
Andrew Ozz 313dc5022a Remove 'large' image size when deleting attachments, props ShaneF, fixes #7759
git-svn-id: https://develop.svn.wordpress.org/trunk@8918 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-17 19:19:15 +00:00
Peter Westwood 1c8fde4885 maybe_unserialize the array members not the array when multple post meta items are returned. Fixes #7623 for trunk props andy.
git-svn-id: https://develop.svn.wordpress.org/trunk@8824 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-05 22:04:04 +00:00
Ryan Boren 9045798e95 Make attachment file path relative to the upload dir. Don't use GUID to find attachement URL. Props DD32. see #7622
git-svn-id: https://develop.svn.wordpress.org/trunk@8796 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-02 22:55:39 +00:00
Ryan Boren cefe351dac Suppress query filters when called from get_posts(). see #7326 #7547
git-svn-id: https://develop.svn.wordpress.org/trunk@8766 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-28 22:30:27 +00:00
Ryan Boren bda582ab0d Notice fixes. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@8732 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-25 21:50:11 +00:00
Ryan Boren fc22c0304b Rename wp_insert_post filter to wp_insert_post_data to avoid collision. see #5196
git-svn-id: https://develop.svn.wordpress.org/trunk@8702 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-21 18:31:35 +00:00
Ryan Boren ce083ccfaf Typo fix from mdawaffe. fixes #7551 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8675 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-19 22:35:28 +00:00
Ryan Boren c26e7cff13 post.php phpdoc. Props santosj. fixes #7538
git-svn-id: https://develop.svn.wordpress.org/trunk@8669 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-19 16:38:06 +00:00
Ryan Boren b8c683da8d Notice fix. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@8647 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-14 20:36:09 +00:00
Ryan Boren 197fc1d118 Notice fixes. Props DD32. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@8646 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-14 17:00:37 +00:00
Ryan Boren 2b8caf9a1f Add sticky_class() template tag. see #7457
git-svn-id: https://develop.svn.wordpress.org/trunk@8637 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-13 18:21:52 +00:00
Ryan Boren c53da5a523 Make sure timestamps are not 0000 when publishing. Props techcookies. fixes #6527
git-svn-id: https://develop.svn.wordpress.org/trunk@8636 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-13 16:01:01 +00:00
Peter Westwood a8a591310f Give plugins the ability to do extra processing on a post before it is inserted/updated. See #5196.
git-svn-id: https://develop.svn.wordpress.org/trunk@8635 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-13 05:53:48 +00:00
Ryan Boren 2272a1a950 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Mark Jaquith 3cab99fbd2 Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784
git-svn-id: https://develop.svn.wordpress.org/trunk@8572 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-06 20:31:54 +00:00
Ryan Boren 742aa7d933 Sticky Posts, firct cut. see #7457
git-svn-id: https://develop.svn.wordpress.org/trunk@8546 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-05 05:48:21 +00:00
Andrew Ozz 0b3c278d63 Make sure meta is added to the post, not a revision.
git-svn-id: https://develop.svn.wordpress.org/trunk@8513 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-01 03:50:20 +00:00
Ryan Boren 6c433a5dce Store current user rather than original post author when saving revisions. Props mdawaffe. fixes #7317 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8480 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-28 23:58:24 +00:00
Ryan Boren 8aaca8d367 No need to order results. Props dbuser123. see #7415
git-svn-id: https://develop.svn.wordpress.org/trunk@8469 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-27 16:58:35 +00:00
Ryan Boren ecf41b5b88 Make sure attachment meta data is an array. Props nbachiyski. fixes #7252
git-svn-id: https://develop.svn.wordpress.org/trunk@8261 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-06 16:40:15 +00:00
Ryan Boren 80c836b58a phpdoc updates for post.php from jacobsantos. fixes #3982
git-svn-id: https://develop.svn.wordpress.org/trunk@8203 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-27 15:32:57 +00:00
Ryan Boren 64b5e801d0 Don't get post ancestors if post not found. Props Sam_a. fixes #6953
git-svn-id: https://develop.svn.wordpress.org/trunk@8173 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-23 21:50:19 +00:00
Ryan Boren 8ef3dea136 Don't decode slug in get_page_uri(). Props nbachiyski. fixes #6723
git-svn-id: https://develop.svn.wordpress.org/trunk@8096 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-16 18:40:47 +00:00
Peter Westwood 96511b2ca2 PHPdoc updates for wp-includes/post.php. See #7038 props jacobsantos.
git-svn-id: https://develop.svn.wordpress.org/trunk@8081 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-14 16:31:08 +00:00
Ryan Boren 5d786d179c More use of site_url(), admin_url(), and site_url(). Force login and admin links to be https if FORCE_SSL_LOGIN. see #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@8058 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-06 07:39:11 +00:00
Ryan Boren e1faf662e8 get_post_ancestors() fixes. fixes #7029 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8019 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-30 20:31:45 +00:00
Ryan Boren 163aa65807 Post revisions API cleanup from mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@8011 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-29 22:21:36 +00:00
Ryan Boren 1d2d2c3835 Fix serialization when adding meta via update_post_meta(). Props azaozz. fixes #7018
git-svn-id: https://develop.svn.wordpress.org/trunk@7995 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-27 11:33:11 +00:00
Ryan Boren a8a396d656 Allow defining the number of revisions to save. Props mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7987 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-23 15:27:56 +00:00
Ryan Boren 66b9c9ea6d Remove unnecessary checks for the existence of post meta data. Props filosofo. fixes #7018
git-svn-id: https://develop.svn.wordpress.org/trunk@7985 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-22 16:33:06 +00:00
Ryan Boren 36f755bf12 Add non-existent values instead of returning g false in update_post_meta(). Props filosofo. fixes #7018
git-svn-id: https://develop.svn.wordpress.org/trunk@7978 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-22 00:01:00 +00:00
Ryan Boren ad0f22e9d4 default is a valid page template. see #6098
git-svn-id: https://develop.svn.wordpress.org/trunk@7925 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-13 21:03:10 +00:00
Ryan Boren 1c4f5de9a1 Revisioning for pages from mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7913 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-09 15:59:17 +00:00
Ryan Boren a1be16cf86 Move autosave to post revisions. Props mdawaffe. see #6775
git-svn-id: https://develop.svn.wordpress.org/trunk@7907 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-08 17:25:07 +00:00