Commit Graph

2971 Commits

Author SHA1 Message Date
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
Peter Westwood bce45c481a Avoid the 64bit dragons. Fixes #3780 props nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@6488 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 15:14:07 +00:00
Ryan Boren 1a4f8fd617 set_auth_cookie action. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6486 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 08:01:55 +00:00
Peter Westwood 6c07e81826 Add file level documentation for compat.php. Fixes #5510 props darkdragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6485 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 07:18:41 +00:00
Peter Westwood 6ee634e61f Add file level documentation for template-loader.php. Fixes #5513 props darkdragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6483 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 07:09:36 +00:00
Peter Westwood e25735041e Add documentation for bookmark-template.php. Fixes #5521 props darkdragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6481 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 07:04:29 +00:00
Peter Westwood 7d592c6d64 Add documentation for bookmark.php. Fixes #5523 props darkdragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6480 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 07:01:47 +00:00
Peter Westwood 86724e8e77 Update @since information. Fixes #4393 props darkdragon
git-svn-id: https://develop.svn.wordpress.org/trunk@6479 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 06:57:34 +00:00
Ryan Boren 4436a01316 Allow DB salt to be overridden by SECRET_SALT. Add a filter to wp_salt(). see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6478 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 06:34:12 +00:00
Ryan Boren 976dc65a9b Don't fallback to DB info for secret key. Allow expiration grace period for AJAX requests. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6471 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-23 00:58:06 +00:00
Ryan Boren 22eb9c1d99 Show DB errors if WP_DEBUG and if installing. see #5473
git-svn-id: https://develop.svn.wordpress.org/trunk@6469 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-22 17:45:30 +00:00
Ryan Boren 5b1a91e0c3 Throw pages into search queries. Let's see how they handle. see #5149
git-svn-id: https://develop.svn.wordpress.org/trunk@6467 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-22 08:19:10 +00:00
Ryan Boren 7e06628e1b Don't block SET NAMES query. Props g30rg3x for the find. fixes #5503 for 2.4
git-svn-id: https://develop.svn.wordpress.org/trunk@6464 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-22 06:24:48 +00:00
Ryan Boren fa1f09bcb3 Forgot this. see #5495
git-svn-id: https://develop.svn.wordpress.org/trunk@6460 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-21 19:54:46 +00:00
Ryan Boren 9365777088 Return after bailing since bail doesn't always die now. Don't do queries if constructor didn't complete. see #5495
git-svn-id: https://develop.svn.wordpress.org/trunk@6459 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-21 19:30:08 +00:00
Ryan Boren 0c135204a3 Revert accidental bits.
git-svn-id: https://develop.svn.wordpress.org/trunk@6457 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-21 18:50:29 +00:00
Ryan Boren 5ff262b3da Page walker fixes from hailin. fixes #5498
git-svn-id: https://develop.svn.wordpress.org/trunk@6456 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-21 18:49:20 +00:00
Ryan Boren 26a0cf0e7b Remove debug
git-svn-id: https://develop.svn.wordpress.org/trunk@6452 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-21 06:12:23 +00:00
Ryan Boren b8965ef065 Be more selective in what we make clickable.
git-svn-id: https://develop.svn.wordpress.org/trunk@6449 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-21 03:14:22 +00:00
Ryan Boren 08920c2855 Custom DB error page. fixes #5500 for 2.4
git-svn-id: https://develop.svn.wordpress.org/trunk@6447 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-21 02:53:57 +00:00
Peter Westwood be5393fed5 Add file level phpdoc to external libraries we use. Fixes #5443 props darkdragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6440 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 22:28:54 +00:00
Peter Westwood afd0b9a623 Ensure we don't call exif_read_data() on unsupported file types. Fixes #5397 props DD32
git-svn-id: https://develop.svn.wordpress.org/trunk@6438 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 22:18:28 +00:00
Peter Westwood e097caa70c Fix some of the notices visible with WP_DEBUG enabled.
git-svn-id: https://develop.svn.wordpress.org/trunk@6436 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 21:25:12 +00:00
Peter Westwood 3301f80416 Fix query variable naming errors.
git-svn-id: https://develop.svn.wordpress.org/trunk@6435 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 20:59:53 +00:00
Ryan Boren d20eeb048b Use __ngettext() for plurals. Props darkdragon. see #4865
git-svn-id: https://develop.svn.wordpress.org/trunk@6430 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 17:05:06 +00:00
Ryan Boren 1671feadfc Set error if there is a problem connecting to the DB. Props skeltoac and Potter_System. fixes #5495
git-svn-id: https://develop.svn.wordpress.org/trunk@6426 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 02:10:09 +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
Ryan Boren f86da68978 Don't create blank terms. Props ionfish and jhodgdon. fixes #5494
git-svn-id: https://develop.svn.wordpress.org/trunk@6424 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 23:25:11 +00:00
Ryan Boren 71fbba1534 Rename file. see #4470
git-svn-id: https://develop.svn.wordpress.org/trunk@6422 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 22:46:02 +00:00
Ryan Boren 9af95e4544 Password strength meter from MellerTime. see #4470
git-svn-id: https://develop.svn.wordpress.org/trunk@6419 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 21:53:10 +00:00
Ryan Boren c66540fc1a Fix previous/next links for slugs containing 'page'. Props xknown. fixes #5318
git-svn-id: https://develop.svn.wordpress.org/trunk@6415 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 19:27:14 +00:00
Ryan Boren c15c27ec2c Fix id, self link and alternate link in Atom comment feeds. Props ionfish. fixes #5435
git-svn-id: https://develop.svn.wordpress.org/trunk@6414 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 18:25:22 +00:00
Ryan Boren a62059d49e get_search_feed_link and get_search_comments_feed_link from ionfish. fixes #5442
git-svn-id: https://develop.svn.wordpress.org/trunk@6413 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 18:05:21 +00:00
Ryan Boren 996d913b0e Better is_admin() check from filosofo and pishmishy. fixes #5487
git-svn-id: https://develop.svn.wordpress.org/trunk@6412 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 17:56:16 +00:00
Ryan Boren 8966b24e0b Add a get_stylesheet_dir to sprintf in get_theme_mod. Props andy. fixes #5398
git-svn-id: https://develop.svn.wordpress.org/trunk@6410 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 17:47:06 +00:00
Ryan Boren e715ba1cd0 Allows 0 titles when sanitizing. Props mdawaffe. fixes #5293
git-svn-id: https://develop.svn.wordpress.org/trunk@6409 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 17:45:50 +00:00
Ryan Boren d8876f4dba language_attributes() improvements from ionfish. fixes #5393
git-svn-id: https://develop.svn.wordpress.org/trunk@6408 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 17:44:02 +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 a668aa0fe9 Fix tinymce valid elements configuration. Props linusmartensson. fixes #3826
git-svn-id: https://develop.svn.wordpress.org/trunk@6405 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-18 20:46:09 +00:00
Ryan Boren 6aa006ce3c redirect fixes from ruckus and tellyworth. fixes #5479
git-svn-id: https://develop.svn.wordpress.org/trunk@6402 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-18 05:28:44 +00:00
Ryan Boren 49d95f21c1 unique filename fixes from tellyworth. fixes #5482
git-svn-id: https://develop.svn.wordpress.org/trunk@6401 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-18 03:32:43 +00:00
Ryan Boren 894db1ba91 Fix AJAX cookie validation. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6400 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-17 21:12:28 +00:00
Ryan Boren 930b3c2b2e wp_list_pages() no longer requires get_pages() to do a hierarchical sort. Set hierarchical to false. see #5458
git-svn-id: https://develop.svn.wordpress.org/trunk@6399 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-17 06:53:59 +00:00
Ryan Boren 7812280d07 Use generic page rewrite rules for compatible permalink strucures. see #3614
git-svn-id: https://develop.svn.wordpress.org/trunk@6398 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-17 06:29:30 +00:00
Ryan Boren 30bb10fba2 Accept array of pages for is_page(). Props azaozz. fixes #5430
git-svn-id: https://develop.svn.wordpress.org/trunk@6397 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-17 06:21:43 +00:00
Ryan Boren 5b1f4e739c wp_set_password(). see #2394
git-svn-id: https://develop.svn.wordpress.org/trunk@6396 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-17 06:02:45 +00:00
Ryan Boren cdda888c0c author-template phpdoc from darkdragon. fixes #4393
git-svn-id: https://develop.svn.wordpress.org/trunk@6395 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-16 23:47:58 +00:00
Ryan Boren a3058bdbc2 Suppress display of DB error messages by default. Props filosofo. see #5473
git-svn-id: https://develop.svn.wordpress.org/trunk@6391 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-16 21:38:24 +00:00
Ryan Boren f4d8e3a731 Import file attachments. Props tellyworth. fixes #5466
git-svn-id: https://develop.svn.wordpress.org/trunk@6390 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-16 21:34:48 +00:00
Ryan Boren 6268241e88 Fix depth = 1 page traversal. Props hailin. fixes #5469
git-svn-id: https://develop.svn.wordpress.org/trunk@6388 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-16 20:31:44 +00:00
Ryan Boren bb7922cd42 New secure cookie protocol. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6387 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-16 17:41:59 +00:00
Ryan Boren 5918e8cf1c Pluggable random password generator from pishmishy. fixes #5401
git-svn-id: https://develop.svn.wordpress.org/trunk@6385 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-15 05:31:16 +00:00
Ryan Boren 95e4e8c822 Faster page and cat walker. Props hailin. see #5458
git-svn-id: https://develop.svn.wordpress.org/trunk@6384 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-14 21:46:52 +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 c5df163698 Fix registration of multiple sidebars. Props watson. fixes #5352
git-svn-id: https://develop.svn.wordpress.org/trunk@6381 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-14 08:06:08 +00:00
Ryan Boren 1fdcc63822 Faster page_rows() from hailin. see #5303
git-svn-id: https://develop.svn.wordpress.org/trunk@6380 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-14 06:20:42 +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 f7adf585d1 Taxonomy phpdoc from darkdragon. fixes #4742
git-svn-id: https://develop.svn.wordpress.org/trunk@6378 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-14 00:25:39 +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 e6befddf5f Defer term counting during import. Props tellyworth. fixes #5377
git-svn-id: https://develop.svn.wordpress.org/trunk@6376 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-12 05:14:00 +00:00
Peter Westwood 7003316321 Autosave tags as well. Fixes #5359 props sembee
git-svn-id: https://develop.svn.wordpress.org/trunk@6373 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-11 20:30:22 +00:00
Matt Mullenweg a5aa17b2fc Revert [6368]. Fixes #5448, fixes #5247 by adding a new filter to hook in specifically to add attributes, rather than filtering the whole thing. Minor formatting cleanup of comments_popup_link.
git-svn-id: https://develop.svn.wordpress.org/trunk@6372 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-10 20:49:46 +00:00
Ryan Boren bf0c6f9f23 phpdoc for deprecated funcs. Props darkdragon. fixes #5444
git-svn-id: https://develop.svn.wordpress.org/trunk@6370 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-10 18:52:24 +00:00
Ryan Boren 1db91baf1e Support atom threading. Props rubys. fixes #5434
git-svn-id: https://develop.svn.wordpress.org/trunk@6369 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-10 06:57:58 +00:00
Ryan Boren 340228e4ad comments_popup_link filter from joostdevalk. fixes #5247
git-svn-id: https://develop.svn.wordpress.org/trunk@6368 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-10 06:53:58 +00:00
Peter Westwood bdeb4e3663 Remove triming from string options fixes #4781 props hakre
git-svn-id: https://develop.svn.wordpress.org/trunk@6367 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-09 11:49:25 +00:00
Peter Westwood 23b7e0b2c4 Comment out the code that can't run so as to not confuse people.
git-svn-id: https://develop.svn.wordpress.org/trunk@6366 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-09 11:28:57 +00:00
Ryan Boren fb05263f15 New feed_link functions. Deprecate rss_link functions. Make default feed pluggable. Props rubys. see #5328
git-svn-id: https://develop.svn.wordpress.org/trunk@6365 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 19:58:15 +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 6e2cb47d4e Filter and action optimizations and phpdoc updates from darkdragon. fixes #5338
git-svn-id: https://develop.svn.wordpress.org/trunk@6361 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 05:56:38 +00:00
Ryan Boren a1559b9db2 Remove executable property from files. Props lapcat. fixes #5408
git-svn-id: https://develop.svn.wordpress.org/trunk@6360 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-05 09:30:13 +00:00
Ryan Boren 5293dfa9be Refactor next_post_link, previous_post_link. props xknown. fixes #5411
git-svn-id: https://develop.svn.wordpress.org/trunk@6359 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-05 09:25:45 +00:00
Ryan Boren efccf5d5b8 Don't return all taxonomies for an object type of 0. Props tellyworth and nbachiyski. fixes #5417
git-svn-id: https://develop.svn.wordpress.org/trunk@6355 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-05 00:31:54 +00:00
Ryan Boren 34c792ccc8 Use correct var. Props DD32. fixes #5419
git-svn-id: https://develop.svn.wordpress.org/trunk@6353 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-04 23:59:16 +00:00
Ryan Boren 5398d5ac32 Avoid unnecesary call to get_userdata in get_permalink function. Props xknown. fixes #5414
git-svn-id: https://develop.svn.wordpress.org/trunk@6352 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-04 00:40:00 +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 26d056a4dd Hash passwords with phpass. Add wp_check_pasword() and wp_hash_password() functions. Props pishmishy. see #2394
git-svn-id: https://develop.svn.wordpress.org/trunk@6350 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-02 05:14:11 +00:00
Ryan Boren 376e2d98af Remove old comment_count_cache variable. It's dead.
git-svn-id: https://develop.svn.wordpress.org/trunk@6348 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-29 05:03:25 +00:00
Ryan Boren 2c8864821d get_user_by_email() and some user caching cleanups. fixes #5392
git-svn-id: https://develop.svn.wordpress.org/trunk@6346 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-27 22:14:53 +00:00
Ryan Boren 930a39d235 Use 'Log in' instead of 'Login' for verb form. Props doug. see #5296
git-svn-id: https://develop.svn.wordpress.org/trunk@6343 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-26 21:40:00 +00:00
Ryan Boren fdb374bf6a Debug backtrace for queries. Props tellyworth. fixes #5218
git-svn-id: https://develop.svn.wordpress.org/trunk@6342 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-21 00:14:58 +00:00
Ryan Boren 1cdf22f276 Do two sets of filters on posts query. First set is used by regular plugins, second by caching plugins.
git-svn-id: https://develop.svn.wordpress.org/trunk@6341 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-18 19:36:30 +00:00
Peter Westwood 2ab598e809 Actually return a url if SSL is not supported! Relates to #5298
git-svn-id: https://develop.svn.wordpress.org/trunk@6340 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-17 11:27:01 +00:00
Peter Westwood fcd2063365 Ensure that we offer https access to atom if it is available. Fixes #5298 props rubys.
git-svn-id: https://develop.svn.wordpress.org/trunk@6339 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-17 11:21:34 +00:00
Ryan Boren 4bcd8eec3f Move posts_selection action to after post_limits filter.
git-svn-id: https://develop.svn.wordpress.org/trunk@6338 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-17 00:04:19 +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 31fc42f07b Add switch_theme(). Cache current theme in options to avoid calling get_themes(). fixes #5346
git-svn-id: https://develop.svn.wordpress.org/trunk@6334 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-13 05:07:44 +00:00
Ryan Boren 5697266149 Eliminate warnings in convert_smilies. Props tellyworth. fixes #5340
git-svn-id: https://develop.svn.wordpress.org/trunk@6331 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-12 19:33:06 +00:00
Ryan Boren 7a432a2ae9 Remove unused variable. Props epper. fixes #5339
git-svn-id: https://develop.svn.wordpress.org/trunk@6330 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-12 19:31:49 +00:00
Ryan Boren 115abc9122 phpdoc for get_category_feed_link(). see #5173
git-svn-id: https://develop.svn.wordpress.org/trunk@6328 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-09 20:31:24 +00:00
Ryan Boren d07a289c1b get_category_feed_link() from ionfish. fixes #5173
git-svn-id: https://develop.svn.wordpress.org/trunk@6327 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-09 20:12:04 +00:00
Ryan Boren a6159988be Make term slug unique when moving to another parent.
git-svn-id: https://develop.svn.wordpress.org/trunk@6326 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-09 18:34:41 +00:00
Ryan Boren c9946fea10 Change 'all' hook calling. Bring filters and actions back into one array for back-compat. see #5231
git-svn-id: https://develop.svn.wordpress.org/trunk@6324 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-08 01:05:43 +00:00
Ryan Boren 8893deff85 Don't run sanitize_title on IDs in new widgets API to avoid performance overhead. fixes #5326
git-svn-id: https://develop.svn.wordpress.org/trunk@6323 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-08 00:56:54 +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 d5ed4b3d7d has_action and has_filter. see #5231
git-svn-id: https://develop.svn.wordpress.org/trunk@6320 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-07 04:30:11 +00:00
Ryan Boren 35f22f56cf Add missing type arg on call to _wp_filter_build_unique_id(). see #5231
git-svn-id: https://develop.svn.wordpress.org/trunk@6319 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-06 21:39:22 +00:00
Ryan Boren f69f6c0070 current_fiter() from tellyworth. fixes #5232
git-svn-id: https://develop.svn.wordpress.org/trunk@6318 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-06 21:38:04 +00:00
Ryan Boren 6d61400949 Separate action and filter arrays. Get rid of filter merging. fixes #5231
git-svn-id: https://develop.svn.wordpress.org/trunk@6316 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-06 18:31:43 +00:00
Ryan Boren ac3206db1e Back out some changes from #5181. Props rubys. fixes #5307
git-svn-id: https://develop.svn.wordpress.org/trunk@6315 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-06 18:23:16 +00:00
Ryan Boren 667dad0a84 Improve performance of seems_utf8() and uf8_uri_encode(). fixes #5320
git-svn-id: https://develop.svn.wordpress.org/trunk@6314 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-05 17:13:43 +00:00
Ryan Boren 48127234af Update awaiting moderation count when comments are moderated through AJAX. Props mdawaffe. fixes #5315
git-svn-id: https://develop.svn.wordpress.org/trunk@6312 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-04 06:23:03 +00:00
Ryan Boren 686182b75d Fix raw context filtering for terms. see #5253
git-svn-id: https://develop.svn.wordpress.org/trunk@6311 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-03 19:06:43 +00:00
Ryan Boren ed6c69983f Disambiguate columns. Props lawrence123. fixes #5256
git-svn-id: https://develop.svn.wordpress.org/trunk@6310 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-03 19:00:33 +00:00
Peter Westwood be99735638 Refactor of wp-admin/includes/image.php. Fixes #5312, #4151, #4709, #5304 props DD32.
git-svn-id: https://develop.svn.wordpress.org/trunk@6309 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-03 18:33:19 +00:00
Ryan Boren 77838c2433 Cache get_terms queries that return nothing.
git-svn-id: https://develop.svn.wordpress.org/trunk@6307 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-02 04:31:44 +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 8bbc8227ab JS/AJAX form validation from mdawaffe. fixes #5299
git-svn-id: https://develop.svn.wordpress.org/trunk@6303 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-01 06:23:16 +00:00
Ryan Boren ad52441c6b Save user registration time. Props mdawaffe. fixes #5300
git-svn-id: https://develop.svn.wordpress.org/trunk@6302 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-01 05:49:23 +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 8e29dfa495 wpdb::set_prefix(). fixes #5287
git-svn-id: https://develop.svn.wordpress.org/trunk@6300 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-31 03:59:18 +00:00
Ryan Boren a7719ba164 AJAX for link category add and delete. Props mdawaffe. fixes #5291
git-svn-id: https://develop.svn.wordpress.org/trunk@6299 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-31 03:53:32 +00:00
Peter Westwood 095e0993bd Add documentation for wp_version_check(). Fixes #5233 props darkdragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6297 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-30 21:40:30 +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 59555bdcb9 Add is_wp_error check
git-svn-id: https://develop.svn.wordpress.org/trunk@6295 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-28 21:33:03 +00:00
Ryan Boren c66d25830f Strip term name and description before preparing for DB.
git-svn-id: https://develop.svn.wordpress.org/trunk@6294 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-26 19:44:57 +00:00
Ryan Boren efd6b3c958 Pass literal strings not vars to compact.
git-svn-id: https://develop.svn.wordpress.org/trunk@6290 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-25 07:15:02 +00:00
Ryan Boren e1f98333f6 Update clean_object_term_cache() to clear for each taxonomy
git-svn-id: https://develop.svn.wordpress.org/trunk@6288 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-24 17:07:04 +00:00
Ryan Boren e14f9e0d4d Post filter fixes from mdawaffe. fixes #5249
git-svn-id: https://develop.svn.wordpress.org/trunk@6287 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-23 23:02:24 +00:00
Ryan Boren 87fb5e4b49 Separate taxonomy relationships into separate cache buckets.
git-svn-id: https://develop.svn.wordpress.org/trunk@6286 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-23 20:33:50 +00:00
Ryan Boren cbad06c47e Remove unnecessary GROUP BY when getting max term_group. Props michelwp. fixes #5240
git-svn-id: https://develop.svn.wordpress.org/trunk@6285 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-23 16:43:15 +00:00
Ryan Boren 61d75c2593 Add option for ordering retrieved terms by slug or term_group. Props michelwp. fixes #5245
git-svn-id: https://develop.svn.wordpress.org/trunk@6284 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-23 16:39:03 +00:00
Ryan Boren 8f5df55d26 get_row() not fetch_row(). Props michelwp. fixes #5230
git-svn-id: https://develop.svn.wordpress.org/trunk@6283 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-23 16:36:08 +00:00
Ryan Boren 5ac19bfa84 taxonomy phpdoc updates from darkdragon. see #4742
git-svn-id: https://develop.svn.wordpress.org/trunk@6282 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-21 17:18:24 +00:00
Peter Westwood c9039f96d1 Add atom:self link to rss2 feeds per RSS Best Practices Profile. Fixes #5205 props lexhair and rubys.
git-svn-id: https://develop.svn.wordpress.org/trunk@6278 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-20 10:35:44 +00:00
Ryan Boren a22e298dbd phpdoc for plugin API. Props darkdragon. fixes #5225
git-svn-id: https://develop.svn.wordpress.org/trunk@6276 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-19 17:45:08 +00:00
Peter Westwood 70609d051f Use a for loop where it's more appropriate. Fixes #5234 props darkdragon and DD32.
git-svn-id: https://develop.svn.wordpress.org/trunk@6275 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-19 16:32:56 +00:00
Peter Westwood 92694b55ce Add @since to the new phpdoc relates #5181 and [6273]
git-svn-id: https://develop.svn.wordpress.org/trunk@6274 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-19 16:27:09 +00:00
Peter Westwood eac65e6815 Refactor atom support to share code. Fixes #5181 props rubys
git-svn-id: https://develop.svn.wordpress.org/trunk@6273 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-19 15:42:30 +00:00
Ryan Boren 73bc9fb9ba Catch WP_Error. Props tellyworth. fixes #5226
git-svn-id: https://develop.svn.wordpress.org/trunk@6271 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-18 15:55:15 +00:00
Mark Jaquith a42beabd86 Stripslashes tag names to prevent double slashing in wp_insert_term(). fixes #5202
git-svn-id: https://develop.svn.wordpress.org/trunk@6267 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 20:41:43 +00:00
Peter Westwood c4dc37ef75 Set the Sender on emails as well as from. Fixes #5007 for trunk props mattyrob
git-svn-id: https://develop.svn.wordpress.org/trunk@6265 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 20:17:01 +00:00
Mark Jaquith 89417fbaf0 Explicitly exclude previews from canonicalization. fixes #5203 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6263 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 20:14:38 +00:00
Ryan Boren 427ba98610 Remove refs to old, dead caches.
git-svn-id: https://develop.svn.wordpress.org/trunk@6260 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-17 17:37:21 +00:00
Ryan Boren 9c014dca4e More taxonomy phpdoc from darkdragon. see #4742
git-svn-id: https://develop.svn.wordpress.org/trunk@6254 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-15 22:49:31 +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
Peter Westwood 0596a0e504 Fix typo in call to $wpdb->update. Fixes #5206 props zamoose
git-svn-id: https://develop.svn.wordpress.org/trunk@6251 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-15 20:07:29 +00:00
Ryan Boren a5d56b0264 Kill unused var.
git-svn-id: https://develop.svn.wordpress.org/trunk@6250 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-14 09:38:12 +00:00
Ryan Boren c77a783d55 Just cache the is_blog_installed value. If the options table goes away while the value is still cached, oh well. Very edge-case.
git-svn-id: https://develop.svn.wordpress.org/trunk@6249 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-14 07:57:56 +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
Ryan Boren 2fe73132c6 If checking for term within taxonomy, just do the taxonomy specific query. Saves one query.
git-svn-id: https://develop.svn.wordpress.org/trunk@6246 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 19:04:39 +00:00
Ryan Boren cf584c357f Eliminate extra query.
git-svn-id: https://develop.svn.wordpress.org/trunk@6245 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 18:53:28 +00:00
Ryan Boren 27bc4a130f Set global is_blog_installed flag so we don't query the DB more than once per load.
git-svn-id: https://develop.svn.wordpress.org/trunk@6244 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 18:39:28 +00:00
Ryan Boren 44c5526505 Eliminate object_term_cache array. see #5182
git-svn-id: https://develop.svn.wordpress.org/trunk@6243 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 18:23:59 +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 00a44f580a prepare(), insert(), update() for wp-includes/ taxonomy.php, rss.php, registration.php
git-svn-id: https://develop.svn.wordpress.org/trunk@6241 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 03:51:11 +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 05f7b9d773 Allow wpdb->update() to optionally take a named array of where column/value pairs (which will be ANDed)
git-svn-id: https://develop.svn.wordpress.org/trunk@6239 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 01:44:25 +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
Mark Jaquith 1140390e17 Oops, within the class here.
git-svn-id: https://develop.svn.wordpress.org/trunk@6236 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 00:45:34 +00:00
Ryan Boren a6076f7083 Fix category assigment during link import. fixes #5107 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6233 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 21:47:34 +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
Peter Westwood 789b65933e Add is_page_template() function to allow theme developers to detect that they are is a page template. Fixes #3335
git-svn-id: https://develop.svn.wordpress.org/trunk@6228 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 20:01:16 +00:00
Peter Westwood c0e3dc42d7 Translation fix for wp_tag_cloud(). Fixes #5131 props webrocker
git-svn-id: https://develop.svn.wordpress.org/trunk@6227 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-12 19:49:25 +00:00
Ryan Boren b6905da933 Use inner joins instead of left joins for taxonomy. Inner is faster. fixes #5179
git-svn-id: https://develop.svn.wordpress.org/trunk@6224 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-11 17:43:49 +00:00
Mark Jaquith f1f150fd50 Code cleanup and standardization for functions.php
git-svn-id: https://develop.svn.wordpress.org/trunk@6223 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-11 05:46:57 +00:00
Mark Jaquith 3cf979dd42 Introducing absint() for casting to an absolute integer. see #4762
git-svn-id: https://develop.svn.wordpress.org/trunk@6222 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-10 22:11:18 +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 000bbba87b check for a match against a lowercase host in wp_safe_redirect(). props BoltClock. fixes #5114 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6219 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-10 19:25:23 +00:00
Ryan Boren 3df52cab4b Output localized strings before outputting js. Props mdawaffe. fixes #5177 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6218 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-10 18:51:12 +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 63299130a8 jquery for list manipulation. Round one, fight. Props mdawaffe. fixes #4805
git-svn-id: https://develop.svn.wordpress.org/trunk@6214 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 22:51:25 +00:00
Ryan Boren 490789554f jquery for list manipulation. Round one, fight. Props mdawaffe. fixes #4805
git-svn-id: https://develop.svn.wordpress.org/trunk@6213 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 22:49:42 +00:00
Ryan Boren 0fb24b1a07 Force prototype to load before jquery. Props mdawaffe. fixes #5067 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6209 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 21:04:26 +00:00
Mark Jaquith b307377ea1 use type="text/javascript", not lang="javascript". Props dsiemon. fixes #5168
git-svn-id: https://develop.svn.wordpress.org/trunk@6207 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-09 04:13:36 +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
Peter Westwood 1a0fc27afc Move the WLW manifest related files to have proper WordPress naming scheme.
git-svn-id: https://develop.svn.wordpress.org/trunk@6202 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-08 20:21:29 +00:00
Peter Westwood d36d0756e3 Define $constaint is all cases in get_attachment_icon() to fix E_NOTICE. Fixed #5159 props richcon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6201 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-07 07:35:20 +00:00
Peter Westwood 6234be8d22 Add documentation of _wp_filter_build_unique_id(). Fixed #5053 props darkdragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6200 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-07 07:31:14 +00:00
Peter Westwood 8fe6767f3b Move all calls to mysql_ functions to withiWPDB so that t we don't expect any mysql stuff when we are using a custo$wpdb class. Fixes #5127
props ComputerGuru.


git-svn-id: https://develop.svn.wordpress.org/trunk@6199 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-06 08:40:54 +00:00
Peter Westwood 0919b3ca32 Move database class loading to a shared function to ensure all of WordPress is wp-content/wp-db.php aware. Fixes #5128 props ComputerGuru.
git-svn-id: https://develop.svn.wordpress.org/trunk@6198 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-06 08:18:33 +00:00
Peter Westwood 3c2cc79a46 Centralise generator generation, move theme generator generation to wp-head hook. Fixes #5085, #4803. props docwhat, Viper007Bond.
git-svn-id: https://develop.svn.wordpress.org/trunk@6195 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-06 06:55:24 +00:00
Ryan Boren f1aa921ebf WLW manifest from josephscott. fixes #5023 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6192 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-05 17:29:34 +00:00
Ryan Boren f027350b3f Add some spacing. fixes #5137 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6189 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-05 16:27:48 +00:00
Ryan Boren 766e620f90 New taxonomy intersection queries from xknown. fixes #5137
git-svn-id: https://develop.svn.wordpress.org/trunk@6186 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-04 18:10:03 +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
Ryan Boren c23298decb Add sanitize_url. Don't convert ampersands in URLs when saving to DB. fixes #4411 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6182 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-03 16:16:55 +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
Peter Westwood c84e8726d1 We're working on bleeding edge 2.4 stuff now
git-svn-id: https://develop.svn.wordpress.org/trunk@6177 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-29 10:56:53 +00:00
Mark Jaquith d9c7174ee2 prepare() for wp-includes/ bookmark.php, canonical.php, comment.php, comment-template.php. see #4553
git-svn-id: https://develop.svn.wordpress.org/trunk@6173 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-27 07:34:15 +00:00
Ryan Boren 20cb146746 Fix typo in category widget class name. Props joostdevalk. fixes #5079 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@6169 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-26 16:12:28 +00:00
Matt Mullenweg a1dccaa866 bumpity
git-svn-id: https://develop.svn.wordpress.org/trunk@6164 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-25 00:34:43 +00:00
Ryan Boren 85a3aab65c Fix typo. fixes #5061
git-svn-id: https://develop.svn.wordpress.org/trunk@6161 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-24 01:48:36 +00:00
Ryan Boren 8e5f6a187e Add some filtering. Props jhodgdon. fixes #3595
git-svn-id: https://develop.svn.wordpress.org/trunk@6160 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-23 19:25:15 +00:00
Ryan Boren 09e793a837 Fix term count padding.
git-svn-id: https://develop.svn.wordpress.org/trunk@6159 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-23 00:35:59 +00:00
Ryan Boren c93bdc05d1 Term with slug that conflicts with existing term with different parent gets a new term entry with a unique slug. see #5034
git-svn-id: https://develop.svn.wordpress.org/trunk@6157 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-22 18:01:08 +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
Mark Jaquith 1c934d962c Add tag_base to list of untrailingslashed options, and standardize the unslashing. Prevents /mytags//tagname/
git-svn-id: https://develop.svn.wordpress.org/trunk@6153 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-22 06:11:48 +00:00
Mark Jaquith 381dc189dd Fix PATH_INFO first page paging link. fixes #5039
git-svn-id: https://develop.svn.wordpress.org/trunk@6152 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-22 06:07:03 +00:00
Mark Jaquith ccad303433 Core and plugin update checking: make sure fsockopen() is available and check file resources with is_resource() -- both to prevent feof() infinite loops. Props xknown. fixes #5037
git-svn-id: https://develop.svn.wordpress.org/trunk@6151 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-22 00:08:50 +00:00
Ryan Boren 856779888e Revert [5969]. It can break permalinks. see #4739
git-svn-id: https://develop.svn.wordpress.org/trunk@6150 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-21 19:36:12 +00:00
Ryan Boren 5aecb8912f Add checks for WP_Error. Props filosofo. see #4809
git-svn-id: https://develop.svn.wordpress.org/trunk@6148 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-21 15:51:00 +00:00
Mark Jaquith a6b8fe6c3a Pass the attempted redirect host as a second parameter in the allowed_redirect_hosts filter. props mdawaffe.
git-svn-id: https://develop.svn.wordpress.org/trunk@6145 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-20 21:53:42 +00:00
Ryan Boren 4d35d6b824 Always remove index.php from request before contructing page links. fixes #5000
git-svn-id: https://develop.svn.wordpress.org/trunk@6144 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-20 20:56:22 +00:00
Mark Jaquith 2aa1dc4038 Remove trailing /index.php fixing from canonical.php ... Thanks chaoticmortalcom. fixes #5017
git-svn-id: https://develop.svn.wordpress.org/trunk@6143 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-20 20:25:43 +00:00
Ryan Boren 759c182911 Bail if post is empty. Props mdawaffe. fixes #5019
git-svn-id: https://develop.svn.wordpress.org/trunk@6142 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-20 18:25:14 +00:00
Ryan Boren 59a07b76a9 Don't specialchars markup in term description. fixes #5021
git-svn-id: https://develop.svn.wordpress.org/trunk@6141 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-20 18:23:33 +00:00
Ryan Boren 6406e9bbeb Extra protection in check_ajax_referer from mdawaffe. fixes #4939
git-svn-id: https://develop.svn.wordpress.org/trunk@6138 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-19 19:32:34 +00:00
Ryan Boren 6e8eb02d73 Fix includes for setup-config so that wp_die is defined. Props DD32. fixes #4997
git-svn-id: https://develop.svn.wordpress.org/trunk@6137 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-19 04:27:56 +00:00
Mark Jaquith 38a6848169 Put a filter in wp_safe_redirect() so people can whitelist other domains. see #4606
git-svn-id: https://develop.svn.wordpress.org/trunk@6136 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-19 04:14:53 +00:00
Ryan Boren 7738085d0f RC1
git-svn-id: https://develop.svn.wordpress.org/trunk@6135 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-19 04:14:27 +00:00
Mark Jaquith 9b5fd1b17c More robust wp_safe_redirect(). Introducing wp_sanitize_redirect() for use in wp_redirect() and wp_safe_redirect(). fixes #4606
git-svn-id: https://develop.svn.wordpress.org/trunk@6134 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-19 03:47:37 +00:00
Ryan Boren 776b930d7f Script loader cleanup from mdawaffe. fixes #5003
git-svn-id: https://develop.svn.wordpress.org/trunk@6133 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-19 00:51:21 +00:00
Ryan Boren ec05e6cfd7 the_title_attribute(). Props Nazgul. fixes #4731
git-svn-id: https://develop.svn.wordpress.org/trunk@6132 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-18 22:50:59 +00:00
Mark Jaquith 421356b6b8 Introducing wp_safe_redirect(). fixes #4606 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6131 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-18 22:23:16 +00:00
Ryan Boren 7941b7160a Revert rename of more-link class. Props foolswisdom. fixes #4999
git-svn-id: https://develop.svn.wordpress.org/trunk@6128 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-18 16:44:35 +00:00
Ryan Boren 7977cdd349 Drop old tables. Props Nazgul. fixes #4995
git-svn-id: https://develop.svn.wordpress.org/trunk@6126 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-18 16:37:21 +00:00
Ryan Boren 5917c5458c Add checks for WP_Error. Props filosofo. see #4809
git-svn-id: https://develop.svn.wordpress.org/trunk@6125 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-18 16:32:22 +00:00
Mark Jaquith 37d5915b8e Use maybe_unserialize() in get_usermeta(). Props filosofo. fixes #4993
git-svn-id: https://develop.svn.wordpress.org/trunk@6124 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-17 19:19:55 +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
Matt Mullenweg c1eda9c8c6 Because we're modifying an existing cache variable we need to do a _set, not an _add, like we do other places we stick multiple cache values in a single var and key.
git-svn-id: https://develop.svn.wordpress.org/trunk@6119 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-15 21:50:53 +00:00
Peter Westwood 0675c6fc51 Set svn:eol-style on a few files.
git-svn-id: https://develop.svn.wordpress.org/trunk@6118 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-15 17:35:32 +00:00
Matt Mullenweg 9a1ce32a53 Incorrect cache group was causing terms never to get cached.
git-svn-id: https://develop.svn.wordpress.org/trunk@6117 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-15 16:48:29 +00:00
Mark Jaquith f372b1dd05 Canonical fixes: Allow Pages to have /page/x/. Always trailing slash home when it is not paged. Strip extra trailing slashes off of /page/x///
git-svn-id: https://develop.svn.wordpress.org/trunk@6115 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-14 19:41:23 +00:00
Ryan Boren 3db6ccefb0 Deprecate fakeit arg. Props Nazgul. fixes #4439
git-svn-id: https://develop.svn.wordpress.org/trunk@6114 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 21:27:26 +00:00
Mark Jaquith 6f76f4865d Handle ports for canonical redirects. Props driverkt and westi. fixes #4970
git-svn-id: https://develop.svn.wordpress.org/trunk@6112 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 19:24:05 +00:00
Mark Jaquith 2b72a424fc Just some indent fixes in canonical.php
git-svn-id: https://develop.svn.wordpress.org/trunk@6111 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 19:12:53 +00:00
Mark Jaquith 5d12c48818 Use wp_die() for WPDB bails. Send 500 response and no-cache headers so wp_die()s are not cached. props DD32. fixes #3471
git-svn-id: https://develop.svn.wordpress.org/trunk@6110 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 06:23:23 +00:00
Ryan Boren 2e0f3b30e8 s/onChange/onchange/. Props grubgirl, Nazgul. fixes #4630
git-svn-id: https://develop.svn.wordpress.org/trunk@6109 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 05:33:54 +00:00
Mark Jaquith ff71837a58 De-rabbit-hole compat.php
git-svn-id: https://develop.svn.wordpress.org/trunk@6108 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 05:24:31 +00:00
Mark Jaquith 15be7fdab8 Check for apply_filters() in status_header() so that it can be called early on in load process
git-svn-id: https://develop.svn.wordpress.org/trunk@6107 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 05:00:46 +00:00
Ryan Boren 05d9662d3e no follow callback
git-svn-id: https://develop.svn.wordpress.org/trunk@6105 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 04:51:33 +00:00
Mark Jaquith d2b1b4ec3b Move $wp_header_to_desc array to get_status_header_desc() so that it can be called before vars.php is loaded.
git-svn-id: https://develop.svn.wordpress.org/trunk@6104 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 04:48:41 +00:00
Mark Jaquith f5821a6ff7 Plugins are not loaded at this point, so the wp_header_to_desc_array filter is useless
git-svn-id: https://develop.svn.wordpress.org/trunk@6103 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 04:13:32 +00:00
Ryan Boren e0b73aa55a Don't strip slashes from pre. Props DelGurth and mdawaffe. fixes #2059
git-svn-id: https://develop.svn.wordpress.org/trunk@6102 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-13 04:11:21 +00:00
Mark Jaquith 74cddbcf72 fix links generated by get_category_rss_link(). props gwagenknecht. fixes #4550 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6100 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 22:24:28 +00:00
Mark Jaquith 23eba5ca0a Set $theme_loc correctly when ABSPATH is "/". Props arabek. fixes #4541
git-svn-id: https://develop.svn.wordpress.org/trunk@6099 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 22:19:26 +00:00
Mark Jaquith 41f61e4056 Set widget classname when passed string, object/method, object-reference/method. fixes #4910
git-svn-id: https://develop.svn.wordpress.org/trunk@6098 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 20:48:21 +00:00
Mark Jaquith 88c31f17b1 Ignore HOST capitalization differences for canonical redirects. props jbctech. fixes #4773
git-svn-id: https://develop.svn.wordpress.org/trunk@6097 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 20:44:41 +00:00
Peter Westwood 2c1f68efe3 Allow plugins to sanitize there own options easily.
git-svn-id: https://develop.svn.wordpress.org/trunk@6096 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 18:15:29 +00:00
Peter Westwood 41bd579f15 Ensure the parentlink is trailingslashed when building the url - don't trim / off the front. Fixes #2801 props Libertus
git-svn-id: https://develop.svn.wordpress.org/trunk@6095 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 17:46:13 +00:00
Peter Westwood 6eaa87a9a9 Consolidate shared code in get_userdata and get_userdatabylogin. Fixes #2134 props johnjosephbachir
git-svn-id: https://develop.svn.wordpress.org/trunk@6094 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 17:15:17 +00:00
Peter Westwood df7d8eaacd Make the atom feed updated field actually tell you when the post was updated. Fixes #4816 props lapcat.
git-svn-id: https://develop.svn.wordpress.org/trunk@6093 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 16:26:39 +00:00
Ryan Boren 514fb8f764 More phpdoc for taxonomy from darkdragon. see #4742
git-svn-id: https://develop.svn.wordpress.org/trunk@6092 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 02:56:44 +00:00
Ryan Boren a6fba8edcf Add echo or return option to wp_list_categories. Props Otto42. fixes #4182
git-svn-id: https://develop.svn.wordpress.org/trunk@6091 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 02:53:27 +00:00
Ryan Boren dabc12fd93 Deprecate old links functions. Props rob1n. fixes #3413
git-svn-id: https://develop.svn.wordpress.org/trunk@6088 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 01:01:48 +00:00
Ryan Boren f29d32da27 Resurrect count padding.
git-svn-id: https://develop.svn.wordpress.org/trunk@6087 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-12 00:49:16 +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
Mark Jaquith 7eea02c12c Always trailingslash the "home" URL. Protect against chained redirects. Thanks wantmoore. fixes #4773
git-svn-id: https://develop.svn.wordpress.org/trunk@6085 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-11 21:21:40 +00:00
Peter Westwood e0a59804ee Allow the wp_mail filter to change the passed data. Fixes #4511 props ryan.
git-svn-id: https://develop.svn.wordpress.org/trunk@6084 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-11 20:49:28 +00:00
Peter Westwood c3b56d7710 Ensure (next|previous)_post_link always have some content even when the post title is blank. Fixes #1835, props johnbillion
git-svn-id: https://develop.svn.wordpress.org/trunk@6082 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-11 20:05:52 +00:00
Ryan Boren 951354b6bc Add user_nicename key to users table. fixes #4937
git-svn-id: https://develop.svn.wordpress.org/trunk@6075 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-11 18:13:56 +00:00
Ryan Boren 11ed527c0d Set tag_id to first tag in multi tag queries. Have single_cat_title() fallback to single_tag_title() if is_tag so that existing category templates will work with tags. fixes #4506
git-svn-id: https://develop.svn.wordpress.org/trunk@6074 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-11 18:06:52 +00:00
Ryan Boren 2df3796380 beta3
git-svn-id: https://develop.svn.wordpress.org/trunk@6073 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-11 01:43:49 +00:00
Ryan Boren 5bd5234f8d References don't work inside foreach in php4. Props mdawaffe.
git-svn-id: https://develop.svn.wordpress.org/trunk@6071 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-10 19:37:00 +00:00