Commit Graph

5737 Commits

Author SHA1 Message Date
Peter Westwood 2a93c55f43 Switch to passing arrays instead of query strings to functions. Fixes #6647 props filosofo and hakre.
git-svn-id: https://develop.svn.wordpress.org/trunk@12657 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 08:34:39 +00:00
Peter Westwood 6422cc2d63 Deprecate get_alloptions(). Fixes #4915 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12656 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 08:29:55 +00:00
Andrew Ozz 4b7556c1db Don't let "Crunching" overlap image name while uploading, props hakre, fixes #11447
git-svn-id: https://develop.svn.wordpress.org/trunk@12654 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 01:01:52 +00:00
Peter Westwood 1a17554691 Run the old WPMU random_password filter in wp_generate_password(). Fixes #11746 props uglyrobot.
git-svn-id: https://develop.svn.wordpress.org/trunk@12653 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 20:49:04 +00:00
Ryan Boren 7b580bf8e8 Use update and insert. Props DD32. fixes #6836
git-svn-id: https://develop.svn.wordpress.org/trunk@12652 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 20:13:54 +00:00
Ryan Boren 7e6f603296 Revert extra bits that snuck in with [12650]
git-svn-id: https://develop.svn.wordpress.org/trunk@12651 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 19:55:48 +00:00
Ryan Boren d93a81bd35 Assume current user of user ID is not passed. Props filosofo. fixes #11808
git-svn-id: https://develop.svn.wordpress.org/trunk@12650 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 19:45:57 +00:00
Ryan Boren cc623632d3 Deprecate is_site_admin. Props nacin. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12645 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 15:50:46 +00:00
Andrew Ozz 6388f7113b Check if VHOST is defined in get_id_from_blogname()
git-svn-id: https://develop.svn.wordpress.org/trunk@12643 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 10:52:21 +00:00
Andrew Ozz f992a598bb When decompressing try to raw-inflate first, props dd32, fixes #11600
git-svn-id: https://develop.svn.wordpress.org/trunk@12642 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 10:26:33 +00:00
Peter Westwood 754fe19661 Allow people to attach PHP 5.3 Closures to filters and actions. Fixes #10493 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@12641 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 08:27:02 +00:00
Peter Westwood 471ccb4fac phpDoc for ms-deprecated.php props nacin.
Make generate_random_password use wp_generate_password()
Fixes #11746.

git-svn-id: https://develop.svn.wordpress.org/trunk@12635 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 07:32:44 +00:00
Andrew Ozz 74ae03486d Silence error if TB iframe is loaded from another domain, see #6883
git-svn-id: https://develop.svn.wordpress.org/trunk@12634 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 05:55:26 +00:00
Ryan Boren 18e6d905c5 Strip trailing whites from ms files. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12632 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 04:27:46 +00:00
Ryan Boren 435053b040 Remove certain caps for non super admins when running multisite. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12630 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 04:05:53 +00:00
Ryan Boren 4c8ee2f889 Remove raquo. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12628 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 03:40:03 +00:00
Ryan Boren b343c9ee06 Deprecate generate_random_password(). fixes #11746
git-svn-id: https://develop.svn.wordpress.org/trunk@12624 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 02:22:51 +00:00
Ryan Boren 40e73cd79d Better POST_BY_EMAIL logic. Props Denis-de-Bernardy. fixes #11752
git-svn-id: https://develop.svn.wordpress.org/trunk@12623 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 01:29:40 +00:00
Ryan Boren cf5aae053b s/wpmu/ms/ in file refs. Props Denis-de-Bernardy. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12622 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 00:30:53 +00:00
Ryan Boren dfe2e39c2c Deprecate argument. Never fallback to options table for user option requests. Props nacin. fixes #11615
git-svn-id: https://develop.svn.wordpress.org/trunk@12616 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 00:01:52 +00:00
Ryan Boren e7003d6c95 Make *_site_option() multisite awate. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12615 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 23:57:35 +00:00
Ryan Boren 03f8d8996d Return true for all admin user is multisite is not enabled. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12612 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 23:39:40 +00:00
Ryan Boren 8a5d801117 Introduce is_super_admin(). see #11644.
git-svn-id: https://develop.svn.wordpress.org/trunk@12611 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 23:27:22 +00:00
Peter Westwood 816ed91f0f Remove svn:executable property on new files. Fixes #11743 props Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@12610 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 22:22:45 +00:00
Ryan Boren 54675e2ee0 Fix deprecate spelling. Props filosofo. fixes #11758
git-svn-id: https://develop.svn.wordpress.org/trunk@12606 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 20:05:44 +00:00
Peter Westwood 47aaca234b Set svn-eolstyle on some files. See #11644.
git-svn-id: https://develop.svn.wordpress.org/trunk@12605 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 07:50:12 +00:00
Peter Westwood c61d92bd98 Remove the gettext libs that accidentally got added back in. See #10890.
git-svn-id: https://develop.svn.wordpress.org/trunk@12604 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 07:44:25 +00:00
Ron Rennick 032de15d5a Add mu only (inactive) files
git-svn-id: https://develop.svn.wordpress.org/trunk@12603 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 04:02:57 +00:00
Ron Rennick 0b87332865 Adding multi-site settings code
git-svn-id: https://develop.svn.wordpress.org/trunk@12602 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-05 20:59:48 +00:00
Ryan Boren 783803ae22 Restore [10490], part of which was accidentally reverted.
git-svn-id: https://develop.svn.wordpress.org/trunk@12601 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-05 15:50:30 +00:00
Ryan Boren 974b6c1ce4 Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008
git-svn-id: https://develop.svn.wordpress.org/trunk@12598 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-04 17:23:29 +00:00
Ryan Boren 9ef2cb198f More custom post type support. Props scribu. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12597 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-04 16:58:43 +00:00
Peter Westwood deb8c9097b Mark 2nd param of load_plugin_textdomain() as deprecated. Fixes #11679 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12594 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-02 10:28:05 +00:00
Ryan Boren 3d8c08b96a Use current_time() to calculate current time. Props filosofo. fixes #10915
git-svn-id: https://develop.svn.wordpress.org/trunk@12590 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 17:56:09 +00:00
Peter Westwood 6c90d0770c Don't pass deprecated argument to get_bloginfo() in get_index_rel_link() also observer user trailing slash preferences. Fixes #11607 props nacin and miqrogroove.
git-svn-id: https://develop.svn.wordpress.org/trunk@12588 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 17:08:23 +00:00
Peter Westwood c38846defd Use _deprecated_argument() in get_bloginfo() and then don't pass deprecated argument to get_bloginfo(). Fixes #11652 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12587 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 17:05:02 +00:00
Peter Westwood 5a87458f85 Don't pass deprecated argument to comments_number().
git-svn-id: https://develop.svn.wordpress.org/trunk@12586 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 16:54:28 +00:00
Peter Westwood 12cc58c227 Mark user levels as Deprecated. Fixes #10805 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12585 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 16:51:32 +00:00
Peter Westwood a752e6b561 Updates and improvements to _depreceated_argument. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12584 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 16:23:39 +00:00
Andrew Ozz a3da70dfac Add more document file type extensions, props Otto42, dd32, hakre, fixes #7225
git-svn-id: https://develop.svn.wordpress.org/trunk@12581 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 07:59:33 +00:00
Andrew Ozz 3fca305d99 Attempt to detect the correct post enclosure mime type, props josephscott, fixes #11668
git-svn-id: https://develop.svn.wordpress.org/trunk@12580 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 07:36:17 +00:00
Ryan Boren 9406273b6a Don't set charset if mysql version does not have the collation cap. Props miqrogroove. see #11666 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12573 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-29 21:34:12 +00:00
Ryan Boren 36272e0c33 Return empty array instead of null. Props Denis-de-Bernardy. fixes #11661 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12571 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-29 21:11:18 +00:00
Andrew Ozz 87167083cf Fix alignment of checkbox in table.widefat, fixes #11610
git-svn-id: https://develop.svn.wordpress.org/trunk@12567 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-29 13:16:16 +00:00
Ryan Boren cd96da236b Use umeta_id for user meta. Props wnorris. fixes #11627 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12562 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-28 16:42:31 +00:00
Andrew Ozz 78dcefaa71 Too many question marks, see #11315
git-svn-id: https://develop.svn.wordpress.org/trunk@12559 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-28 00:56:41 +00:00
Andrew Ozz 80d135a608 WP_Dependencies: pass NULL to disable script and style version query strings, props scribu amattie, fixes #11315
git-svn-id: https://develop.svn.wordpress.org/trunk@12558 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-28 00:48:20 +00:00
Andrew Ozz dc9e990576 Update Prototype.js to 1.6.1 and remove the second copy of it from wp-includes/js/scriptaculous, update Scriptaculous.js to 1.8.3, props Simek, fixes #11041
git-svn-id: https://develop.svn.wordpress.org/trunk@12557 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-27 22:30:58 +00:00
Andrew Ozz caddbabeec Don't close thickbox when clicking outside the iframe while uploading, fixes #6883
git-svn-id: https://develop.svn.wordpress.org/trunk@12554 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-27 21:03:54 +00:00
Andrew Ozz a464644c00 Move wp-admin.css and rtl.css to the wp-admin/css directory, rename rtl.css to wp-admin-rtl.css to follow naming standard, fixes #10985
git-svn-id: https://develop.svn.wordpress.org/trunk@12553 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-27 20:06:57 +00:00
Andrew Ozz a538de3f8c CSS whitespace and color definitions cleanup, props Simek, fixes #11561
git-svn-id: https://develop.svn.wordpress.org/trunk@12552 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-27 18:17:06 +00:00
Peter Westwood b864f78853 Fix notices in get_the_title() when passed an invalid id. Also ensure that the filter gets the invalid id so a plugin can supply a default title instead. Fixes #11435 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@12550 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-27 08:57:33 +00:00
Peter Westwood 688e340821 Swap out ;; for ;. Fixes #11618 props demetris and nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12548 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-26 16:53:17 +00:00
Peter Westwood b43b13ad81 Update wp_clear_scheduled_hook calls to use array when passing args. Fixes #11590 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12538 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 11:24:32 +00:00
Peter Westwood b607185b4e Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12537 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 11:12:04 +00:00
Peter Westwood e4295ece03 Add new function _deprecated_argument() to be used for marking arguments as deprecated so that with WP_DEBUG enabled developers can see they need to review and update their code. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12536 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 11:06:00 +00:00
Peter Westwood b13e2ac938 More phpdoc fixes. Depreceated version numbers for _deprecated_file() calls in wp-includes.
git-svn-id: https://develop.svn.wordpress.org/trunk@12535 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 10:53:34 +00:00
Peter Westwood 5f07ebb275 Fix phpDoc for _deprecated_file(). Always pass the full path from ABSPATH to _deprecated_file().
git-svn-id: https://develop.svn.wordpress.org/trunk@12534 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 10:48:32 +00:00
Mark Jaquith 32d4695602 Make sure the post global is actually an object before we treat it like one.
git-svn-id: https://develop.svn.wordpress.org/trunk@12532 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 09:30:12 +00:00
Peter Westwood b6669a3c9d phpDoc updates for functions.wp-styles.php. Merge from BackPress props CharlesClarkson.
git-svn-id: https://develop.svn.wordpress.org/trunk@12531 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 08:21:16 +00:00
Peter Westwood 4bad636a1a Round the corners of the Update nag message. Fixes #10431 props Simek.
git-svn-id: https://develop.svn.wordpress.org/trunk@12530 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 08:08:13 +00:00
Ryan Boren 7f1473cc28 windows-1252 is canonical, not Windows-1252. Props Denis-de-Bernardy. fixes #11219
git-svn-id: https://develop.svn.wordpress.org/trunk@12528 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 02:20:05 +00:00
Ryan Boren 9df952a2e5 Set the version of WP a function was deprecated in for all deprecated functions. Props nacin, docwhat. fixes #7493
git-svn-id: https://develop.svn.wordpress.org/trunk@12526 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 18:54:17 +00:00
Ryan Boren 7cff2c4ae0 Refresh deprecated bookmark functions. Props filosofo. fixes #10920
git-svn-id: https://develop.svn.wordpress.org/trunk@12525 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 18:49:22 +00:00
Ryan Boren 7ccd64fbe7 Retunr WP_Error from wp_crop_image() and image_resize(). Props mdwaffe. fixes #9922
git-svn-id: https://develop.svn.wordpress.org/trunk@12524 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 18:39:31 +00:00
Ryan Boren 95ea3693b1 Check required php and mysql versions in the update response and notify if the server environment does not meet those requirements. fixes #11562
git-svn-id: https://develop.svn.wordpress.org/trunk@12523 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 18:35:12 +00:00
Ryan Boren 57f367b6ec Upgrade SWFobject JS to 2.2. Props niallkennedy. fixes #11109
git-svn-id: https://develop.svn.wordpress.org/trunk@12522 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 16:44:46 +00:00
Ryan Boren 291ca310b4 Update phpass to 0.2. Props hakre. fixes #10727
git-svn-id: https://develop.svn.wordpress.org/trunk@12521 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 16:31:57 +00:00
Peter Westwood 71847c3df1 Check that get_page_hierarchy() returns something before trying to build the verbose page rules in WP_Rewrite::page_uri_index(). Fixes #11578.
git-svn-id: https://develop.svn.wordpress.org/trunk@12520 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 16:23:40 +00:00
Ryan Boren 3c37b8fe3a Add more orderby and select options to get_comments. Props filosofo. fixes #10668
git-svn-id: https://develop.svn.wordpress.org/trunk@12518 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 16:16:13 +00:00
Peter Westwood f47ebc68e4 Notice fix. Only return variable references by reference.
git-svn-id: https://develop.svn.wordpress.org/trunk@12517 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 16:03:04 +00:00
Peter Westwood 1955a840a1 Make the meaning of is_home() more explicit.
git-svn-id: https://develop.svn.wordpress.org/trunk@12516 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:44:57 +00:00
Ryan Boren dcd3604d90 Use array calling style. Props Denis-de-Bernardy. see #6647
git-svn-id: https://develop.svn.wordpress.org/trunk@12515 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:31:02 +00:00
Peter Westwood 30e399b3e7 Extend the_modified_date() to support before/after/echo. Fixes #11255 props ShaneF.
git-svn-id: https://develop.svn.wordpress.org/trunk@12514 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:22:08 +00:00
Ryan Boren 6de4fcc190 Remove unneeded quotes around vars. Props johnbillion. fixes #10245
git-svn-id: https://develop.svn.wordpress.org/trunk@12513 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:16:53 +00:00
Ryan Boren 4aee2f753b Sanitize only string and numeric fields in the user object. Props filosofo hakre. fixes #11509 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12511 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:02:06 +00:00
Ryan Boren af9fafc779 Cleanup clean_term_cache(). Props Denis-de-Bernardy. see #11530
git-svn-id: https://develop.svn.wordpress.org/trunk@12510 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 14:37:21 +00:00
Ryan Boren 02ce80a284 Add hierarchical taxonomy handling to wp_set_post_terms(). Props prettyboymp. see #10122
git-svn-id: https://develop.svn.wordpress.org/trunk@12509 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 14:25:09 +00:00
Ryan Boren 65658aacbf Do not use deprecated Etc timezones. Props miqrogroove. fixes #11558 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12507 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 14:16:36 +00:00
Peter Westwood 1a98396118 Merging changes from upstream GlotPress revision [351]. Remove unused local variable.
git-svn-id: https://develop.svn.wordpress.org/trunk@12505 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 11:20:18 +00:00
Peter Westwood 7d9a46e01c Only run a second spaces strip if we replaced some octets. Also only replace spaces and we have already removed the other whitespace chars. Fixes #11573 props azaozz.
git-svn-id: https://develop.svn.wordpress.org/trunk@12504 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 11:00:29 +00:00
Peter Westwood e0f06bd939 Improve sanitize_text_field() some more so that we don't leave extra whitespace after stripping octets. Fixes #11573.
git-svn-id: https://develop.svn.wordpress.org/trunk@12503 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 09:52:48 +00:00
Peter Westwood ca583c9b1a Improve the revision comparison user interface to hilight that we compare "old on left" to "new on right". Includes some js to hide the radio buttons to stop you selecting reverse comparisions.
Fixes #11088 props filosofo.

git-svn-id: https://develop.svn.wordpress.org/trunk@12500 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 09:15:13 +00:00
Andrew Ozz a01ed1f445 Fix sanitize_text_field() issue with some UTF-8 characters, fixes #11528 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12499 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 09:10:26 +00:00
Ryan Boren 18b4e9b8f8 Bump wp-admin css ver. see #11502
git-svn-id: https://develop.svn.wordpress.org/trunk@12496 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 17:12:50 +00:00
Ryan Boren 4a27f6549f Update json lib. Use encodeUnsafe in our json wrapper. Props nacin. fixes #11537 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12491 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 16:49:35 +00:00
Peter Westwood 55318cc19a Add is_comment_feed() to expose ->is_comment_feed. Fixes #10827 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@12487 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 14:04:14 +00:00
Peter Westwood 94a68dfd80 Revert [12485] as it breaks the functionality of is_serialized() and make more strings appear serialized. See #9930.
git-svn-id: https://develop.svn.wordpress.org/trunk@12486 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 13:42:58 +00:00
Peter Westwood 49ebdbb271 Much improved is_serialized() which catches serialized doubles. Fixes #9930 props vladimir_kolesnikov and dd32.
git-svn-id: https://develop.svn.wordpress.org/trunk@12485 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 13:10:06 +00:00
Peter Westwood 6979dbdc02 Pass the url to the 'wp_feed_cache_transient_lifetime' filter to give more context.
Allow plugins to set extra options on SimplePie using the new 'wp_feed_options' action.
Fixes #11117 props nacin.

git-svn-id: https://develop.svn.wordpress.org/trunk@12484 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 12:48:40 +00:00
Peter Westwood f1241d5e6c Use new $required_mysql_version global in wp-db.php when checking if the mysql version is new enough. Fixes #11478 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12480 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 11:49:22 +00:00
Peter Westwood 4e0adefa76 Ensure we don't destory the $wp_roles->role_objects property when assigning a second role to a WP_User object. Fixes #9128 props dd32.
git-svn-id: https://develop.svn.wordpress.org/trunk@12479 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 11:42:46 +00:00
Ryan Boren 7d45163e3e Make sure we have a SimplePie object before calling destruct. Props scribu. see #11518
git-svn-id: https://develop.svn.wordpress.org/trunk@12475 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-21 23:36:12 +00:00
Ryan Boren f0c5fb4f15 Don't use CURLOPT_CONNECTTIMEOUT_MS or CURLOPT_TIMEOUT_MS due to bugginess. fixes #11505 see #11499
git-svn-id: https://develop.svn.wordpress.org/trunk@12472 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-21 19:34:38 +00:00
Peter Westwood 949645fa78 Check that there is a comment_agent to filter and otherwise filter an empty string. Fixes a notice during import from old WXR files. See #11484.
git-svn-id: https://develop.svn.wordpress.org/trunk@12470 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-21 15:35:00 +00:00
Peter Westwood 0a6df71be5 Add stricter checks to wp_insert_user() to ensure we don't create a user with an empty user_login but return a WP_Error instead. Fixes #11548.
git-svn-id: https://develop.svn.wordpress.org/trunk@12468 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-21 15:25:00 +00:00
Ryan Boren 8b7f26b62c Improve do_action performance. Make an associative array. Props koopersmith. fixes #10561
git-svn-id: https://develop.svn.wordpress.org/trunk@12464 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-21 08:47:34 +00:00
Andrew Ozz 0487cf7225 Round back the buttons, see #11502
git-svn-id: https://develop.svn.wordpress.org/trunk@12463 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-20 05:32:52 +00:00
Peter Westwood cbb63c4f78 Fix wp_clear_scheduled_hook() so that it function prototype matches the other cron functions.
Include backwards compatibility code so that plugins that used the old way still work.
Fixes #10468.

git-svn-id: https://develop.svn.wordpress.org/trunk@12462 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-19 11:47:16 +00:00
Peter Westwood 3081afd1e1 Improve like_escape to also escape '\'. Fixes #10041 props miau_jp and Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@12460 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-19 11:07:16 +00:00
Peter Westwood f0a6bb378b Deprecate _nc() as _nx() is a much better was of specifying contexts. Fixes #11404 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12459 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-19 10:51:29 +00:00
Peter Westwood fd5aa64836 Fix notice in get_boundary_post_rel_link when there is no post to link. Fixes #11490 props ShaneF.
git-svn-id: https://develop.svn.wordpress.org/trunk@12457 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-19 09:21:00 +00:00
Ryan Boren e2917654c5 3.0-alpha
git-svn-id: https://develop.svn.wordpress.org/trunk@12456 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-19 00:14:46 +00:00
Andrew Ozz b5d35e68ec Fix checkbox and radio styles in IE7/8 and Opera
git-svn-id: https://develop.svn.wordpress.org/trunk@12448 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-18 13:05:10 +00:00
Ryan Boren d117c4918b Make sure dir() returned a dir object.
git-svn-id: https://develop.svn.wordpress.org/trunk@12434 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-17 19:56:05 +00:00
Ryan Boren 0df26215b0 Add required php and mysql versions to version.php. Future proof required version check strings. Props nacin. see #11464
git-svn-id: https://develop.svn.wordpress.org/trunk@12432 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-17 18:46:19 +00:00
Ryan Boren 047c6a7429 Delete all comment meta when deleting a comment. Props nacin. fixes #11463
git-svn-id: https://develop.svn.wordpress.org/trunk@12430 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-17 17:54:23 +00:00
Ryan Boren 3820e511a6 Delete all comment meta when deleting a comment. Props nacin. fixes #11463
git-svn-id: https://develop.svn.wordpress.org/trunk@12428 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-17 17:10:40 +00:00
Ryan Boren 5322564b92 Properly handle float timeouts for all transports. Props mdawaffe. fixes #11468
git-svn-id: https://develop.svn.wordpress.org/trunk@12424 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-17 16:13:58 +00:00
Peter Westwood 0d2d7cc5a9 Fix phpDoc for Comment Meta functions to refer to comments not posts. See #11462 props sirzooro.
git-svn-id: https://develop.svn.wordpress.org/trunk@12420 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-16 22:13:53 +00:00
Ryan Boren edaf5adcf6 RC1
git-svn-id: https://develop.svn.wordpress.org/trunk@12416 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-16 17:50:18 +00:00
Ryan Boren 83fb251dc3 Delete instead of trash when bulk deleting media. Props nacin. fixes #11455
git-svn-id: https://develop.svn.wordpress.org/trunk@12415 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-16 17:14:21 +00:00
Ryan Boren 3b656ce72e Make the excerpt_more filter include the space. Props demetris. fixes #11456
git-svn-id: https://develop.svn.wordpress.org/trunk@12414 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-16 16:38:58 +00:00
Andrew Ozz 65551e22c3 Check post and comment status before emptying trash, fixes #11442
git-svn-id: https://develop.svn.wordpress.org/trunk@12412 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-16 01:35:29 +00:00
Ryan Boren 60bbd214b3 Remove oEmbed discovery option. Add hook so plugins can enable it. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12411 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 21:16:00 +00:00
Ryan Boren 13b96eb0cb Bump MySQL requirement to 4.1.2 per previous discussions and announcements.
git-svn-id: https://develop.svn.wordpress.org/trunk@12410 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 21:04:50 +00:00
Ryan Boren 8e0d091c55 Remove no longer needed DB has_cap() checks. Props filosofo. fixes #11443
git-svn-id: https://develop.svn.wordpress.org/trunk@12409 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 21:01:57 +00:00
Ryan Boren 60a2805b0d Don't fall back to logged in cookie if in the admin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12408 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 19:57:20 +00:00
Ryan Boren 922d26b596 Fix upload dir defaults. Props Denis-de-Bernardy. fixes #11276
git-svn-id: https://develop.svn.wordpress.org/trunk@12405 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 17:53:51 +00:00
Ryan Boren f2f48162ec Bump the MySQL requirement to 4.1.0. Props Denis-de-Bernardy. see #11437
git-svn-id: https://develop.svn.wordpress.org/trunk@12404 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 16:04:32 +00:00
Ryan Boren 1e123f43a7 Use ON DUPLICATE KEY UPDATE when inserting options to avoid duplicate entry errors. fixes #11437
git-svn-id: https://develop.svn.wordpress.org/trunk@12403 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 16:00:23 +00:00
Andrew Ozz 86c09f699b Add 'trash' in comment moderation emails, props nacin, fixes #11426
git-svn-id: https://develop.svn.wordpress.org/trunk@12402 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 10:55:55 +00:00
Andrew Ozz ef4dad6b8d Fix typos, props aldenta, fixes #11440
git-svn-id: https://develop.svn.wordpress.org/trunk@12400 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 04:55:47 +00:00
Peter Westwood 65e4e2b2a3 Fix some more html encoding in email subject issues. Fixes #9913.
git-svn-id: https://develop.svn.wordpress.org/trunk@12398 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-14 22:09:54 +00:00
Ryan Boren 1ea0e34786 Pass taxonomy to created, edited, create, and edit actions. Props Denis-de-Bernardy. fixes #11429
git-svn-id: https://develop.svn.wordpress.org/trunk@12397 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-14 16:46:05 +00:00
Andrew Ozz 5dd7bb86d3 Add another arg to 'get_comment_time' filter, props miqrogroove, fixes #11421
git-svn-id: https://develop.svn.wordpress.org/trunk@12396 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-14 10:21:58 +00:00
Andrew Ozz 3447fc5210 Urlencode the search query in get_search_feed_link() and get_search_comments_feed_link(), props tenpura, fixes #11153
git-svn-id: https://develop.svn.wordpress.org/trunk@12395 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-14 10:09:55 +00:00
Andrew Ozz 7c0015e43e Move is_admin() to wp-settings.php so it's available when query.php is not included.
git-svn-id: https://develop.svn.wordpress.org/trunk@12393 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-14 00:38:05 +00:00
Peter Westwood 1611f432c3 Ensure that RTL langs don't get a horizontal scrollbar in IE7. Fixes #10748 props yoavf.
git-svn-id: https://develop.svn.wordpress.org/trunk@12392 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-13 17:56:22 +00:00
Peter Westwood 81edd5a728 Restore the check for trueness on $user_id so we don't run the queries or create the objects. Fixes #11419 props Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@12391 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-13 17:32:14 +00:00
Peter Westwood 952cfa477f Check that $user_id is set. For non-logged in users it is not set so we get a notice.
git-svn-id: https://develop.svn.wordpress.org/trunk@12389 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-13 11:43:19 +00:00
Peter Westwood 010138e0df Don't html encode quotes in the blogname in email subjects as this is a plain text output. Fixes #9913 props tenpura.
git-svn-id: https://develop.svn.wordpress.org/trunk@12388 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-13 11:38:45 +00:00
Peter Westwood 5fd68c506f Bump the version number on the wp-admin.css files for [12377]. See #11149 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12386 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-12 22:28:48 +00:00
Andrew Ozz 5ba628b1a9 Remove animation for admin notices, fixes #11267
git-svn-id: https://develop.svn.wordpress.org/trunk@12385 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-12 19:53:06 +00:00
Andrew Ozz 4e8a2950a5 Fix dashboard Right Now columns width in IE6/7, fixes 11293
git-svn-id: https://develop.svn.wordpress.org/trunk@12382 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-12 08:49:45 +00:00
Andrew Ozz 35ded05d09 Typecast to int the return of image_resize_dimensions(), fixes #7748
git-svn-id: https://develop.svn.wordpress.org/trunk@12381 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-12 08:06:24 +00:00
Andrew Ozz a01165cf53 Make animation faster for admin notices, props nacin, fixes #11267
git-svn-id: https://develop.svn.wordpress.org/trunk@12380 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-12 07:34:04 +00:00
Mark Jaquith ee79c9e7d0 Optimize Whoa Cowboy query. Only look back one hour. props mdawaffe. fixes #4366
git-svn-id: https://develop.svn.wordpress.org/trunk@12376 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-11 23:29:19 +00:00
Ryan Boren 95f2058f8b Return false from is_paged() if on the first page. Props Denis-de-Bernardy. fixes #11389
git-svn-id: https://develop.svn.wordpress.org/trunk@12372 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-11 16:38:59 +00:00
Mark Jaquith 545994d1f7 Reverting [12331]. see #10057
git-svn-id: https://develop.svn.wordpress.org/trunk@12368 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 23:02:47 +00:00
Ryan Boren a8751f57f8 Remove unused variable. Props hakre. fixes #10765
git-svn-id: https://develop.svn.wordpress.org/trunk@12367 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 22:55:06 +00:00
Andrew Ozz 917d2e345f Fix slashes in the Text widget, props Denis-de-Bernardy, fixes #10563
git-svn-id: https://develop.svn.wordpress.org/trunk@12364 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 09:54:15 +00:00
Andrew Ozz 139414023c Image editor icons, props Ben Dunkle, fixes #10979
git-svn-id: https://develop.svn.wordpress.org/trunk@12363 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 09:22:01 +00:00
Mark Jaquith c357915942 Strip HTML from comments_popup_link title attribute. props ewestp, xenlab. fixes #10997
git-svn-id: https://develop.svn.wordpress.org/trunk@12362 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 09:13:11 +00:00
Mark Jaquith ef69d82092 Use http_response_code for wp_redirect(), so that fastcgi hosts always get 301 redirect love. props error. fixes #6779
git-svn-id: https://develop.svn.wordpress.org/trunk@12358 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 08:33:17 +00:00
Mark Jaquith d08d287832 Fix some wrapping/cropping issues for verbose languages. props Nao. fixes #11293
git-svn-id: https://develop.svn.wordpress.org/trunk@12357 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 08:20:32 +00:00
Mark Jaquith 7caab9d8e3 Do not double-stripslashes() on get_search_query(). fixes #11374
git-svn-id: https://develop.svn.wordpress.org/trunk@12356 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 08:07:19 +00:00
Mark Jaquith db7d45ebe2 Provide visual feedback for "Use as thumbnail" when clicked immediately after uploading the image. fixes #11140
git-svn-id: https://develop.svn.wordpress.org/trunk@12355 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 08:03:26 +00:00
Mark Jaquith 400915e28a Forgot to check this in with [12353]. see #11140
git-svn-id: https://develop.svn.wordpress.org/trunk@12354 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 07:37:41 +00:00
Mark Jaquith ab97039f96 Post/Page Image was too generic a name. Post/Page Thumbnail is more clear, even if you can create very large thumbnail images if you so choose.
git-svn-id: https://develop.svn.wordpress.org/trunk@12351 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 06:14:36 +00:00
Ryan Boren 3d6a741305 Allow registering post image support per post type. fixes #11364
git-svn-id: https://develop.svn.wordpress.org/trunk@12350 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-09 15:39:20 +00:00
Andrew Ozz 30d99c2c6e Do not auto-scroll the media popup when opening an image details section if it can fit in the viewport, props caesarsgrunt, fixes #11269
git-svn-id: https://develop.svn.wordpress.org/trunk@12349 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-09 12:24:45 +00:00
Peter Westwood daa0430927 Remove passing of spurious argument to wpdb->db_version().
git-svn-id: https://develop.svn.wordpress.org/trunk@12348 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-09 12:00:55 +00:00
Andrew Ozz f27073a3d8 Save menu sections' opened/closed state separately, fixes #10366
git-svn-id: https://develop.svn.wordpress.org/trunk@12347 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-09 11:27:47 +00:00
Mark Jaquith aeb4be8d81 Revision 12345. Nothing but whitespace fixes. That's how I roll.
git-svn-id: https://develop.svn.wordpress.org/trunk@12345 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 21:29:12 +00:00
Mark Jaquith ce73d32830 Yet more standardization around Post/Page Image instead of Post/Page Thumbnail
git-svn-id: https://develop.svn.wordpress.org/trunk@12344 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 21:27:53 +00:00
Mark Jaquith 54410e03f6 Introducing set_post_image_size(w, h, crop) so themes can register their special size/crop for canonical post images. WP will create this size/crop upon upload, so your canonical post images fit your space exactly!
git-svn-id: https://develop.svn.wordpress.org/trunk@12342 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 21:08:19 +00:00
Matt Mullenweg 2101888ec0 Cast out the lowercase P demons that snuck in. http://www.google.com/search?q=out+out+you+demons+of+stupidity
git-svn-id: https://develop.svn.wordpress.org/trunk@12341 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 19:59:34 +00:00
Peter Westwood 073884cb99 Urlencode the redirect url for the logout links as well as login in links. Fixes #10991 props Utkarsh.
git-svn-id: https://develop.svn.wordpress.org/trunk@12340 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 16:38:59 +00:00
Mark Jaquith 51e25872a6 Standardize around "post image" instead of "post thumbnail"
git-svn-id: https://develop.svn.wordpress.org/trunk@12339 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 16:34:04 +00:00
Peter Westwood 009fe3e343 Make the gallery shortcode float the right way for RTL languages. Fixes #7134 props ikonst.
git-svn-id: https://develop.svn.wordpress.org/trunk@12338 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 12:45:32 +00:00
Mark Jaquith 0cc6b29c9b Spam links are just as destructive as trash (more so, actually, since they deprecate the comment). Now they are also colored red, like trash. props caesarsgrunt. fixes #11304
git-svn-id: https://develop.svn.wordpress.org/trunk@12335 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-07 23:45:02 +00:00
Mark Jaquith b63538c44a Fix the case of the curiously expanding wp-admin menu. props westi. fixes #10366
git-svn-id: https://develop.svn.wordpress.org/trunk@12334 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-07 23:29:25 +00:00
Mark Jaquith 5301d79a97 Do not display comments on non-public posts in comments widget. props Denis-de-Bernardy. fixes #9211
git-svn-id: https://develop.svn.wordpress.org/trunk@12333 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-07 18:09:11 +00:00
Peter Westwood 4701dd33f6 Check the correct global in get_page and also ensure that the cap check for deleting pages copes for the default page we edit when adding new. Fixes #11203.
git-svn-id: https://develop.svn.wordpress.org/trunk@12332 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-07 18:01:02 +00:00
Mark Jaquith 8b72be4ed2 Yes, I did mean original... props coffee2code. fixes #10057
git-svn-id: https://develop.svn.wordpress.org/trunk@12331 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-07 17:57:48 +00:00
Ryan Boren ca305e593f Drop autoload index from schema. Tweak key layout to satisdy dbDelta. Props nacin. fixes #11322 #2699
git-svn-id: https://develop.svn.wordpress.org/trunk@12329 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-07 13:57:18 +00:00
Mark Jaquith dd1d1be280 Get rid of stray comma. fixes #10977. props kevinB
git-svn-id: https://develop.svn.wordpress.org/trunk@12327 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-06 18:01:01 +00:00
Ryan Boren 5831826b77 Cleanup oembed caching. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12326 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-06 17:40:36 +00:00
Ryan Boren 0685f827bf Use oEmbed for dailymotion. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12325 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-06 17:33:53 +00:00
Peter Westwood ddea52b0e9 Allow plugins to filter the UserAgent used for PingBack requests. Fixes #11317 props mtdewvirus.
git-svn-id: https://develop.svn.wordpress.org/trunk@12321 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-06 14:28:35 +00:00
Ryan Boren 5f78d6f2a8 phpdoc for post thumbnail template functions. Props ramiy. fixes #11310
git-svn-id: https://develop.svn.wordpress.org/trunk@12320 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-03 15:59:27 +00:00
Ryan Boren 00c2f972e9 get_the_term_list() phpdoc updates. Props filosofo. fixes #11116
git-svn-id: https://develop.svn.wordpress.org/trunk@12319 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-03 15:52:11 +00:00
Andrew Ozz c2b584a91b Validate date/time fields for posts and comments, fixes #10309
git-svn-id: https://develop.svn.wordpress.org/trunk@12318 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-03 09:56:20 +00:00
Andrew Ozz 07f2fd2e4b Fix errors when bulk actions executed on empty list, props nacin, see #11184
git-svn-id: https://develop.svn.wordpress.org/trunk@12317 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-03 01:43:49 +00:00
Ryan Boren 65e6d5fb10 Fix is_tax(). Props scribu. fixes #10721
git-svn-id: https://develop.svn.wordpress.org/trunk@12316 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-02 18:00:32 +00:00
Ryan Boren d8822ccb65 Beta 2 bump
git-svn-id: https://develop.svn.wordpress.org/trunk@12314 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 23:57:13 +00:00
Andrew Ozz 01a2ce507b Fix canceling when deleting newly added categories and link categories, fixes #11296
git-svn-id: https://develop.svn.wordpress.org/trunk@12313 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 23:51:04 +00:00
Ryan Boren 0042fa7b7c Fix file validation in theme editor. Props dd32. fixes #11032
git-svn-id: https://develop.svn.wordpress.org/trunk@12310 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 22:03:13 +00:00
Ryan Boren b2faac7a2b Fix wp_nonce_ays() for log-out case. Fix IE6 padding. Props miqrogroove. fixes #11289
git-svn-id: https://develop.svn.wordpress.org/trunk@12309 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 21:21:31 +00:00
Ryan Boren a17b3af236 Use correct var name. Props miqrogroove. fixes #10821
git-svn-id: https://develop.svn.wordpress.org/trunk@12307 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 19:41:41 +00:00
Ryan Boren af737032df Do recently updated test only if show_updated. Avoids slow query.
git-svn-id: https://develop.svn.wordpress.org/trunk@12306 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 19:35:21 +00:00
Ryan Boren 3f21c3ea5c Delete custom taxonomy relationships when deleting a post or attachment. Props dd32. fixes #10821
git-svn-id: https://develop.svn.wordpress.org/trunk@12305 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 18:01:24 +00:00
Andrew Ozz a308e5f1da Remove oEmbed references and auto-insert of shortcodes from the UI, fixes #11288
git-svn-id: https://develop.svn.wordpress.org/trunk@12304 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 09:22:48 +00:00
Andrew Ozz 55ea0988cd Don't show deleted Pages in wp.getPages results, props ryan, props Denis-de-Bernardy,fixes #11243
git-svn-id: https://develop.svn.wordpress.org/trunk@12303 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 08:14:42 +00:00
Andrew Ozz 3ee2175000 Separate the removal of <p> wrapping from shortcodes into another function and apply it with different filter, props miqrogroove, props mdawaffe, see #11257, see #11249
git-svn-id: https://develop.svn.wordpress.org/trunk@12302 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 07:46:36 +00:00
Ryan Boren 42e6256e10 Accept either user_id or user_ID. Remove user_id global. see #11271 #11222
git-svn-id: https://develop.svn.wordpress.org/trunk@12300 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 02:06:02 +00:00
Ryan Boren 7026dd4d72 Delete custom taxonomy relationships when deleting a post. Props miqrogroove. fixes #10821
git-svn-id: https://develop.svn.wordpress.org/trunk@12299 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-30 22:17:28 +00:00
Ryan Boren 6115dc47b2 Save parent temp ID for unattached attachments in postmeta. Props scribu. fixes #9471
git-svn-id: https://develop.svn.wordpress.org/trunk@12298 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-30 21:41:52 +00:00
Andrew Ozz a03d21af84 Fix Right Now comments counts for trash, spam or undo.
git-svn-id: https://develop.svn.wordpress.org/trunk@12293 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-30 00:49:33 +00:00
Ryan Boren 2a1dcbf551 comment status transition was broken due to sneaky reference return in &get_comment. Props skeltoac
git-svn-id: https://develop.svn.wordpress.org/trunk@12292 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-29 20:05:39 +00:00
Andrew Ozz a0ea0aa4ed Tweak colors for trash, spam and undo of comments, fix IE6/7 background for unapproved comments, fix JS error in IE6/7, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@12291 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-29 10:29:12 +00:00
Andrew Ozz 365fea47fc "Trash" fixes, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@12290 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-28 03:56:20 +00:00
Andrew Ozz ed11892e7f Flash through red when sending an item to the trash, flash through green when undoing it, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@12289 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-28 02:56:15 +00:00
Peter Westwood bc19c30486 Restore functionality of setup_userdata() when a user id is supplied. See #11271 and #11222.
git-svn-id: https://develop.svn.wordpress.org/trunk@12288 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-27 18:17:44 +00:00
Andrew Ozz a675276ce5 Undo for setting a comment as spam, props caesarsgrunt, fixes #11260, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@12286 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-27 10:34:09 +00:00
Andrew Ozz 387ac8c9b5 Fix notices and phpdoc, props hakre, fixes #10758
git-svn-id: https://develop.svn.wordpress.org/trunk@12284 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-26 11:29:54 +00:00
Andrew Ozz 53872d2218 Avoid a rare case of black line in cropped thumbnails, props miqrogroove, fixes #7748
git-svn-id: https://develop.svn.wordpress.org/trunk@12280 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-26 06:58:21 +00:00
Andrew Ozz b3b788503e Get the right number of pages then excluding a tree, fixes #11205
git-svn-id: https://develop.svn.wordpress.org/trunk@12279 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-26 05:22:09 +00:00
Andrew Ozz f066b7dc39 Stop the fade-out of the Undo notices on Edit Comments screen, props caesarsgrunt, fixes #11259, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@12278 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-26 04:37:39 +00:00
Andrew Ozz 70435662a6 l10n for thickbox.js, props nbachiyski, fixes #10278
git-svn-id: https://develop.svn.wordpress.org/trunk@12276 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-25 11:08:39 +00:00
Andrew Ozz 8a77135845 Autop: add fieldset to blocks, remove support for empty <p> for now, fix block in block problems when switching the editor from visual to html and back, fixes #8644
git-svn-id: https://develop.svn.wordpress.org/trunk@12275 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-25 09:50:20 +00:00
Andrew Ozz be0c042c08 Set uploaded files extensions to lower case, fixes #11218
git-svn-id: https://develop.svn.wordpress.org/trunk@12274 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-25 05:04:30 +00:00
Ryan Boren 09dfc3b883 Don't require titles for attachments. Props caesarsgrunt. fixes #11052
git-svn-id: https://develop.svn.wordpress.org/trunk@12273 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-24 16:52:32 +00:00
Ryan Boren dff67e2fa2 Fix attachment rewrite endpoints. Props Curioso. fixes #5553
git-svn-id: https://develop.svn.wordpress.org/trunk@12271 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-24 16:08:13 +00:00
Ryan Boren 27db8a8161 Standardize on user_id instead of user_ID when passing comment data. fixes #11222
git-svn-id: https://develop.svn.wordpress.org/trunk@12267 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-23 21:04:11 +00:00
Ryan Boren ef3f414213 Check if defined to avoid having to suppress. Props Mittineague, Denis-de-Bernardy. fixes #10525
git-svn-id: https://develop.svn.wordpress.org/trunk@12265 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-23 18:47:22 +00:00
Ryan Boren bef6051a09 Improve IIS rewrite support. Props ruslany, peaceablewhale. fixes #10386
git-svn-id: https://develop.svn.wordpress.org/trunk@12264 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-23 18:17:46 +00:00
Ryan Boren 98be65649d Reduce memory usage for XML-RPC requests. Props Demitrious Kelly. fixes #10698
git-svn-id: https://develop.svn.wordpress.org/trunk@12263 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-23 16:53:36 +00:00
Peter Westwood 7a0fb0316f Pass the old term_taxonomy ids to the action in set_object_terms so plugins know what was before. Fixes #10962 props simonwheatley.
git-svn-id: https://develop.svn.wordpress.org/trunk@12261 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-22 22:33:45 +00:00
Peter Westwood 43b9064424 Mark _c() as Deprecated people should use the new _x() instead. Fixes #11225.
git-svn-id: https://develop.svn.wordpress.org/trunk@12257 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-22 12:07:41 +00:00
Andrew Ozz 54208d4973 Ignore trashed comments for duplicate comment check, props scribu, fixes #10944
git-svn-id: https://develop.svn.wordpress.org/trunk@12254 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-21 11:31:21 +00:00
Peter Westwood 6b92317f98 Allow plugins to override the behaviour of load_textdomain() in a variety of flexible ways. Fixes #11012 props johanee and nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@12251 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-21 09:28:32 +00:00
Peter Westwood 69422cfa9c Ensure that make_clickable links correctly when the link is placed in brackets and has trailing punctuation. Fixes #11211 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@12250 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-21 09:14:17 +00:00
Andrew Ozz b15bee6f1a Always register all widgets, props hakre, fixes #10954
git-svn-id: https://develop.svn.wordpress.org/trunk@12249 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-21 03:40:55 +00:00
Ryan Boren 7425349d76 Fix preview of pending pages with permalinks on. Props dj-wp. fixes #11199
git-svn-id: https://develop.svn.wordpress.org/trunk@12245 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 17:47:25 +00:00
Ryan Boren b4ef4d5fc9 script loader phpdoc improvements. Props nacin. fixes #11201
git-svn-id: https://develop.svn.wordpress.org/trunk@12244 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 17:44:46 +00:00
Ryan Boren 3430acef10 Use correct var name
git-svn-id: https://develop.svn.wordpress.org/trunk@12243 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 17:32:56 +00:00
Ryan Boren 446d22adcd Fix double slashing. Props scribu. fixes #11061
git-svn-id: https://develop.svn.wordpress.org/trunk@12241 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 14:23:41 +00:00
Andrew Ozz f13b20b423 Add video/x-flv to mime types, props hakre, fixes #11051
git-svn-id: https://develop.svn.wordpress.org/trunk@12239 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 04:19:44 +00:00
Andrew Ozz 82a2f2a426 Limit wp_get_recent_posts() to real/live posts, props josephscott, fixes #11123
git-svn-id: https://develop.svn.wordpress.org/trunk@12237 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 03:01:22 +00:00
Andrew Ozz 26a9029a82 Do not show entities when inserting newly added category in the parents dropdown, props aldenta, fixes #11182
git-svn-id: https://develop.svn.wordpress.org/trunk@12236 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 01:54:12 +00:00
Andrew Ozz 0666505958 Specify background color for input elements, props hakre, fixes #10881
git-svn-id: https://develop.svn.wordpress.org/trunk@12234 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 23:46:23 +00:00
Ryan Boren 42a3082c21 Add context to strings. Props nbachiyski. fixes #10738
git-svn-id: https://develop.svn.wordpress.org/trunk@12231 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 22:49:16 +00:00
Ryan Boren 61d89b7b39 Don't return extra permastructs if pretty permalinks not turned on. Props scribu. fixes #11061
git-svn-id: https://develop.svn.wordpress.org/trunk@12230 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 22:47:11 +00:00
Ryan Boren dd4f87da0d Fix custom taxonomy term links when using non-pretty permalinks. Props bookchiq. fixes #11179
git-svn-id: https://develop.svn.wordpress.org/trunk@12229 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 22:41:53 +00:00
Peter Westwood fffae7eb1f Reduce the size of the data returned by get_themes() by ~30% by reducing duplication.
git-svn-id: https://develop.svn.wordpress.org/trunk@12226 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 20:45:37 +00:00
Mark Jaquith fb2d04d68e Do not use the unreliable in_the_loop() when grabbing terms. fixes #11189
git-svn-id: https://develop.svn.wordpress.org/trunk@12224 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 19:42:52 +00:00
Ryan Boren e540e6b3ce Return if no comment queried
git-svn-id: https://develop.svn.wordpress.org/trunk@12223 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 17:58:11 +00:00
Ryan Boren c210190ec9 Fix var name typo
git-svn-id: https://develop.svn.wordpress.org/trunk@12222 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 17:55:23 +00:00
Ryan Boren d1190b5bd6 Make option_id primary. Add uniques for option_name and autoload. see #2699
git-svn-id: https://develop.svn.wordpress.org/trunk@12217 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 16:42:07 +00:00
Ryan Boren e6be89ee0a Avoid warning when parent template does not exist.
git-svn-id: https://develop.svn.wordpress.org/trunk@12216 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 16:35:17 +00:00
Andrew Ozz e14dc40aeb Fix removal of .form-invalid in IE, props aldenta, fixes #11181
git-svn-id: https://develop.svn.wordpress.org/trunk@12215 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 10:24:14 +00:00
Andrew Ozz 8066de0726 Check if $_SERVER['HTTP_ACCEPT_ENCODING'] is set before determining whether to compress scripts, props nacin, fixes #11169
git-svn-id: https://develop.svn.wordpress.org/trunk@12214 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 09:46:07 +00:00
Andrew Ozz 7c3f9cf02b Add sidebar descriptions to sidebar settings and widget admin screen, props jeremyclarke scribu, fixes #11157
git-svn-id: https://develop.svn.wordpress.org/trunk@12213 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 09:12:16 +00:00
Mark Jaquith c7759fd081 Pass some additional variables to post_image_html filter. props waltervos, scribu. fixes #11167
git-svn-id: https://develop.svn.wordpress.org/trunk@12211 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 22:09:00 +00:00
Ryan Boren 363c885bd4 Delete old magpie cache options. Props Denis-de-Bernardy. fixes #10592
git-svn-id: https://develop.svn.wordpress.org/trunk@12210 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 22:04:07 +00:00
Ryan Boren 161beb7f61 Don't destruct if WP_Error. Props scribu. fixes #11168
git-svn-id: https://develop.svn.wordpress.org/trunk@12209 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 21:52:38 +00:00
Ryan Boren 97f159fd2d Return if no post to avoid warnings
git-svn-id: https://develop.svn.wordpress.org/trunk@12208 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 21:04:09 +00:00
Peter Westwood 89a9762c42 Ensure WP_DEBUG is always defined and simplify the checks on it. Fixes #11090 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12207 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 08:22:49 +00:00
Mark Jaquith 12f588566f Do not destroy characters surrounding shortcodes in strip_shortcodes(). fixes #10326
git-svn-id: https://develop.svn.wordpress.org/trunk@12206 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 08:12:05 +00:00
Andrew Ozz 557d414f70 Let plugins predefine thickbox image vars, props aaroncampbell, fixes #6453
git-svn-id: https://develop.svn.wordpress.org/trunk@12205 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 00:19:55 +00:00
Ryan Boren 28338e0170 Deprecate make_url_footnote(). fixes #4968
git-svn-id: https://develop.svn.wordpress.org/trunk@12203 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 21:11:24 +00:00
Ryan Boren 428f0698c0 Fix undefined index notice in canonical. Props dd32. fixes #11057
git-svn-id: https://develop.svn.wordpress.org/trunk@12202 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 21:01:03 +00:00
Ryan Boren 76fdc4d91e Add translator comment. Props nbachiyski. fixes #10737
git-svn-id: https://develop.svn.wordpress.org/trunk@12201 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 20:54:38 +00:00
Ryan Boren 761aac294c Return null if no term queried. fixes #11112
git-svn-id: https://develop.svn.wordpress.org/trunk@12200 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 20:51:32 +00:00
Ryan Boren 56989f4f5c Allow 0xAD in URI attributes. Props nbachiyski. fixes #9823 #10859
git-svn-id: https://develop.svn.wordpress.org/trunk@12199 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 20:18:48 +00:00
Ryan Boren 6266cbaf3b Ue get_default_feed() for *_the_category_rss(). Props filosofo, peaceablewhale. fixes #5802
git-svn-id: https://develop.svn.wordpress.org/trunk@12197 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 16:27:36 +00:00
Ryan Boren 8565a52fb0 Remove unnecessary variable initialization. Props nbachiyski. fixes #10736
git-svn-id: https://develop.svn.wordpress.org/trunk@12194 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-16 22:44:59 +00:00
Ryan Boren cac2e59fda Force destruction of SimplePie objects for versions of PHP that don't release memory properly. Props arena, scribu. fixes #11074
git-svn-id: https://develop.svn.wordpress.org/trunk@12193 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-16 22:42:58 +00:00