Commit Graph

154 Commits

Author SHA1 Message Date
ryan
c21c9af12a Reduce queries by wp_count_posts(). Props josephscott. fixes #5820
git-svn-id: http://svn.automattic.com/wordpress/trunk@6808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 09:30:26 +00:00
ryan
7aa24fb904 Use array keys instead of hard coded list when traversing post fields to sanitize. Props andy. fixes #5836
git-svn-id: http://svn.automattic.com/wordpress/trunk@6803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 06:49:23 +00:00
ryan
1edf014a54 s/2.4/2.5/. Props ffemtcj. fixes #5810
git-svn-id: http://svn.automattic.com/wordpress/trunk@6777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-10 07:59:34 +00:00
ryan
b85271e8ed Add wp_count_posts().
git-svn-id: http://svn.automattic.com/wordpress/trunk@6730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 19:08:14 +00:00
ryan
d88983793b Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@6726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 06:47:27 +00:00
ryan
2e8ee3b0e0 Typo fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@6657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 03:19:34 +00:00
ryan
e5c94063b0 Clear post_meta cache upon change. Props nbachiyski. fixes #5718
git-svn-id: http://svn.automattic.com/wordpress/trunk@6654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 01:55:21 +00:00
ryan
e51dd5d7d1 Don't forget to pass the category
git-svn-id: http://svn.automattic.com/wordpress/trunk@6646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-23 23:38:30 +00:00
westi
839ea6c294 Fix the updated times when publishing/editing with APP. See #5680 props rubys.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-23 20:25:08 +00:00
ryan
6afab28342 Refactor login. see #5405
git-svn-id: http://svn.automattic.com/wordpress/trunk@6643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-22 19:35:19 +00:00
westi
ac2d661ee9 Add xmlrpc methods to discover the valid post and page statuses. See #5569 props josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 21:46:25 +00:00
westi
484a252c4b Ensure that we preserve GUIDs when importing from RSS. Fixes #5589 props peterjanes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 21:27:08 +00:00
westi
1aaec4ff30 Notice fixing for wp-includes. See #5607 props filosofo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-10 20:51:07 +00:00
ryan
1ae1811dd0 Unused var cleanup. Props DD32. see #5418
git-svn-id: http://svn.automattic.com/wordpress/trunk@6551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 19:36:34 +00:00
ryan
e46b5e6bc2 Port autosave to jquery. Props rmccue. see #3824
git-svn-id: http://svn.automattic.com/wordpress/trunk@6546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 08:46:33 +00:00
ryan
0bc86efb8c set_post_type from filosofo. fixes #4844
git-svn-id: http://svn.automattic.com/wordpress/trunk@6537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-02 20:06:00 +00:00
ryan
545e8a3e76 \s is not a valid escape sequence. Props xknown. fixes #5539
git-svn-id: http://svn.automattic.com/wordpress/trunk@6501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-27 08:09:31 +00:00
ryan
7541abd7e5 Don't do hierarchical if includes specified. Props Kafkaesqui. fixes #5373 for 2.4
git-svn-id: http://svn.automattic.com/wordpress/trunk@6491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 21:24:03 +00:00
ryan
0da0bf3436 Fetch only post category terms in get_posts(). Props MichaelH. fixes #5317
git-svn-id: http://svn.automattic.com/wordpress/trunk@6490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 21:21:16 +00:00
ryan
4f92b64b2e Update term counts when future posts are published. fixes #4913 #5488
git-svn-id: http://svn.automattic.com/wordpress/trunk@6425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 00:48:49 +00:00
westi
d7d770ef7c Don't create empty tags. Fixes #5412 props ionfish
git-svn-id: http://svn.automattic.com/wordpress/trunk@6407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 17:34:15 +00:00
ryan
8f6268e38b clean page cache when reparenting pages after deletion. Props hailin. fixes #5457
git-svn-id: http://svn.automattic.com/wordpress/trunk@6382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 20:56:55 +00:00
ryan
c7198d281d post phpdoc from m0n5t3r and darkdragon. see #3982
git-svn-id: http://svn.automattic.com/wordpress/trunk@6379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 00:28:34 +00:00
ryan
f0a47b7127 Query page attachments from page requests so that they can both use the same set of rewrite rules. see #3614
git-svn-id: http://svn.automattic.com/wordpress/trunk@6377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-12 11:45:55 +00:00
ryan
028a159440 Remove unused vars. Props DD32. see #5418
git-svn-id: http://svn.automattic.com/wordpress/trunk@6364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-06 19:49:33 +00:00
ryan
7c033fd82c 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: http://svn.automattic.com/wordpress/trunk@6351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-04 00:19:10 +00:00
ryan
b51a0cb0f8 Update page on front settings when deleting the page on front. Props hailin. fixes #5361
git-svn-id: http://svn.automattic.com/wordpress/trunk@6337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-16 17:39:15 +00:00
ryan
964c6c72c1 Skip sanitization altogether for raw context. Props Quandary. fixes #5325
git-svn-id: http://svn.automattic.com/wordpress/trunk@6321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-07 06:20:08 +00:00
ryan
52934a6cee Fix comment typo
git-svn-id: http://svn.automattic.com/wordpress/trunk@6306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-02 00:58:15 +00:00
ryan
c148b6ce78 Make sure ID is set for later update() calls.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-02 00:47:04 +00:00
ryan
fbbbfb9a48 Typo fix from DD32. Fixes uploads. fixes #5302
git-svn-id: http://svn.automattic.com/wordpress/trunk@6304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-01 16:20:16 +00:00
ryan
d9bba52a5f Post timezone to lastpost filters. Props mdawaffe. fixes #5292
git-svn-id: http://svn.automattic.com/wordpress/trunk@6301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-31 16:59:05 +00:00
ryan
e236161cf9 wp_get_archives caching. fixes #5275
git-svn-id: http://svn.automattic.com/wordpress/trunk@6296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-30 06:03:11 +00:00
ryan
0e0ebbba23 Move all page and post caches to 'posts' cache group.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-15 20:11:30 +00:00
ryan
363eae9d76 Add some clean cache hooks
git-svn-id: http://svn.automattic.com/wordpress/trunk@6248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-14 04:55:33 +00:00
ryan
bd5d107814 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: http://svn.automattic.com/wordpress/trunk@6247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-14 01:08:07 +00:00
markjaquith
4a43a0b353 Some foreach array casting
git-svn-id: http://svn.automattic.com/wordpress/trunk@6242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 05:33:39 +00:00
markjaquith
14c3ea37ca Forget about 4th update() param -- only accept named array. Roll out more insert()/update() and various cleanups.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 02:36:38 +00:00
markjaquith
1d883e1b9c Remove redundant "db_" from db_insert() and db_update() methods. Now just insert() and update(). see #5178
git-svn-id: http://svn.automattic.com/wordpress/trunk@6238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 00:54:26 +00:00
markjaquith
05e68a8676 More use of db_insert()/db_update(). see #5178
git-svn-id: http://svn.automattic.com/wordpress/trunk@6237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 00:48:52 +00:00
ryan
62d3a12280 Eliminate , , and . see #5182
git-svn-id: http://svn.automattic.com/wordpress/trunk@6229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-12 21:12:34 +00:00
markjaquith
c5f9186919 Introducing db_insert() and db_update(), with immediate usage in wp_insert_post(). fixes #5178
git-svn-id: http://svn.automattic.com/wordpress/trunk@6221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-10 22:01:40 +00:00
markjaquith
90da0b6561 Revert partial prepare() implementation. Needs to be all or nothing. Props xknown. fixes #5145
git-svn-id: http://svn.automattic.com/wordpress/trunk@6216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-09 23:16:35 +00:00
ryan
b8febc8501 Apply filteres when returning empty array from get_pages. Props epper. fixes #4712 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-08 22:25:33 +00:00
ryan
3211ab1d54 Add page sanitization. Props xknown. fixes #5135 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-03 16:27:07 +00:00
markjaquith
21c25b5566 prepare() for wp-includes/ link-template.php, post.php, general-template.php, pluggable.php, functions.php. see #4553
git-svn-id: http://svn.automattic.com/wordpress/trunk@6180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-02 18:45:47 +00:00
ryan
72e74add8d Don't reset parent when updating attachment. Props filosofo and michelwp. fixes #5010
git-svn-id: http://svn.automattic.com/wordpress/trunk@6155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-22 16:30:40 +00:00
ryan
76fee1da02 Don't lose tags when saving a post with attachments. Props filosofo. fixes #4532
git-svn-id: http://svn.automattic.com/wordpress/trunk@6121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-16 02:36:23 +00:00
matt
1e127b413c 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: http://svn.automattic.com/wordpress/trunk@6120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-15 21:52:37 +00:00
ryan
c06e70516a Remove duplicate code from wp_insert_attachment(). Update to use sanitize_post. Props Otto42. fixes #4946
git-svn-id: http://svn.automattic.com/wordpress/trunk@6086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 22:27:36 +00:00