Commit Graph

76 Commits

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