ryan
810bf31f83
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: http://svn.automattic.com/wordpress/trunk@12523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 18:35:12 +00:00
ryan
1f36d7eeb9
Upgrade SWFobject JS to 2.2. Props niallkennedy. fixes #11109
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 16:44:46 +00:00
ryan
8c799f9ad1
Update phpass to 0.2. Props hakre. fixes #10727
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 16:31:57 +00:00
westi
05e19b1cde
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: http://svn.automattic.com/wordpress/trunk@12520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 16:23:40 +00:00
ryan
b9dfd1fb4a
Check upload_tmp_dir ini settings for a usable temporary path. Props Denis-de-Bernardy. fixes #6699
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 16:22:26 +00:00
ryan
adb37768c6
Add more orderby and select options to get_comments. Props filosofo. fixes #10668
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 16:16:13 +00:00
westi
f83b446117
Notice fix. Only return variable references by reference.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 16:03:04 +00:00
westi
0aaf0d83af
Make the meaning of is_home() more explicit.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 15:44:57 +00:00
ryan
cedfa0181b
Use array calling style. Props Denis-de-Bernardy. see #6647
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 15:31:02 +00:00
westi
0b517ae013
Extend the_modified_date() to support before/after/echo. Fixes #11255 props ShaneF.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 15:22:08 +00:00
ryan
354607036c
Remove unneeded quotes around vars. Props johnbillion. fixes #10245
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 15:16:53 +00:00
ryan
ca9d676eef
Sanitize only string and numeric fields in the user object. Props filosofo hakre. fixes #11509 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 15:02:06 +00:00
ryan
36d9a3677e
Cleanup clean_term_cache(). Props Denis-de-Bernardy. see #11530
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 14:37:21 +00:00
ryan
e7d9a6913a
Add hierarchical taxonomy handling to wp_set_post_terms(). Props prettyboymp. see #10122
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 14:25:09 +00:00
ryan
95835a693a
Do not use deprecated Etc timezones. Props miqrogroove. fixes #11558 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 14:16:36 +00:00
westi
10a5ba6622
Wrap the content of <wp:meta_value></wp:meta_value> in CDATA for WXR exports. Fixes #9633 props hakre.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 13:03:34 +00:00
westi
a7618f99b1
Merging changes from upstream GlotPress revision [351]. Remove unused local variable.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 11:20:18 +00:00
westi
b47a03278e
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: http://svn.automattic.com/wordpress/trunk@12504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 11:00:29 +00:00
westi
aec63aa377
Improve sanitize_text_field() some more so that we don't leave extra whitespace after stripping octets. Fixes #11573 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 09:52:48 +00:00
westi
cb6e576f80
Set svn:eol-style on new files.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 09:24:01 +00:00
westi
7ec819d925
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: http://svn.automattic.com/wordpress/trunk@12500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 09:15:13 +00:00
azaozz
2128c3f4db
Fix sanitize_text_field() issue with some UTF-8 characters, fixes #11528 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 09:10:26 +00:00
ryan
8837d88bfe
Validation fix. Props Simek. fixes #11560 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 17:15:54 +00:00
ryan
819427dd05
Bump wp-admin css ver. see #11502
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 17:12:50 +00:00
westi
fb04390c01
Use maybe_unserialized on all post_meta values on import to ensure we don't end up with double serialized data in the database. Fixes #10619 props znarfor.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 17:05:49 +00:00
ryan
a858edf405
Add escaping to _wp_comment_row(). Props Denis-de-Bernardy. fixes #11492 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 17:00:54 +00:00
ryan
137705d20b
Update json lib. Use encodeUnsafe in our json wrapper. Props nacin. fixes #11537 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 16:49:35 +00:00
ryan
4bbaabff55
Increase download_url() timeout to 5 minutes. fixes #11551 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 16:42:30 +00:00
westi
7201bc515e
Add some hooks to wp-app.php to allow a plugin to extend the data returned. Fixes #8826 props znarfor.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 15:57:33 +00:00
westi
bc8237d349
Add is_comment_feed() to expose ->is_comment_feed. Fixes #10827 props scribu.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 14:04:14 +00:00
westi
41dd7d25b7
Revert [12485] as it breaks the functionality of is_serialized() and make more strings appear serialized. See #9930 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 13:42:58 +00:00
westi
9189856169
Much improved is_serialized() which catches serialized doubles. Fixes #9930 props vladimir_kolesnikov and dd32.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 13:10:06 +00:00
westi
b0356653a8
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: http://svn.automattic.com/wordpress/trunk@12484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 12:48:40 +00:00
westi
1a097b6479
Updated phpDoc for wp-admin/includes/post.php . Fixes #11198 based on a patch from Simek.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 12:25:15 +00:00
westi
bcaffad604
Fix spelling mistake in tooltip for image rotation button. Fixes #11488 for trunk props computerwiz908.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 12:02:51 +00:00
westi
736315e0d5
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: http://svn.automattic.com/wordpress/trunk@12480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 11:49:22 +00:00
westi
acd41194ff
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: http://svn.automattic.com/wordpress/trunk@12479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-22 11:42:46 +00:00
ryan
e11e569611
Don't display plugin compatibility info if the new WordPress version is the same as the current one. For example for RC/Beta upgrades. Props westi. fixes #11525 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-21 23:54:52 +00:00
ryan
07fd78ef79
Make sure we have a SimplePie object before calling destruct. Props scribu. see #11518
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-21 23:36:12 +00:00
ryan
5f20b65114
Don't use CURLOPT_CONNECTTIMEOUT_MS or CURLOPT_TIMEOUT_MS due to bugginess. fixes #11505 see #11499
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-21 19:34:38 +00:00
westi
95b7e055ce
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: http://svn.automattic.com/wordpress/trunk@12470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-21 15:35:00 +00:00
westi
cd4fd77beb
Fix some notices in the importer when importing files from old WordPress versions or not fetching attachments. See #11484 .
...
Ensure that we check that a user is created for the username we specify and otherwise fallback to the current user
See #10319 .
git-svn-id: http://svn.automattic.com/wordpress/trunk@12469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-21 15:26:57 +00:00
westi
c77de6f941
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: http://svn.automattic.com/wordpress/trunk@12468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-21 15:25:00 +00:00
ryan
b6e812db8c
Remove unused var. Props miqrogroove. fixes #11371
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-21 09:11:28 +00:00
ryan
8bc1faa751
Fix typos. Props gautam2011. fixes #11529 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-21 08:58:58 +00:00
ryan
7b00fcb9f6
Improve do_action performance. Make an associative array. Props koopersmith. fixes #10561
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-21 08:47:34 +00:00
azaozz
9fa732df33
Round back the buttons, see #11502
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-20 05:32:52 +00:00
westi
53dfdc063b
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: http://svn.automattic.com/wordpress/trunk@12462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-19 11:47:16 +00:00
westi
e51aa59549
Ensure that bulk comment actions do not remove spaces from search terms.
...
Also refactors comment bulk action redirect url building to be consistent with other operations.
Fixes #11471 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-19 11:30:54 +00:00
westi
7d31610f6f
Improve like_escape to also escape '\'. Fixes #10041 props miau_jp and Denis-de-Bernardy.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-19 11:07:16 +00:00