Ryan Boren
b6a0df1678
post_parent dropdown fixes. get_pages() cache fix to eliminate duplicate queries.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10070 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-05 19:19:24 +00:00
Ryan Boren
03f559cd4f
Don't set post_parent default. Props hailin. fixes #8348
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9906 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-26 18:56:46 +00:00
Peter Westwood
9b46a07ac6
Ensure that thumbnails are removed when the media file is deleted. Fixes #8309 props jacobsantos.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9846 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-22 23:01:28 +00:00
Ryan Boren
40d7f7bd18
Remove trim. fixes #8252
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9803 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-20 03:06:21 +00:00
Andrew Ozz
8a364ef5ef
Fix [9714], it breaks get_page()
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9731 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-17 15:47:41 +00:00
Ryan Boren
fab4e5a68e
Unused var fixes. Props DD32. see #8220
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9716 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 18:10:35 +00:00
Ryan Boren
3a7e85c5ec
Notice fixes. Props DD32. see #7509
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9714 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 17:56:44 +00:00
Ryan Boren
2dc15c5a81
Notice fixes from DD32. see #7509
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9699 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-14 23:01:16 +00:00
Ryan Boren
83e002f20b
Notice fixes from DD32. see #7509
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9596 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-10 18:54:18 +00:00
Andrew Ozz
7d45802347
Preview fixes: different method of showing previews for published posts, now uses the proper templates. Fixes #8052
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9509 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-04 13:00:12 +00:00
Andrew Ozz
acf73adf61
Do cap check when shoving a preview
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9452 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-31 23:14:37 +00:00
Andrew Ozz
78b8de31b6
Preview for both drafts and published posts/pages
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9451 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-31 22:47:07 +00:00
Ryan Boren
f3ea00820e
Preserve attachment IDs during import. Props mtdewvirus. fixes #7972
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9357 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-26 17:05:56 +00:00
Peter Westwood
11ef4262c2
Better variable naming. See #7358 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9349 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-25 22:56:02 +00:00
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
Ryan Boren
2af2724cef
wp_insert_post() -- Validate page template, check return of insert and update queries, add option to return WP_Error. fixes #6227 see #6098
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7900 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-05 23:19:27 +00:00
Ryan Boren
0a7374085b
Use array calling style. Props DD32. see #6647
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7894 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-05 16:03:27 +00:00
Ryan Boren
468ac2a54e
get_posts fixes from DD32 and filosofo. see #6772
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7892 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-05 15:46:32 +00:00
Ryan Boren
2341bcc764
Use WP_query in get_posts(). Props filosofo. fixes #6772
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7880 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-03 20:08:32 +00:00
Ryan Boren
81c20ec884
Fix post name check prepare. Props westi. see #6894
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7876 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-02 17:28:19 +00:00
Mark Jaquith
b7699db39e
Fix typo in wp_save_revision(). props Andy. see #6775
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7817 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-25 04:41:41 +00:00
Ryan Boren
06200c33f4
Don't include perm as part of cache key if perm is not used in the query.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7752 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-20 21:26:10 +00:00
Ryan Boren
c72fd439c6
Post revisions from mdawaffe. see #6775
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7747 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-18 23:38:21 +00:00
Ryan Boren
bfcd9e8fc4
Fix meta_key and meta_value queries in get_pages(). Props filosofo. fixes #6773 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7746 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-18 22:29:43 +00:00
Ryan Boren
a40491ce38
Move cache cleaning of children to clean_post_cache(). see #6702
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7743 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-18 20:23:50 +00:00
Ryan Boren
b5a1a0e113
array_shift() error fixes from DD32. fixes #6499 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7713 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-16 23:09:51 +00:00
Ryan Boren
860c60d05b
Add post ancestors to the cache for the post object. see #6702 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7694 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-16 17:23:17 +00:00
Ryan Boren
7e5969a1f9
Make get_posts args optional. Props karlkatzke and Otto42. fixes #6608 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7647 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 16:23:29 +00:00
Ryan Boren
fdc05b24f6
Prepare DB queries in more places. Props filosofo. see #6644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7645 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 16:13:25 +00:00
Ryan Boren
a9d89696f3
Use wp_count_posts() to determine availabel statuses for get_available_post_statuses(). fixes #6654 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7638 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-09 20:09:45 +00:00
Matt Mullenweg
e1ae860b7d
The child should not have to pay for the sins of his father. Caching for children needs to be cleared when parent is edited; if we check for empty and not isset, it never gets better for empty results.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7601 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-05 05:54:08 +00:00
Mark Jaquith
ba4dab3cd6
Fix gallery shortcode orderby param for all SQL setups. Sanitize orderby. fixes #6476 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7592 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-03 03:05:49 +00:00
Ryan Boren
f6716ad1e3
Add default for post_excerpt. see #6355
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7482 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-23 00:58:47 +00:00
Ryan Boren
00c6484a3b
Remove intermediate images when deleting an attachment. Props tellyworth. fixes #6142
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7271 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-12 23:15:31 +00:00
Ryan Boren
7d6440bba2
Fix insert, gallery, sizing, type queries, errors, thumbs, type fallback. Props andy. see #5911
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7172 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-06 19:48:54 +00:00
Matt Mullenweg
d1a9adb980
Don't return early before filtering.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7161 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-05 18:49:56 +00:00
Matt Mullenweg
88bb527a19
Creating intermediate sizes, better thumbnails, and other image improvements. Hat tip: tellyworth.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7135 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-03 04:17:37 +00:00
Ryan Boren
6d7441c26e
Remove trailing whites.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7130 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-02 20:17:30 +00:00
Ryan Boren
71f274c599
Add option to check caps when querying a particular post status. fixes #6052
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7109 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-29 21:49:49 +00:00
Ryan Boren
a02dc6a240
Media Library updates from andy. see #5911
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7100 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-29 06:54:15 +00:00
Ryan Boren
0808c1b9a1
Introduce get_post_ancestors(). Add current_page_ancestor class to ancestors of the current page. Props AaronCampbell. fixes #5662
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7074 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-27 23:28:18 +00:00
Ryan Boren
82905a1f33
fix overuse of default mime icon and re-shuffle mp4/m4a file type matches. Props andy. see #5911
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7045 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-26 19:57:00 +00:00
Ryan Boren
09ed1e62ae
Add some defaults for wp_insert_attachment. fixes #6006
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7042 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-26 18:51:45 +00:00
Ryan Boren
7825a986f9
update mime-to-icon matching and get filename from function instead of guid. Props andy. see #5911
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7036 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-26 08:54:11 +00:00
Ryan Boren
fef755b796
Make sure post has future status before publishing from cron. Props hailin. fixes #5801
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6985 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-22 19:59:12 +00:00
Ryan Boren
7ed364b2ce
Notice fixes from nbachiyski. fixes #5961
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6983 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-22 17:43:56 +00:00
Ryan Boren
579698f0b1
Media library work from andy. see #5911
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6974 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-22 05:53:47 +00:00
Ryan Boren
a7e9b93bab
Add a default for post_conten_filtered
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6951 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-21 00:52:51 +00:00
Ryan Boren
fcdca0ec36
pre_post_update action from tellyworth. fixes #5815
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6938 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-20 16:46:44 +00:00
Ryan Boren
5f85c2dc0c
Media Library design updates from Andy. see #5911
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6910 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-19 06:13:20 +00:00
Ryan Boren
0f8e3b6164
Reduce queries by wp_count_posts(). Props josephscott. fixes #5820
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6808 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-13 09:30:26 +00:00
Ryan Boren
0e810ef327
Use array keys instead of hard coded list when traversing post fields to sanitize. Props andy. fixes #5836
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6803 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-13 06:49:23 +00:00
Ryan Boren
d99739dac9
s/2.4/2.5/. Props ffemtcj. fixes #5810
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6777 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-10 07:59:34 +00:00
Ryan Boren
e96e46aec6
Add wp_count_posts().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6730 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 19:08:14 +00:00
Ryan Boren
3a18b96c9b
Trailing whitespace cleanup
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6726 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 06:47:27 +00:00
Ryan Boren
9125d102d4
Typo fix
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6657 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-25 03:19:34 +00:00
Ryan Boren
3b55c522d6
Clear post_meta cache upon change. Props nbachiyski. fixes #5718
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6654 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-25 01:55:21 +00:00
Ryan Boren
4aa89972c8
Don't forget to pass the category
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6646 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-23 23:38:30 +00:00
Peter Westwood
5ddb77af06
Fix the updated times when publishing/editing with APP. See #5680 props rubys.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6645 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-23 20:25:08 +00:00
Ryan Boren
9ecb360c81
Refactor login. see #5405
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6643 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-22 19:35:19 +00:00
Peter Westwood
af929c5525
Add xmlrpc methods to discover the valid post and page statuses. See #5569 props josephscott.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6594 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-10 21:46:25 +00:00
Peter Westwood
484a39a5b0
Ensure that we preserve GUIDs when importing from RSS. Fixes #5589 props peterjanes.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6593 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-10 21:27:08 +00:00
Peter Westwood
90e193bdab
Notice fixing for wp-includes. See #5607 props filosofo.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6592 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-10 20:51:07 +00:00
Ryan Boren
791a7d7191
Unused var cleanup. Props DD32. see #5418
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6551 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-04 19:36:34 +00:00
Ryan Boren
72a79d489d
Port autosave to jquery. Props rmccue. see #3824
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6546 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-04 08:46:33 +00:00
Ryan Boren
5a9f249b34
set_post_type from filosofo. fixes #4844
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6537 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-02 20:06:00 +00:00
Ryan Boren
c0e11298c2
\s is not a valid escape sequence. Props xknown. fixes #5539
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6501 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-27 08:09:31 +00:00
Ryan Boren
d061a16188
Don't do hierarchical if includes specified. Props Kafkaesqui. fixes #5373 for 2.4
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6491 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 21:24:03 +00:00
Ryan Boren
6da1524825
Fetch only post category terms in get_posts(). Props MichaelH. fixes #5317
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6490 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 21:21:16 +00:00
Ryan Boren
94618e5837
Update term counts when future posts are published. fixes #4913 #5488
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6425 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 00:48:49 +00:00
Peter Westwood
5c75f4cc75
Don't create empty tags. Fixes #5412 props ionfish
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6407 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 17:34:15 +00:00
Ryan Boren
390e3d1c20
clean page cache when reparenting pages after deletion. Props hailin. fixes #5457
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6382 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-14 20:56:55 +00:00
Ryan Boren
fc087d1fb6
post phpdoc from m0n5t3r and darkdragon. see #3982
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6379 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-14 00:28:34 +00:00
Ryan Boren
e10c490a4f
Query page attachments from page requests so that they can both use the same set of rewrite rules. see #3614
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6377 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-12 11:45:55 +00:00
Ryan Boren
3a8b2fcca3
Remove unused vars. Props DD32. see #5418
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6364 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 19:49:33 +00:00
Ryan Boren
364a7f55c4
Don't save page and attachemtn uris to page_uris and page_attachment_uris. This is not needed. Add an option to use wildcard page rewrite rules instead of per-page rules. see #3614
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6351 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-04 00:19:10 +00:00
Ryan Boren
71c8eab2dd
Update page on front settings when deleting the page on front. Props hailin. fixes #5361
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6337 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-16 17:39:15 +00:00
Ryan Boren
3330c693e4
Skip sanitization altogether for raw context. Props Quandary. fixes #5325
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6321 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-07 06:20:08 +00:00
Ryan Boren
ae66f7f3c8
Fix comment typo
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6306 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-02 00:58:15 +00:00
Ryan Boren
5308684211
Make sure ID is set for later update() calls.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6305 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-02 00:47:04 +00:00
Ryan Boren
60883171f5
Typo fix from DD32. Fixes uploads. fixes #5302
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6304 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-01 16:20:16 +00:00
Ryan Boren
dbad2a3943
Post timezone to lastpost filters. Props mdawaffe. fixes #5292
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6301 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-31 16:59:05 +00:00
Ryan Boren
dd19fe2a27
wp_get_archives caching. fixes #5275
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6296 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-30 06:03:11 +00:00
Ryan Boren
9c62c77bd7
Move all page and post caches to 'posts' cache group.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6252 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-15 20:11:30 +00:00
Ryan Boren
c061823bb4
Add some clean cache hooks
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6248 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-14 04:55:33 +00:00
Ryan Boren
dd54d8ffe6
Allow single post ID and comma delimited list of post IDs to be passed to update_postmeta_cache(). Fix default cache to allow storage of empty array. see #5194
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6247 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-14 01:08:07 +00:00
Mark Jaquith
23666ca104
Some foreach array casting
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6242 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 05:33:39 +00:00
Mark Jaquith
13758c870e
Forget about 4th update() param -- only accept named array. Roll out more insert()/update() and various cleanups.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6240 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 02:36:38 +00:00
Mark Jaquith
48c555d637
Remove redundant "db_" from db_insert() and db_update() methods. Now just insert() and update(). see #5178
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6238 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 00:54:26 +00:00
Mark Jaquith
ac2a4ed5dc
More use of db_insert()/db_update(). see #5178
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6237 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 00:48:52 +00:00
Ryan Boren
770c20562c
Eliminate , , and . see #5182
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6229 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 21:12:34 +00:00
Mark Jaquith
67cb7b99ef
Introducing db_insert() and db_update(), with immediate usage in wp_insert_post(). fixes #5178
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6221 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-10 22:01:40 +00:00
Mark Jaquith
b467f930fd
Revert partial prepare() implementation. Needs to be all or nothing. Props xknown. fixes #5145
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6216 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 23:16:35 +00:00
Ryan Boren
15bfa9d2fb
Apply filteres when returning empty array from get_pages. Props epper. fixes #4712 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6204 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-08 22:25:33 +00:00
Ryan Boren
9c63ee1146
Add page sanitization. Props xknown. fixes #5135 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6185 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-03 16:27:07 +00:00
Mark Jaquith
11e69b6820
prepare() for wp-includes/ link-template.php, post.php, general-template.php, pluggable.php, functions.php. see #4553
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6180 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-02 18:45:47 +00:00
Ryan Boren
4e45315a83
Don't reset parent when updating attachment. Props filosofo and michelwp. fixes #5010
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6155 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-22 16:30:40 +00:00
Ryan Boren
aed5679ace
Don't lose tags when saving a post with attachments. Props filosofo. fixes #4532
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6121 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-16 02:36:23 +00:00
Matt Mullenweg
092bbfb049
Sometimes the $page global is set but it's just an integer, like 1, not an object which we should try to address and put in the cache. The page would work but we'd do spurious wp_cache_add
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6120 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-15 21:52:37 +00:00
Ryan Boren
64bbc52982
Remove duplicate code from wp_insert_attachment(). Update to use sanitize_post. Props Otto42. fixes #4946
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6086 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-11 22:27:36 +00:00
Ryan Boren
7a43c01e08
Remove trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6026 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:32:58 +00:00
Ryan Boren
7109e26194
delete_post_meta_by_key() from Mark Jaquith. fixes #4178
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5976 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-29 19:12:20 +00:00
Ryan Boren
e77ed87b6c
Add get_lastpostdate and 'get_lastpostdatemodified filters. Props rob1n. fixes #4801
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5918 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-22 22:30:06 +00:00
Ryan Boren
d8adefe0b2
bookmark sanitizer funcs and default filter cleanup. see #4546
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5906 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-20 22:50:04 +00:00
Mark Jaquith
c974ff5406
Avoid running get_posts filter twice. Props DD32. fixes #4712
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5855 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-08 04:24:44 +00:00
Mark Jaquith
d2cc17e629
Clear old future post cron entry before creating the authoritative one. Props Barry. fixes #4710
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5853 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-08 04:08:06 +00:00
Ryan Boren
706c581757
Don't forget to filter post_category
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5817 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-24 22:29:41 +00:00
Ryan Boren
fbf238ca99
Eliminate post_pingback stuff since we always use default_pingback_flag. fixes pingback problems caused by [5797] for #4620
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5806 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-16 23:11:51 +00:00
Ryan Boren
c315fbacdb
Fix variable name. Props bgracewood. fixes #4621
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5797 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-12 16:00:51 +00:00
Ryan Boren
9fe6a868ca
Post filter rework. see #4546
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5796 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-11 19:57:43 +00:00
Ryan Boren
fdb786ba7f
Don't create '0' categories. fixes #4413
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5739 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-20 22:06:29 +00:00
Ryan Boren
7df77b79b9
Add some taxonomy validation. Rearrange funcs.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5726 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-19 00:33:44 +00:00
Ryan Boren
09da00f7fe
Use EXTR_SKIP when extracting. see #4468
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5708 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 22:45:40 +00:00
Mark Jaquith
0f0788d24d
Introducing post_status="pending". see #4446 and put any initial bug reports on that ticket
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5707 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 16:24:28 +00:00
Ryan Boren
b046d67f41
Trim empty lines. Nothing but newline.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
Mark Jaquith
78c8d3f3f6
Make sure post titles longer than 200 chars get unique slugs. fixes #4433 . props AaronCampbell.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5685 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-12 20:49:40 +00:00
Ryan Boren
0b91f4aaca
Abstract object term cache a bit more. see #4189
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5616 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-31 21:38:33 +00:00
Ryan Boren
5a8598cd15
Some term caching. see #4189
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5598 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-30 03:36:59 +00:00
Ryan Boren
e0bf0ffa02
Use taxonomy instead of post2cat. see #4189
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5592 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-29 16:52:31 +00:00
Ryan Boren
c4bb18caa6
Use API instead of SELECT. see #4189
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5586 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-29 04:26:36 +00:00
Ryan Boren
b41b02db5d
Fix object term relationship deletion and count updating.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5556 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-27 05:15:18 +00:00
Ryan Boren
455d73121f
Term cache work. see #4189
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5555 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-26 23:32:06 +00:00
Ryan Boren
4c2cd543c1
Update cat2tag converter. Some term API tweaks. see #4189
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5553 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-26 18:54:16 +00:00
Ryan Boren
2b134cc1f7
Set and get post cats to taxonomy. see #4189
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5529 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-23 18:07:53 +00:00
Ryan Boren
9aa94b995b
Fix primary key on term_relationships. Add wp_set_object_terms(). Setting post tags working now. see #4189
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5515 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-22 20:39:26 +00:00
Ryan Boren
523a3724bb
Very rough initial commit of taxonomy for everyone's hacking pleasure. There be dragons. see #4189
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5510 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-22 05:12:38 +00:00
rob1n
9688bcaff3
Seeing double. Good spot momo360modena. fixes #4251 for 2.1, 2.2 and 2.3
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5459 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-12 19:47:47 +00:00
rob1n
c213997f48
Use wp_parse_args(). fixes #4237
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5444 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-11 03:10:05 +00:00
Ryan Boren
424a7906c0
tag_exists(), category_object_exists(), and some tag and cat create fix ups. see #3723
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5271 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-15 02:26:26 +00:00
Ryan Boren
d8c8ecb711
Actually make use of wp_cache_add to avoid unnecessary cache writes. Props skeltoac. fixes #4138
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5248 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-12 02:27:12 +00:00
rob1n
f8680b6c3a
<!--more--> regex fixes. Props Nazgul. fixes #3698
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5244 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-11 22:47:36 +00:00
Ryan Boren
73feece365
Allow passing an empty tag set to wp_set_post_tags() so all tags can be removed from a post. see #3723
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5243 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-11 18:04:49 +00:00
Ryan Boren
4f59c037ce
s/get_post_tags/wp_get_post_tags/ to match the rest of the API.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5231 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-10 18:30:55 +00:00
rob1n
995ac94ed7
Fix typo.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5212 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-07 19:31:54 +00:00
rob1n
e4620977f5
Add wp_add_post_tags() and $append variable for wp_set_post_tags(). fixes #4109
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5209 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-07 19:00:19 +00:00
Ryan Boren
cfb13d7bcf
Relocate get_post_tags.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5197 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-06 18:22:54 +00:00
rob1n
7e8754bbd8
Add a function to unify private posts SQL based on capabilities -- get_private_posts_cap_sql().
...
Usage: get_private_posts_cap_sql($type), where $type is either 'post' or 'page'.
Props molecularbear. fixes #3861
git-svn-id: https://develop.svn.wordpress.org/trunk@5189 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-06 03:25:41 +00:00
Ryan Boren
8a8e57b000
Bit twiddling. Add type bitfield to categories table. see #3723
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5184 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-05 21:16:02 +00:00
rob1n
f4ec57d876
Add exit hook to wp_delete_post(). Props kevinB. fixes #4055
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5158 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-31 21:41:08 +00:00
Matt Mullenweg
644849ac0e
If we don't have IDs at this point, bail out. There are no tag defaults. Should fix #4035 though I can't recreate their particular error.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5113 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-26 18:05:28 +00:00
Matt Mullenweg
b7debfb42b
A backend interface for tagging.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5110 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-26 07:28:29 +00:00
Ryan Boren
d64c69bcd4
Castaways on Gilligan's Isle
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5090 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-23 02:16:16 +00:00
Matt Mullenweg
b1f6f9a6a8
(int)er the dragon.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5087 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-23 00:59:21 +00:00
Ryan Boren
3e2783acdd
Cast to int
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5086 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-22 23:03:07 +00:00
Ryan Boren
77559c20b4
More int casts
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5082 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-22 20:52:29 +00:00
Ryan Boren
71bbe5ffb4
Quote values heading to DB. Cast some ints.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5029 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-12 16:09:44 +00:00
Ryan Boren
a89ea3e725
Prophylactic casting.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5022 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-10 20:34:01 +00:00
Mark Jaquith
56368548ad
Use strpos instead of strstr where ever possible, for speed. Props rob1n. fixes #3920
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4990 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-07 05:29:15 +00:00
Ryan Boren
f77b96fc84
Standardize on 'url' for fetching the blog's url. Props rob1n. fixes #3623
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4983 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-07 03:05:41 +00:00
Mark Jaquith
5acfcd9fea
trailing tabs and whitespace cleanup.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4953 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-27 15:24:54 +00:00
Matt Mullenweg
1a712fb612
Add similar hook as XML-RPC for Atom
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4873 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-11 04:32:31 +00:00
Mark Jaquith
fb8f9d400a
get_post() should check post cache before page cache. fixes #3724
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4847 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-31 03:43:02 +00:00
Ryan Boren
53b8aa18e4
Revert accidental commit.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4832 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-30 01:46:05 +00:00
Ryan Boren
b0f28a6dff
Remove notoptions caching. Multile rewrite_rules options were being created. See #3692 #2268
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4831 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-30 01:43:39 +00:00
Mark Jaquith
24e66041c0
Make <!--more--> regex non-greedy. Props Curloso and Viper007Bond. fixes #3698
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4821 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-27 23:31:42 +00:00
Ryan Boren
a41ca94341
Delete page_uris option before updating it to avoid possibly expensive array comparison. #3614
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4773 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-19 20:36:35 +00:00
Ryan Boren
b232f9b7c4
Use cache sets instead of adds. Props andy. fixes #3562
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4722 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-11 22:34:18 +00:00
Ryan Boren
ac7d4b46cc
wp_get_attachment_thumb_url() fix from mdawaffe. fixes #3520
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4682 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-05 20:54:55 +00:00
Ryan Boren
bb14ecda53
wp_get_attachment_thumb_url() fix from mdawaffe. fixes #3520
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4675 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-04 18:16:33 +00:00
Ryan Boren
29d5c032ce
Now with less bugs. fixes #3411
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4671 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-02 19:51:36 +00:00
Ryan Boren
368695f87d
Attachment fixes from mdawaffe. fixes #3411
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4670 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-02 19:28:30 +00:00
Mark Jaquith
dc22bfe6f6
Move wp_check_for_changed_slugs() to post.php so it can be called in non-admin contexts. fixes #3461
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4637 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-10 17:17:39 +00:00
Ryan Boren
ba54bd7839
Some caching cleanups.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4631 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-08 07:35:45 +00:00
Mark Jaquith
7c07cdc944
get_page() logic re-ordering and inline comments
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4625 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-07 03:10:47 +00:00
Ryan Boren
9271589a5a
Fix up get_page cache handling.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4624 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-07 01:06:28 +00:00
Ryan Boren
32c1d247ac
Attachment data abstraction from mdawaffe. fixes #3440
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4612 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-05 22:37:19 +00:00
Ryan Boren
653cfd2f5e
Use get_the_category() within wp_get_post_categories() so that the cache is used. Props markjaquith. fixes #3430
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4606 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-05 06:45:48 +00:00
Mark Jaquith
f2659c992f
change post_parent on orphaned attachments. props ryanscheuermann. fixes #2681
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4601 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-04 14:25:21 +00:00
Ryan Boren
e9142f3f05
Make sure multiple attachments for the same post have unique permalinks. Props filosofo. fixes #3033
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4561 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-30 23:09:27 +00:00
Ryan Boren
5a2e0d5e60
Filter post_content_filtered
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4533 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-25 17:54:41 +00:00
Mark Jaquith
aa86502ddf
whitespace tidying by Viper007Bond. fixes #3385
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4529 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-24 22:55:28 +00:00
Ryan Boren
15600c640e
Caching fixes and cleanups.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4528 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-24 20:44:03 +00:00
Ryan Boren
f74d084276
Key caches by blog ID for those doing the multi blog trick.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4524 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-23 20:39:39 +00:00
Matt Mullenweg
5b2ba1257f
Caching for get_pages
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4521 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-23 17:21:08 +00:00
Matt Mullenweg
fe87cdac0b
Typo in logic was causing extra page queries.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4518 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-23 16:06:16 +00:00
Ryan Boren
6e8a8a7b95
get_children() uses get_posts(). Props mdawaffe. fixes #3189
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4503 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-20 04:23:12 +00:00
Ryan Boren
e44ea1ff93
Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4495 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-19 07:56:05 +00:00
Ryan Boren
1d570ec675
get_page_by_title()
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4425 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-26 19:55:10 +00:00
Mark Jaquith
f3f5188f24
Fix post meta caching system to reduce queries and eliminate redundant WP code. fixes #3273
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4419 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-24 10:52:59 +00:00
Mark Jaquith
10b506305a
Revert [3952] because it causes double slashing
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4409 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-19 00:39:01 +00:00
Mark Jaquith
f0a421f185
cleanup [4382] a bit
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4383 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-13 00:23:25 +00:00
Mark Jaquith
41ace9de74
Prevent users from entering strings that will be interpreted as serialized arrays/objects on the way out. fixes #2591
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4382 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-12 23:54:36 +00:00
Mark Jaquith
836286e8ec
Post meta caching fix by mdawaffe. fixes #3229
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4372 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-11 09:18:54 +00:00
Ryan Boren
f03d22ae89
Change cron arg passing. Props masquerade. fixes #3169 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4362 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-08 17:50:21 +00:00
Ryan Boren
3472772716
Don't allow pages to have the same names as feeds to avoid rewrite collision. Props skeltoac. fixes #1231
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4199 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-21 00:01:20 +00:00
Ryan Boren
3c348108f8
Warning and notice fixes from Alex King. fixes #3148
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4198 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-19 23:56:28 +00:00
Ryan Boren
19e6c82bb8
Typo.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4191 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-14 00:25:59 +00:00
Ryan Boren
339ada9537
cron and future post publishing fixes. fixes #3058
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4189 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-13 23:54:15 +00:00
Ryan Boren
aa0adc291e
Get pages by author[s]. Props westi. fixes #1486
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4180 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-10 17:47:49 +00:00
Ryan Boren
d41bf225fb
Check excerpt when determing if a post is empty. #3097
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4159 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-02 20:19:07 +00:00
Ryan Boren
5d226699f8
Add xmlrpc_publish_post action.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4147 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-31 05:21:27 +00:00
Ryan Boren
7e82eef627
Use get_option instead of get_settings. Just 'cause.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4144 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-30 21:46:31 +00:00
Ryan Boren
cd766e57e9
s/URI/URL/. Props Nazgul. fixes #2666
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4133 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-30 16:40:17 +00:00
Ryan Boren
60cb6a952b
Handle posts with an empty cat list. fixes #3072
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4119 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-27 19:26:03 +00:00
Ryan Boren
de56075801
Don't save if both title and content are empty. fixes #2390
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4117 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-25 00:27:15 +00:00
Ryan Boren
7c6d67134e
Always clears future publication hook in case the post status bounced from future to draft.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4078 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-07 04:43:38 +00:00
Ryan Boren
ac77e5291f
Rework wp_publish_post() to use wp_update_post() again while turning off filters. Clear the cron schedule for a post when the post timestamp is updated. #2715 #2737
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4077 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-07 03:50:55 +00:00
Ryan Boren
624746bcf1
More more for xmlrpc. fixes #2991
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4074 602fd350-edb4-49c9-b593-d223f7449a82
2006-08-05 04:11:51 +00:00
Ryan Boren
47c276a6c6
Oops.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4027 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-22 04:57:16 +00:00
Ryan Boren
9cd3120632
Rework wp_publish_post(). Should avoid running filters when changing from future to publish.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@4026 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-22 04:17:41 +00:00
Matt Mullenweg
49f9e7e815
Allow Windows folks to delete attachements, fixes #2496
...
git-svn-id: https://develop.svn.wordpress.org/trunk@3952 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-04 18:33:08 +00:00
Ryan Boren
5e32c14d39
Move ping and trackback functions to comment.php (maybe to ping.php later?) #2525
...
git-svn-id: https://develop.svn.wordpress.org/trunk@3900 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-22 19:44:36 +00:00
Ryan Boren
1041498585
Move user functions to user.php. Relocate more post functions to post.php. #2525
...
git-svn-id: https://develop.svn.wordpress.org/trunk@3854 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-08 02:22:16 +00:00
Ryan Boren
d3f6c3ca0d
Reworg post/page/attachment functions. #2525
...
git-svn-id: https://develop.svn.wordpress.org/trunk@3851 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-07 23:17:59 +00:00