Commit Graph

7568 Commits

Author SHA1 Message Date
Andrew Nacin ce4b9ff07a IE8 fixes for internal linking. props koopersmith, see #15485, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16500 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-20 02:02:37 +00:00
Ryan Boren 069c259dcf should not be an array of arrays. Props nickmomrik
git-svn-id: https://develop.svn.wordpress.org/trunk@16497 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 23:58:29 +00:00
Mark Jaquith 103bde3e19 Do not set is_category/is_tax/is_tax for is_singular requests. props mtekk. fixes #15487
git-svn-id: https://develop.svn.wordpress.org/trunk@16495 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 19:25:53 +00:00
Andrew Nacin fcf95a9788 Bump wplink.
git-svn-id: https://develop.svn.wordpress.org/trunk@16493 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 19:02:57 +00:00
Ryan Boren 7c8157ed36 Fill http by default. Props koopersmith. see #11420
git-svn-id: https://develop.svn.wordpress.org/trunk@16492 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 18:59:43 +00:00
Ryan Boren 04b9ae5ae7 Clear fields on refresh. Props koopersmith. see #11420
git-svn-id: https://develop.svn.wordpress.org/trunk@16491 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 18:54:03 +00:00
Ryan Boren b9113234eb wplink IE fixes. Props koopersmith. see #15485
git-svn-id: https://develop.svn.wordpress.org/trunk@16490 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 18:49:12 +00:00
Ryan Boren c7fd7b68d3 Remove debug cruft.
git-svn-id: https://develop.svn.wordpress.org/trunk@16488 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 17:10:35 +00:00
Ryan Boren 8ff8013fe7 Populate post term relationship cache in get_the_terms(). Restores caching lost when we moved away from get_the_category(). see #15407
git-svn-id: https://develop.svn.wordpress.org/trunk@16487 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 17:09:21 +00:00
scribu 90e783e1fe Use event delegation in wp-lists.js. Fixes #15488
git-svn-id: https://develop.svn.wordpress.org/trunk@16486 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 16:11:56 +00:00
Joseph Scott a0c3d2ef0e Expose post format details in XML-RPC:
- New method: wp.getPostFormats
- New field in methods dealing with posts: wp_post_format

props ericmann, fixes #15405



git-svn-id: https://develop.svn.wordpress.org/trunk@16484 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 13:57:05 +00:00
scribu 90de63b3ad Force GROUP BY when there's a tax query. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16482 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 09:17:59 +00:00
Andrew Nacin f86af64e5f Internal linking cleanups. Fix combination of pagination and searching. Add a margin of error (ha, get it?) to triggering the river. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16479 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 05:31:07 +00:00
Ryan Boren 0d0edecd79 Return false if empty cat passed. Restores old behavior.
git-svn-id: https://develop.svn.wordpress.org/trunk@16478 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 05:06:48 +00:00
Mark Jaquith 94737b9d3b Use "default" as the key (not "0") for the default post format string in the translation array. props josephscott
git-svn-id: https://develop.svn.wordpress.org/trunk@16477 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 04:32:33 +00:00
Ryan Boren 18da5392f9 Link to edit profile screen within same admin if in network or user admin.
git-svn-id: https://develop.svn.wordpress.org/trunk@16475 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 23:07:59 +00:00
scribu 9782ea0c5c Fix user pagination. Props duck_. Fixes #15479
git-svn-id: https://develop.svn.wordpress.org/trunk@16473 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 22:51:36 +00:00
scribu 62b4cd2ec7 Make entire sortable header clickable. Props batmoo. Fixes #15352
git-svn-id: https://develop.svn.wordpress.org/trunk@16472 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 21:39:22 +00:00
Andrew Nacin 98362127ad s/flush/flush_rules/ in a comment. fixes #15474, props hakre.
git-svn-id: https://develop.svn.wordpress.org/trunk@16470 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 19:21:54 +00:00
Andrew Nacin ccea27cbe7 More param fixes, props duck_. see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@16469 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 19:12:48 +00:00
Andrew Nacin b9ca2cd037 s/ui-dialog/wp-dialog/ in our dialog styles. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16468 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 19:07:59 +00:00
Mark Jaquith 29b90f079d Exclude term exclusions even if they are also inclusions. props foofy, scribu. see #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16467 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 19:04:47 +00:00
scribu 0e87356092 Clarify doc-block for wp_delete_object_term_relationships(). Props simonwheatley. Fixes #15472
git-svn-id: https://develop.svn.wordpress.org/trunk@16466 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 18:46:41 +00:00
Ryan Boren bc279e502e Script bump
git-svn-id: https://develop.svn.wordpress.org/trunk@16464 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 14:23:05 +00:00
Andrew Nacin 845832a767 Second half of [16462]. props duck_. see #15308.
git-svn-id: https://develop.svn.wordpress.org/trunk@16463 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 09:51:50 +00:00
Andrew Nacin 3161d152bf Clean up logic when selecting post types for the admin bar content drop-down. see #15308.
git-svn-id: https://develop.svn.wordpress.org/trunk@16462 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 09:01:07 +00:00
Andrew Nacin 1c4c2a2ad9 Kill the background from the default jQuery UI dialog theme. We'll get this from .wp-dialog in the colors stylesheets. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16461 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 08:50:20 +00:00
Andrew Nacin c7e2a27492 More svn add. see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16460 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 08:20:19 +00:00
Andrew Nacin 7cccd5715f Third pass on internal linking preloading. Or, what I left out of the second pass commit. see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16459 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 07:59:05 +00:00
Andrew Nacin 7554d8610b Second pass on internal linking preloading. Adjust styles, svn add the wpdialogs plugin, adjust files and docs. see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16458 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 07:56:47 +00:00
Andrew Nacin 655df3af90 Ludicrous speed for internal linking. First pass. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16457 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 06:22:13 +00:00
Andrew Nacin 1a3a72a224 Style the on-hover state for collapsed admin menus in the blue theme. props PeteMall, fixes #15462.
git-svn-id: https://develop.svn.wordpress.org/trunk@16451 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 04:29:27 +00:00
Andrew Nacin 5183bee738 WP_Http_ExtHTTP variable fix. Don't pass an empty array to http_request, props mdawaffe, fixes #13730.
git-svn-id: https://develop.svn.wordpress.org/trunk@16450 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 03:34:28 +00:00
Andrew Nacin ba37b82b10 Allow is_feed() to drill down the feed being checked. props johnbillion for initial patch, fixes #15460.
git-svn-id: https://develop.svn.wordpress.org/trunk@16447 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 03:19:08 +00:00
Andrew Nacin 9437b31707 Add list_pages filter. props johnjamesjacoby, fixes #13668.
git-svn-id: https://develop.svn.wordpress.org/trunk@16446 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 02:23:05 +00:00
Andrew Nacin 892760ad7a When inserting an image via oEmbed, wrap it in a link. props MarkJaquith, fixes #14945.
git-svn-id: https://develop.svn.wordpress.org/trunk@16444 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 02:17:13 +00:00
Ryan Boren fa33255b56 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@16439 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 18:48:27 +00:00
Ryan Boren 4b33a0e9c4 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@16438 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 18:47:34 +00:00
Ryan Boren f721e075e6 Use wp_cache_add() instead of wp_cache_set() in update_meta_cache(). fixes #15452
git-svn-id: https://develop.svn.wordpress.org/trunk@16437 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 18:25:42 +00:00
Mark Jaquith eb981f0b6c admin-bar.js is stale. Bumping the version number.
git-svn-id: https://develop.svn.wordpress.org/trunk@16436 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 17:55:09 +00:00
Mark Jaquith 064b0f732b Make admin bar update bubbles DARK text on LIGHT background, per janeforshort. see #15308
git-svn-id: https://develop.svn.wordpress.org/trunk@16435 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 17:35:24 +00:00
Mark Jaquith ae422f43ab Add admin-bar class to body_class() if the admin bar is showing. fixes #15455
git-svn-id: https://develop.svn.wordpress.org/trunk@16432 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 17:21:45 +00:00
Mark Jaquith 55e0256967 esc_textarea() and application for obvious textarea escaping. props alexkingorg. fixes #15454
git-svn-id: https://develop.svn.wordpress.org/trunk@16431 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 17:12:01 +00:00
Andrew Nacin b9b0431d29 get_tag_link and get_category_link can also return WP_Error. fixes #15449.
git-svn-id: https://develop.svn.wordpress.org/trunk@16430 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 17:10:50 +00:00
scribu 5705b3ca9c Differentiate between localized and raw total pages. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16429 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 17:03:27 +00:00
Mark Jaquith 49b8323bad The path goes INSIDE home_url(). fixes #15413
git-svn-id: https://develop.svn.wordpress.org/trunk@16425 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 16:38:28 +00:00
Ryan Boren 81ae3cb21e Register the default theme dir in wp-settings.php so that it is registered even when get_themes() doesn't run. Fix counting of theme dirs. Add option to get_raw_theme_root() to disregard the current theme root cache. see #14911
git-svn-id: https://develop.svn.wordpress.org/trunk@16424 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 16:11:44 +00:00
scribu 3e01f9a81d Fix ambiguous column error. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16423 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 12:33:32 +00:00
Andrew Nacin b0abda23b6 Don't check post_type_supports in map_meta_cap. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@16422 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 06:21:34 +00:00
Andrew Nacin 8fe83c252a Fix the screen options sprite in RTL. Also compress and bump for previous commits. see #15207.
git-svn-id: https://develop.svn.wordpress.org/trunk@16419 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 04:52:01 +00:00
Andrew Nacin 5c5d36c422 Finalize conflicts from [16136]. Final pass on wp-admin css cleanup. props JohnONolan, fixes #14770.
git-svn-id: https://develop.svn.wordpress.org/trunk@16415 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 03:30:27 +00:00
scribu 1298668d9a Re-introduce ->tax_query as a read-only var. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16414 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 02:04:08 +00:00
scribu 92fae02550 Optimize get_tax_sql(). See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16413 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 01:56:01 +00:00
scribu 26f88f4b0f Deprecate update_category_cache(). Fixes #15446
git-svn-id: https://develop.svn.wordpress.org/trunk@16412 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 00:56:00 +00:00
Andrew Nacin 3b115a7ec5 Fix arin whois link. props ozh. @todo consider its removal. see #15281.
git-svn-id: https://develop.svn.wordpress.org/trunk@16411 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 00:54:22 +00:00
scribu a4cd0df78c Minor get_meta_sql() cleanup. See #9124
git-svn-id: https://develop.svn.wordpress.org/trunk@16410 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 00:27:34 +00:00
Andrew Nacin 32069ead9d Revert changes to wptexturize() until test cases pass. Reverts [16280], [16378]. see #4539 and #15241.
git-svn-id: https://develop.svn.wordpress.org/trunk@16409 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 22:18:48 +00:00
Andrew Nacin e8ea01b4dc More updates to post.js. see [16248].
git-svn-id: https://develop.svn.wordpress.org/trunk@16408 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 22:13:17 +00:00
Andrew Nacin fde451647a Improve internal linking river feedback. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16407 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 18:30:34 +00:00
Andrew Ozz 9691518b51 Revert the TinyMCE spellchecker to its old behaviour, update to tinymce_spellchecker_php_2_0_3, fixes #15268
git-svn-id: https://develop.svn.wordpress.org/trunk@16405 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 17:30:18 +00:00
scribu 9242c290b3 Revert [16402] outright. Causes issues with themes. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16404 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 16:36:20 +00:00
scribu 373717aeba Revert taxonomy.php part of [16402]. Not fully backed yet. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16403 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 16:24:14 +00:00
scribu 93b63b771c Don't pollute the 'tax_query' query var. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16402 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 16:22:09 +00:00
Andrew Nacin 6dacb11d46 Use user_trailingslashit in get_author_posts_url(). fixes #15441.
git-svn-id: https://develop.svn.wordpress.org/trunk@16401 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 16:09:46 +00:00
scribu 43a3b3b65d Update some @since tags. Props demetris. Fixes #15438
git-svn-id: https://develop.svn.wordpress.org/trunk@16400 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 13:16:13 +00:00
Andrew Nacin 6183d245f9 Internal linking functionality updates. Scrap pagination for a river of results. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16399 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 05:11:41 +00:00
Andrew Nacin 7851debeae Internal linking UI updates. see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16398 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 04:25:14 +00:00
Ryan Boren 4a3b49bb5d Minify wplink js. see #11420
git-svn-id: https://develop.svn.wordpress.org/trunk@16397 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 01:21:18 +00:00
Andrew Nacin 8de3626c6e Bump wplink version. see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16396 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 00:47:22 +00:00
Andrew Nacin 55f599d330 Properly force variable to an array. props Viper007Bond, fixes #15407.
git-svn-id: https://develop.svn.wordpress.org/trunk@16395 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 00:19:51 +00:00
Andrew Ozz 348236aeb7 Remove invalid parent paragraph when pasting in the visual editor or switching visual to HTML and back, keep multiple empty lines in a <pre> tag, fixes #15095 fixes #15367
git-svn-id: https://develop.svn.wordpress.org/trunk@16394 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 23:57:27 +00:00
Andrew Nacin f5dea49c4a Next pass on internal linking. Functional, but needs styling. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16393 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 23:48:24 +00:00
Nikolay Bachiyski 77254fc657 Fallback to only RTL attributes in wp_die()'s HTML tag if it's very early in the execution. Fixes #6132. Props RanYanivHartstein and nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@16392 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 20:13:05 +00:00
Ryan Boren 72faeb1d34 Minify wplink js. see #11420
git-svn-id: https://develop.svn.wordpress.org/trunk@16391 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 18:42:49 +00:00
Ryan Boren 48e057af81 Auto focus URL field. see #11420
git-svn-id: https://develop.svn.wordpress.org/trunk@16390 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 18:40:34 +00:00
Andrew Nacin 76a7d50069 Sanity cast. see #15192.
git-svn-id: https://develop.svn.wordpress.org/trunk@16389 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 18:06:57 +00:00
Andrew Nacin 0b7f397e9b set_post_thumbnail(). fixes #15192.
git-svn-id: https://develop.svn.wordpress.org/trunk@16388 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 17:59:25 +00:00
Andrew Nacin 682b6a20b2 capability_type = page and no custom caps should also kick on map_meta_cap. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@16387 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 17:11:34 +00:00
scribu ecad0a9016 Revert [16384]. See #15433
git-svn-id: https://develop.svn.wordpress.org/trunk@16385 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 15:23:04 +00:00
scribu 4c4e5ed0df Ignore 'name' qv if 'p' qv is set. Fixes #15433
git-svn-id: https://develop.svn.wordpress.org/trunk@16384 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 13:33:16 +00:00
scribu 688dda0b1d Fix get_tax_sql() docs. Props Viper007Bond. Fixes #15431
git-svn-id: https://develop.svn.wordpress.org/trunk@16382 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 11:24:55 +00:00
scribu e72a75d2d6 Set 'taxonomy' and 'term' query vars for back-compat. Fixes #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@16381 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 10:51:39 +00:00
scribu ed4788b696 Re-parse tax query just before calling get_tax_sql(). Fixes #15161
git-svn-id: https://develop.svn.wordpress.org/trunk@16380 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 10:11:25 +00:00
scribu 3d5162ecc3 Better error handling in get_meta_sql(). Props Viper007Bond. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16379 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 10:02:39 +00:00
Peter Westwood 9b80ab8ce5 Fix regression in wptexturize with single quotes when used for contraction. See #15241 props norbertm.
git-svn-id: https://develop.svn.wordpress.org/trunk@16378 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 08:52:36 +00:00
Andrew Nacin 8d9b2cd2b3 Properly check, initialize, or cast a number of variables. props ChenHui. see #14642.
git-svn-id: https://develop.svn.wordpress.org/trunk@16377 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 06:38:10 +00:00
scribu a6568c3de8 Make submitted-on a class instead of an id. Fixes #15426
git-svn-id: https://develop.svn.wordpress.org/trunk@16375 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-14 20:28:55 +00:00
scribu 2b895dda71 Introduce WP_List_Table::get_column_count() and take care of update notice <tr>. Props ocean90 for initial patch. Fixes #15318
git-svn-id: https://develop.svn.wordpress.org/trunk@16368 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-14 18:00:09 +00:00
scribu 32b416f959 Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422
git-svn-id: https://develop.svn.wordpress.org/trunk@16365 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-14 15:50:02 +00:00
scribu cd7d748a0e Fix empty query vars being passed as 'true' instead of ''. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16363 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-14 00:48:30 +00:00
scribu c38380fd8f Update doc for WP_Query::post. Fixes #15105
git-svn-id: https://develop.svn.wordpress.org/trunk@16360 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 23:32:18 +00:00
scribu cf7f2d92b4 Use wp_start_object_cache() in switch_to_blog(). Props prettyboymp. Fixes #15361
git-svn-id: https://develop.svn.wordpress.org/trunk@16359 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 23:11:50 +00:00
scribu 3d1e3fc25f Add colon after Upload/Insert. Fixes #14810
git-svn-id: https://develop.svn.wordpress.org/trunk@16358 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 22:52:51 +00:00
scribu 9967d9da2a Always apply comment_text filter in check_comment(). Props hakre. Fixes #14680
git-svn-id: https://develop.svn.wordpress.org/trunk@16357 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 22:30:36 +00:00
scribu a8160ed916 Kill WP_Object_Query. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16353 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 18:32:43 +00:00
scribu 6daedd550c Revert most of [16018]. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16352 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 18:26:15 +00:00
scribu e19c83933a Split get_search_sql(). See #15170. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16351 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 18:18:45 +00:00
scribu 4ffac80fc4 Prevent horizontal scrollbar. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16344 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 15:33:12 +00:00
Andrew Nacin 7f4e354bd1 Move cast to within array_keys to prevent warning when get_the_terms returns false. see #15407.
git-svn-id: https://develop.svn.wordpress.org/trunk@16343 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 15:32:20 +00:00
scribu a2dfe18dfd Add 'get_the_terms' filter. Props filosofo. Fixes #15410
git-svn-id: https://develop.svn.wordpress.org/trunk@16342 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 14:08:27 +00:00
Andrew Nacin 958d135e11 Escape the class arg in wp_list_categories. props hakre, fixes #11514.
git-svn-id: https://develop.svn.wordpress.org/trunk@16341 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 11:06:26 +00:00
Andrew Nacin 200eefec46 Use square brackets instead of braces for string access. props hakre, fixes #13900.
git-svn-id: https://develop.svn.wordpress.org/trunk@16340 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 09:53:55 +00:00
Andrew Nacin 305fbe129d Only a static class method or function can be used in an uninstall hook. props scribu, fixes #13786.
git-svn-id: https://develop.svn.wordpress.org/trunk@16339 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 09:45:57 +00:00
Andrew Nacin 812c44072a Set map_meta_cap to true when capability_type = post and no custom caps are specified. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@16338 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 08:40:38 +00:00
Peter Westwood f8f48b0f24 Revert [16320] and [16321] for now. Breaks things
git-svn-id: https://develop.svn.wordpress.org/trunk@16336 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 22:44:16 +00:00
Peter Westwood b08df21c26 Revert most of [16332] - renaming and deprecating a commonly used function is silly. Improving it is good. Fixes #15407.
git-svn-id: https://develop.svn.wordpress.org/trunk@16334 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 21:53:15 +00:00
scribu 11f20d737c Replace get_the_category() with get_the_categories(). Props filosofo. Fixes #15407
git-svn-id: https://develop.svn.wordpress.org/trunk@16332 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 20:05:37 +00:00
scribu 9f86bb7104 Don't use deprecated category properties. Props filosofo. Fixes #15408
git-svn-id: https://develop.svn.wordpress.org/trunk@16331 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 18:40:51 +00:00
Andrew Nacin aa9d1494e6 Self-close embed tag for googlevideo embed handler. props pross, fixes #14230.
git-svn-id: https://develop.svn.wordpress.org/trunk@16323 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 11:17:35 +00:00
Andrew Nacin f75f0aee7f Only register post_format taxonomy to posts. see #15396, #14746.
git-svn-id: https://develop.svn.wordpress.org/trunk@16322 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 10:58:58 +00:00
Andrew Nacin 92b8c22e03 Only mysql_free_result if we have a valid resource, and remove error suppression there. see #15402.
git-svn-id: https://develop.svn.wordpress.org/trunk@16321 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 10:40:43 +00:00
Andrew Nacin 9404ce9a12 Memory usage and execution improvements in wpdb. Store and work with resources directly, rather than full copies of results. Plugins which incorrectly used wpdb->last_result (a private property) will need to shift to wpdb->get_results() with no \$query. Magic getter is introduced for back compat when using PHP5. props joelhardi, fixes #12257.
git-svn-id: https://develop.svn.wordpress.org/trunk@16320 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 10:15:18 +00:00
Andrew Nacin 8d5463366a Use term cache in get_post_format() to save a boatload of queries. see #15396.
git-svn-id: https://develop.svn.wordpress.org/trunk@16319 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 09:49:34 +00:00
Andrew Nacin 46efef4555 jQuery 1.4.4. props demetris, fixes #15201, #15227.
git-svn-id: https://develop.svn.wordpress.org/trunk@16318 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 07:13:11 +00:00
Andrew Nacin f3a332a13c Typo fix. see #14424.
git-svn-id: https://develop.svn.wordpress.org/trunk@16317 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 07:04:34 +00:00
Mark Jaquith d3684a509d Add checks for WP_Error. props ptahdunbar. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16315 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 04:10:56 +00:00
Mark Jaquith 647422ad33 Switch to radio boxes for Post Format picking. Saves a click. Maybe we should do this with Post Status as well. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16314 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-12 04:05:33 +00:00
Andrew Nacin d8c91db1f4 Remove more create_function calls. props huichen, see #14424.
git-svn-id: https://develop.svn.wordpress.org/trunk@16313 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 22:50:36 +00:00
Andrew Nacin 21a38007d8 Remove old header/footer link active state. props dremeda, fixes #14487.
git-svn-id: https://develop.svn.wordpress.org/trunk@16311 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 22:17:11 +00:00
Ryan Boren e4983b968e Admin bar fixes. Props ocean90. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16310 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 20:02:52 +00:00
Ryan Boren d68bd6002a Register admin menus against admin_bar_menu action to be consistent with other menu hooks. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16309 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 19:11:12 +00:00
Ryan Boren c54708d203 Make the My Sites menu items use admin_url() instead of hardcoding the url. Props caesarsgrunt. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@16308 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 18:48:38 +00:00
Ryan Boren 06513139e7 phpdoc fixes. Props hakre. fixes #12526
git-svn-id: https://develop.svn.wordpress.org/trunk@16307 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 17:02:14 +00:00
Ryan Boren 994d8ecab8 Farbtastic 1.3u. Props flashingcursor. fixes #14707
git-svn-id: https://develop.svn.wordpress.org/trunk@16305 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 16:34:22 +00:00
Andrew Nacin 57ad813bf4 Don't notify the author when they posted or moderated the comment. fixes #12774.
git-svn-id: https://develop.svn.wordpress.org/trunk@16304 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 16:28:49 +00:00
Ryan Boren 8ad934c85d Prevent stomping of global. Props prettyboymp. fixes #13945
git-svn-id: https://develop.svn.wordpress.org/trunk@16303 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 16:22:18 +00:00
Ryan Boren 987bf4663f Admin bar tweaks. Props filosofo. see #15308
git-svn-id: https://develop.svn.wordpress.org/trunk@16302 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 16:19:25 +00:00
Ryan Boren cb3030f582 Admin bar tweaks. Props filosofo. see #15308
git-svn-id: https://develop.svn.wordpress.org/trunk@16301 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 16:19:14 +00:00
Ryan Boren c79e13144c Faster is_serialized(). Props duck_, hakre, Denis-de-Bernardy. see #14429
git-svn-id: https://develop.svn.wordpress.org/trunk@16300 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 16:10:16 +00:00
Ryan Boren d0f30f75e5 Return false if upload_space_check_disabled is true in upload_is_user_over_quota(). Props SergeyBiryukov. fixes #14121
git-svn-id: https://develop.svn.wordpress.org/trunk@16299 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 16:03:51 +00:00
Peter Westwood afbd46517a Don't show duff links if someone decides that they want the admin bar for all users - even those who are logged out.
git-svn-id: https://develop.svn.wordpress.org/trunk@16291 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 11:49:37 +00:00
Peter Westwood a91abd41d8 Strip back the stats in the memory based object cache to something less verbose and useless.
git-svn-id: https://develop.svn.wordpress.org/trunk@16288 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 10:55:06 +00:00
Peter Westwood 06bf2f9e66 Link the shortlink button to the shortlink. Props caesarsgrunt see #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@16287 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 10:24:56 +00:00
scribu f337bb1b86 Add context to get_meta_sql(). See #15018
git-svn-id: https://develop.svn.wordpress.org/trunk@16286 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 10:06:05 +00:00
Peter Westwood ea7bd69745 Generate Human Readable passwords as they are much more userfriendly. Fixes #13324 props Otto42.
git-svn-id: https://develop.svn.wordpress.org/trunk@16284 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 23:31:54 +00:00
Peter Westwood be170fde65 Add support for ID style classes in get_body_class(). Fixes #12397 props filosofo
git-svn-id: https://develop.svn.wordpress.org/trunk@16283 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 22:07:07 +00:00
Peter Westwood 6b1be702c4 Move the l10n helper function into a seperate js file so we can always output it first.
Fixes #15124.

git-svn-id: https://develop.svn.wordpress.org/trunk@16282 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 21:53:30 +00:00
Peter Westwood 4a03447530 Improved RegEx for quote matching in wptexturize. Fixes #4539 and #15241 props norbertm.
git-svn-id: https://develop.svn.wordpress.org/trunk@16280 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 19:23:57 +00:00
Peter Westwood 06c7e6ed40 Don't capture the pesky trailing punctuation. Fixes #14993 props filosofo
git-svn-id: https://develop.svn.wordpress.org/trunk@16279 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 17:47:46 +00:00
Andrew Nacin d50013b957 Ensure we have a valid post type object when checking for has_archive. props filosofo, fixes #15364.
git-svn-id: https://develop.svn.wordpress.org/trunk@16276 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 16:42:59 +00:00
Ryan Boren af72ac38ff Pass post ID to get_enclosed filter. Props willnorris. fixes #14018
git-svn-id: https://develop.svn.wordpress.org/trunk@16275 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 16:40:49 +00:00
Ryan Boren 38c6bcbb55 Admin bar hover fixes. Props filosofo. see #15307
git-svn-id: https://develop.svn.wordpress.org/trunk@16274 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 16:19:55 +00:00
Andrew Nacin 66d261ba84 Cripple capability_type. Produced inconsistent, janky meta cap mapping; now only acts as a capability base. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@16273 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 14:50:14 +00:00
Andrew Nacin 5861cd15ae Properly set up menu_name. We're handling it differently because it defaults off other labels. fixes #14832.
git-svn-id: https://develop.svn.wordpress.org/trunk@16268 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 00:42:43 +00:00
scribu 83738d47f4 Make get_tax_sql() a standalone function. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16267 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 23:30:35 +00:00
scribu c0be4fafcf Make get_meta_sql() a standalone function. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16266 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 23:22:13 +00:00
Ryan Boren 6fd3b61886 Always allow super admins to have create_users. see #15357
git-svn-id: https://develop.svn.wordpress.org/trunk@16264 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 21:45:06 +00:00
Andrew Nacin a8fca7761a Better better message.
git-svn-id: https://develop.svn.wordpress.org/trunk@16263 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 20:37:47 +00:00
Ryan Boren 9b18657c74 Drop display_name from user search columns. It doesn't have an index. see #15170
git-svn-id: https://develop.svn.wordpress.org/trunk@16262 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 20:01:56 +00:00
scribu 5a2a86f84a Allow mix of 'taxonomy' => 'foo', 'term' => 'bar' and 'foo2' => 'bar2'. Props filosofo. Fixes #15363
git-svn-id: https://develop.svn.wordpress.org/trunk@16259 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 16:45:51 +00:00