Commit Graph

6576 Commits

Author SHA1 Message Date
Peter Westwood a0740155c5 Make get_attachment_metadata() loop safe.
git-svn-id: https://develop.svn.wordpress.org/trunk@14699 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 21:00:00 +00:00
Peter Westwood b0ff90ab6f Bumpity
git-svn-id: https://develop.svn.wordpress.org/trunk@14697 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 20:48:09 +00:00
Peter Westwood fd4a9ffa86 Switch to checking on tt_ids for the category lookup to ensure in_array call is PHP4 compatible. See #13410
git-svn-id: https://develop.svn.wordpress.org/trunk@14696 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 20:47:18 +00:00
Peter Westwood 8d94af2efd Don't return data for user 1 when passed in junk like an array. See #13317.
git-svn-id: https://develop.svn.wordpress.org/trunk@14695 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 20:34:02 +00:00
Peter Westwood 2702a216c4 Fix remaining notice when using closures. Fixes #10493 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14691 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 13:41:02 +00:00
Peter Westwood bfb56d204b Fix notices/usage of closures as action/filter handlers. Fixes #10493 based on patch from scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14690 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 08:10:39 +00:00
Andrew Nacin 542dea5b25 Use p instead of definition list for allowed tags in comment_form(). props demetris. Style the new markup in Twenty Ten. see #10910.
git-svn-id: https://develop.svn.wordpress.org/trunk@14689 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 06:38:58 +00:00
Andrew Nacin 5f287dcb6d Clarify that link_before and link_after text for wp_list_pages also applies to the current page which doesn't actually have a link. fixes #12247.
git-svn-id: https://develop.svn.wordpress.org/trunk@14687 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 06:11:43 +00:00
Andrew Nacin 2839ecfd01 First pass at fixing search for add menu item boxes. props koopersmith, see #13283.
git-svn-id: https://develop.svn.wordpress.org/trunk@14686 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 05:39:53 +00:00
Andrew Nacin ae5af53f10 Custom background UI updates. props ocean90 for initial patch, see #12186.
git-svn-id: https://develop.svn.wordpress.org/trunk@14684 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 05:17:57 +00:00
Ron Rennick 95694cb813 show upload limit in media upload UI, see #12853
git-svn-id: https://develop.svn.wordpress.org/trunk@14682 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 23:57:32 +00:00
Ron Rennick 9ad643991f don't check upload_path in upgraded MU install, see #12549
git-svn-id: https://develop.svn.wordpress.org/trunk@14680 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 21:53:18 +00:00
Andrew Nacin e6fcc1df7c Don't show unapproved comments in comments widget. props jshreve, fixes #10615.
git-svn-id: https://develop.svn.wordpress.org/trunk@14679 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 21:44:12 +00:00
Peter Westwood 6979d55fbe Don't trim whitespace from sections of the response in IXR_Client. Fixes #12559 props apeatling.
git-svn-id: https://develop.svn.wordpress.org/trunk@14677 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 21:04:26 +00:00
Peter Westwood 01b1ae4e39 Bumpity
git-svn-id: https://develop.svn.wordpress.org/trunk@14676 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 20:59:02 +00:00
Andrew Nacin 23d6bf302c More validation fixes. Escape some preview=true URLs, also clean up tags in edit-attachment-rows. Slight CSS tweak to match presentation to the formerly invalid HTML. props zeo, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14673 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 20:36:49 +00:00
Andrew Nacin 317abe4473 Remove p tag from allowed nav menu container tags. Cannot validly contain block level elements. props Jorbin, fixes #13349.
git-svn-id: https://develop.svn.wordpress.org/trunk@14666 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 15:05:57 +00:00
Ryan Boren 14d8731a49 Don't update_post_caches if a persistent object cache is installed. fixes #12611
git-svn-id: https://develop.svn.wordpress.org/trunk@14665 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 15:00:53 +00:00
Ryan Boren afc24755fc autosave_update_post_ID() no longer needed. Fix button enable lag. Props duck_. fixes #13400
git-svn-id: https://develop.svn.wordpress.org/trunk@14663 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 14:03:46 +00:00
Mark Jaquith cb34d30d8e Update media upload window tabs CSS to support wrapping of tabs when they exceed the available width. props edward mindreantre. fixes #10242
git-svn-id: https://develop.svn.wordpress.org/trunk@14661 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 10:21:10 +00:00
Mark Jaquith 45dec2e4e8 Do not show dummy default category output when calling the_category on a post_type that does not support the category taxonomy (like pages). Fix TwentyTen theme to not display wrapping text if there are no categories. fixes #10333
git-svn-id: https://develop.svn.wordpress.org/trunk@14660 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 09:59:15 +00:00
Andrew Nacin 43c09c9587 Also return raw author name and URI from get_theme_data and get_themes. props blepoxp, fixes #12275.
git-svn-id: https://develop.svn.wordpress.org/trunk@14658 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 06:28:35 +00:00
Andrew Nacin e6ae8c05e8 Always pass post ID, not post object, to the_title filter. Original the_title filter in get_the_title() uses ID only. props filosofo, fixes #12631.
git-svn-id: https://develop.svn.wordpress.org/trunk@14653 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 05:26:25 +00:00
Andrew Nacin 7d118a4628 Remove default_comment_status_pages setting from the options table. see #12991.
git-svn-id: https://develop.svn.wordpress.org/trunk@14651 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 05:01:04 +00:00
Andrew Nacin f92765c934 Remove default_comment_status_pages setting. Reverts [14451], [14448] for 3.0. see #12991.
git-svn-id: https://develop.svn.wordpress.org/trunk@14650 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 04:56:56 +00:00
Andrew Nacin 5aa7280d6a Introduce wp_check_filetype_and_ext() to handle mime/ext image comparisons and corrections for upload and sideload. props Viper007Bond, see #11946.
git-svn-id: https://develop.svn.wordpress.org/trunk@14649 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 04:47:03 +00:00
Ryan Boren 35cd94b58c register_post_type phpdoc updates. Props michaelh. fixes #13398
git-svn-id: https://develop.svn.wordpress.org/trunk@14648 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 22:26:07 +00:00
Andrew Nacin 47136b319f Introduce _ex(), a hybrid between _e() and _x() -- translate with context, then echo. props westi, see #13395.
git-svn-id: https://develop.svn.wordpress.org/trunk@14647 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 21:46:25 +00:00
Peter Westwood 7d675404ca Restore the correct behaviour of bloginfo('text_direction'). Fixes #13360. See #13206.
git-svn-id: https://develop.svn.wordpress.org/trunk@14646 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 21:22:14 +00:00
Ryan Boren 28f42b1b8b Don't output empty title. Props mattwiebe, ptahdunbar. fixes #13240
git-svn-id: https://develop.svn.wordpress.org/trunk@14644 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 18:52:59 +00:00
Peter Westwood 4b3be4e693 Introduce __return_empty_array() and use it instead of create_function in the theme preview.
git-svn-id: https://develop.svn.wordpress.org/trunk@14641 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:55:26 +00:00
Peter Westwood 9b6d7bb63a Bumpity Bump
git-svn-id: https://develop.svn.wordpress.org/trunk@14640 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:48:29 +00:00
Peter Westwood 81b12ac87e Introduce __return_zero() and use it instead of create_function in the login header.
Also add version info to __return_true and __return_false.

git-svn-id: https://develop.svn.wordpress.org/trunk@14639 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:46:53 +00:00
Andrew Nacin 1164a4276b Use valid HTML in the theme editor. span instead of div inside an anchor. props Utkarsh, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14625 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 07:04:17 +00:00
Andrew Nacin 4db10bf0d7 First pass on 'Theme Locations' for navigation menus. Themes need to specify a location when calling wp_nav_menu and register locations in functions.php. Users then map menus to locations in the nav menu admin. Subject to review. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14620 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 06:20:30 +00:00
Nikolay Bachiyski 8a95987fad Keep label as a quick way to set up a taxonomy/post type, without diving into the labels array. Deprecate singular_label while there. Props nacin. Fixes #13357
git-svn-id: https://develop.svn.wordpress.org/trunk@14619 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 02:13:49 +00:00
Andrew Nacin 0d472228a2 Add closing tr tag to custom-background.php. Close paragraph tags in the recent comments and posts widget controls. props jshreve, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14617 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 01:50:46 +00:00
Andrew Nacin ae2148a866 Only save menu item positions on save. Had implications for draft items otherwise. see #13337, props koopersmith.
git-svn-id: https://develop.svn.wordpress.org/trunk@14615 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 01:32:48 +00:00
Nikolay Bachiyski 599c19481e I18n for custom taxonomies. Fixes #13357
git-svn-id: https://develop.svn.wordpress.org/trunk@14614 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 00:34:04 +00:00
Ron Rennick 05b0578c06 add menu slots/theme_menus, props ryan, see #13378
git-svn-id: https://develop.svn.wordpress.org/trunk@14611 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 22:14:54 +00:00
Andrew Nacin 98a20461dc Check if HEADER_ constants are defined before continuing. props ocean90, fixes #13367.
git-svn-id: https://develop.svn.wordpress.org/trunk@14610 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 21:44:37 +00:00
Ron Rennick ddcf72d638 block ms-files.php when not multisite, see #11742
git-svn-id: https://develop.svn.wordpress.org/trunk@14609 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 21:40:42 +00:00
Peter Westwood 728b90a13b Introduce wp_reset_postdata(). Use it to reset the post global for the current query_posts() call after using a loop with a new WP_Query object. Fixes #12320 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14607 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 20:39:54 +00:00
Ryan Boren e35fe8d6d9 get_term_by('id') -> get_term(). Add get_term filters to get_term_by.
git-svn-id: https://develop.svn.wordpress.org/trunk@14606 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 19:16:09 +00:00
Andrew Nacin 6e9e34fb52 More wp_navMore inline doc clarifications for wp_nav_menu. fixes #13370, props jorbin.
git-svn-id: https://develop.svn.wordpress.org/trunk@14605 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 19:07:08 +00:00
Andrew Nacin 96d6225aa1 More inline doc clarifications for wp_nav_menu. fixes #13370, props jorbin.
git-svn-id: https://develop.svn.wordpress.org/trunk@14604 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 18:47:35 +00:00
Peter Westwood f782838830 Add commentary about the posts_search filter. See #10667.
git-svn-id: https://develop.svn.wordpress.org/trunk@14603 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 17:34:43 +00:00
Ryan Boren 3c7ca79f6e Add show_in_nav_menus flag to post type registration. Props williamsba1. fixes #13144
git-svn-id: https://develop.svn.wordpress.org/trunk@14602 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 17:29:45 +00:00
Ryan Boren e628d300b0 s/wp_get_nav_menu_item/walker_nav_menu_start_el/ to be more specific. Pass all start_el() args to the filter. Props tomtomp. fixes #13366
git-svn-id: https://develop.svn.wordpress.org/trunk@14600 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 16:44:12 +00:00
Ryan Boren 0a38355cce Check for WP_Error. Props ptahdunbar. fixes #12949
git-svn-id: https://develop.svn.wordpress.org/trunk@14599 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 16:34:14 +00:00