Commit Graph

102 Commits

Author SHA1 Message Date
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