Commit Graph

15897 Commits

Author SHA1 Message Date
Dion Hulse 6901f20e9b Use the correct variable name; Simpler static initialisation. Props hakre. See #11613 & #16978
git-svn-id: https://develop.svn.wordpress.org/trunk@17566 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-28 09:55:15 +00:00
Andrew Ozz d400b19f92 Handle error response in autosave_update_slug(), props nacin, fixes #16975
git-svn-id: https://develop.svn.wordpress.org/trunk@17565 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-27 20:09:09 +00:00
Andrew Nacin 43d4c448bf Initialize a variable. props boonebgorges, fixes #16977.
git-svn-id: https://develop.svn.wordpress.org/trunk@17564 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-27 19:46:18 +00:00
Dion Hulse fbb5ad3afc Correct logic for cURL Errors, add extra sanity protection in ::processHeaders to guard against null inputs. See #16236
git-svn-id: https://develop.svn.wordpress.org/trunk@17563 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-26 03:32:05 +00:00
Andrew Nacin 8df76a48c6 Bump readme system requirements. props duck_, see #16917.
git-svn-id: https://develop.svn.wordpress.org/trunk@17562 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-25 21:21:14 +00:00
Andrew Nacin 289a5e5c8f Bump update-core and readme for 3.2.
git-svn-id: https://develop.svn.wordpress.org/trunk@17561 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-25 21:14:46 +00:00
Andrew Ozz bf42a84fa0 Fix position of submenus when showing avatar, props johnjamesjacoby, see #16667 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17558 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-25 20:32:07 +00:00
Andrew Ozz 9c18de1484 Fix discrepancy in the nested loop in the Recent Comments dashboard widget, props ocean90, fixes #16846 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17556 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-25 20:12:32 +00:00
Dion Hulse ec8280cfd8 First run of introducing Stream-To-File for the WP_HTTP API. Reduces memory consumption during file downloads. Implemented in download_url() for upgraders. Props sivel. See #16236
git-svn-id: https://develop.svn.wordpress.org/trunk@17555 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-25 02:42:20 +00:00
Andrew Nacin a1822ad76c Change this string to one that already exists. props ericmann, fixes #16806.
git-svn-id: https://develop.svn.wordpress.org/trunk@17554 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-24 16:12:47 +00:00
Ryan Boren 19d8af83d3 Parse the meta query again if query vars change. Set a global query_vars_changed flag instead of doing multiple hash creation calls. Props greuben. see #16742 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17552 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-24 16:07:24 +00:00
Dion Hulse 3591957d49 Allow for array('redirection' => 0) to bypass WP_Error on redirects being encountered; Allows HEAD requests WITH 'redirection' > 0 specified at call time to follow redirections; Standardises on return values from all transports to act the same based on the Unit Tests. Fixes #16855
git-svn-id: https://develop.svn.wordpress.org/trunk@17551 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-24 05:18:34 +00:00
Dion Hulse 048fcd1cce Fix WP_HTTP to only make a request upon a working transport, as well as to allow Unit Testing. Removes the getTransport() & postTransport() methods as they're no longer needed, replaces them with a single _dispatch_request() method. Fixes #11613
git-svn-id: https://develop.svn.wordpress.org/trunk@17550 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-24 02:16:13 +00:00
Mark Jaquith 3395cc4a62 Prevent Notice if the author object is not set.
git-svn-id: https://develop.svn.wordpress.org/trunk@17548 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 21:25:35 +00:00
Ryan Boren 04aea0e128 Don't die inside db_connect() if connection fails. Let dead_db() handle it. fixes #16640 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17546 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 19:57:35 +00:00
Andrew Nacin fd76a68a2d Bail early in dynamic_sidebar() if there are no sidebars. fixes #14816.
git-svn-id: https://develop.svn.wordpress.org/trunk@17545 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 18:59:52 +00:00
Andrew Nacin 5fc7b13692 Send an associative array to the display_post_states filter. props greenshady, kawauso, fixes #15421.
git-svn-id: https://develop.svn.wordpress.org/trunk@17544 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 18:57:12 +00:00
Andrew Nacin 3697db55bc Don't show two 'Create Menu' buttons on nav-menus.php. fixes #16715.
git-svn-id: https://develop.svn.wordpress.org/trunk@17543 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 18:47:45 +00:00
Andrew Nacin 20b7808094 Document that the size parameter in image_downsize() can also be an array. props scribu, fixes #16263.
git-svn-id: https://develop.svn.wordpress.org/trunk@17542 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 18:46:38 +00:00
Andrew Nacin 04f55d16ff Reference proper function equivalents in deprecated.php. props pross, fixes #15253.
git-svn-id: https://develop.svn.wordpress.org/trunk@17541 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 18:44:07 +00:00
Andrew Nacin 4876de9bed Fix copypasta typo in docblock. props scribu, fixes #16384.
git-svn-id: https://develop.svn.wordpress.org/trunk@17540 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 18:42:59 +00:00
Andrew Nacin 711abb67bc Avoid functions.php from ever being treated as a page template. fixes #16689.
git-svn-id: https://develop.svn.wordpress.org/trunk@17539 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 18:40:52 +00:00
Andrew Nacin 21c2c70e25 Remove dead globals. props mitchoyoshitaka. fixes #16571.
git-svn-id: https://develop.svn.wordpress.org/trunk@17538 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 18:39:16 +00:00
Ryan Boren 43b0ccccbc Don't die for failed db connects during install. Props westi. fixes #16640 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17536 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 17:46:40 +00:00
Dion Hulse 615e0c5bc7 Prune PHP5 compat checks in WP_Http, WP_Http_Curl & WP_Http_Streams. Only removes pre PHP 5.2.4 conditional code. See #13915
git-svn-id: https://develop.svn.wordpress.org/trunk@17535 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 11:58:09 +00:00
Dion Hulse 1a22b56c53 Remove PHP4 based WP_Http_Fopen class. Props sivel for initial patch. See #16917 Fixes #13915
git-svn-id: https://develop.svn.wordpress.org/trunk@17534 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 11:35:41 +00:00
Ryan Boren a4d818978c Fix display of oversized custom user/site icons in the admin bar. Props jtsternberg, JohnONolan. see #16667 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17532 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-22 20:42:43 +00:00
Ryan Boren 42e432bd94 Avoid var name conflict in _get_meta_sql(). Fixes type var passed to get_meta_sql filter. Props Rahe, nacin. fixes #16825 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17530 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-22 20:35:47 +00:00
Ryan Boren 8cd811538e Add back compat fields to queried category objects. Props scribu, duck_. fixes #16857 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17528 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-22 20:27:45 +00:00
Ryan Boren 52cbde8270 Return false instead of WP_Error from get_term_by() if the term does not exist. Makes fetching a term by id consistent with slug and name. Props hakre. fixes #16464 #16717 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17526 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-22 20:06:38 +00:00
Dion Hulse 1359ecd06b Optimisations to WP_Filesystem; Pass known information to called functions. Props aldenta (John Ford) for investigation and patch. See #10913
git-svn-id: https://develop.svn.wordpress.org/trunk@17525 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-22 00:04:15 +00:00
Andrew Nacin 1eba25a104 I before E, except after C. props jkudish, fixes #16915.
git-svn-id: https://develop.svn.wordpress.org/trunk@17524 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-21 23:44:30 +00:00
Mark Jaquith 97587c5374 Bump PHP requirement to 5.2.4. Bump MySQL requirement to 5.0. see #16917
git-svn-id: https://develop.svn.wordpress.org/trunk@17523 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-21 18:30:56 +00:00
Andrew Ozz 80e0029a13 Allow JS functions in the TinyMCE init array, fixes #15596
git-svn-id: https://develop.svn.wordpress.org/trunk@17522 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-17 22:01:40 +00:00
Andrew Nacin 04bc9c01cb Add TinyMCE version number. props SergeyBiryukov, fixes #16674 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@17521 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-10 18:47:44 +00:00
Mark Jaquith 0984bae175 Correctly handle PATHINFO CPTs and CTs that specify with_front=false. fixes #16807 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17518 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-10 04:24:48 +00:00
Mark Jaquith d79937e6a3 Make plugin header parsing slightly more liberal (like it was in 3.0), to allow for PHPdoc style headers. props miqrogroove. fixes #16751 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17516 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-09 05:46:58 +00:00
Mark Jaquith f490877ab4 Use with_front properly when creating rules for CPT archive pages. props scribu. fixes #16626 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17514 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-09 05:40:52 +00:00
Mark Jaquith c15c6f2b23 Prevent double index.php preprend on PATHINFO custom taxonomy permalinks. Proper use of with_front. props greuben. fixes #16918. fixes #16622. see #15813. see #12659. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17512 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-09 05:18:45 +00:00
Ryan Boren 652ac55480 Anchor network and user admins at the network domain and path rather than at the main site. Makes the redirects consistent with network_admin_url(). fixes #16652 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17510 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-08 22:56:12 +00:00
Ryan Boren 65ecd2daaa Don't show admin bar on login screen. Props nacin. fixes #16588 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17508 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-08 22:48:05 +00:00
Ryan Boren b08c4772fa Check for WP_Error return from get_term_by(). Props fabifott, kawauso, nacin. fixes #16717 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17506 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-08 22:06:35 +00:00
Ryan Boren 13058d536e Don't perform taxonomy queries for single post requests. Props scribu. fixes #16793 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17504 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-08 22:01:19 +00:00
Ryan Boren 4cb526a5b1 Mark theme preview iframe as a preview_iframe so that the admin bar doesn't show. Props tetele. fixes #16659 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17502 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-08 21:54:05 +00:00
Ryan Boren 63f4028ba5 Don't double process the tag query var. Props scribu. fixes #16730 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17500 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-03 16:11:02 +00:00
Ryan Boren 0e84a66e49 Do not do canonical redirects for unregistered feeds. fixes #16704 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17498 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-03 15:55:24 +00:00
Andrew Nacin b905438706 Avoid mangling the current site path variable with the search query. props greuben, fixes #16720 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@17496 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-02 18:33:55 +00:00
Mark Jaquith 1ca947074d Revert to the cat=X permalinks from 3.0 and earlier. props dd32. fixes #16644 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17494 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-02 17:29:11 +00:00
Ryan Boren c292114f91 Do not perform canonical redirects for IISto avoid redirect loops on some IIS setups. fixes #16639 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17492 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-02 15:33:11 +00:00
Mark Jaquith 9c2707c3e7 Reparse the taxonomy query if query vars change. fixes #16622 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17489 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-02 04:10:21 +00:00