Commit Graph

13382 Commits

Author SHA1 Message Date
Ryan Boren bdc57b2b3f Use the remove_user cap instead of delete_user. fixes #13325
git-svn-id: https://develop.svn.wordpress.org/trunk@14664 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 14:43:13 +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
potbot 48e82adba8 POT, generated from r14661
git-svn-id: https://develop.svn.wordpress.org/trunk@14662 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 12:21:45 +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 83081d3feb Validation for network.php. props dremeda, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14659 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 06:49:16 +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 4861bebf05 Add a form action to network.php. props xibe, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14657 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 06:19:27 +00:00
Andrew Nacin 8816885c79 Escape slash in inline JS for SWFUploader. props zeo, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14656 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 06:14:06 +00:00
Andrew Nacin afd9d6320a Validation and some textarea escaping for ms-options. props Utkarsh, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14655 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 05:58:57 +00:00
Andrew Nacin 932214755c Make sure custom post types have unique IDs in the admin menu. props validBen, fixes #12445.
git-svn-id: https://develop.svn.wordpress.org/trunk@14654 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 05:38:40 +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 4d594cc798 Use 'Comments' and 'Links' as page title instead of Edit %s. fixes #11274.
git-svn-id: https://develop.svn.wordpress.org/trunk@14652 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 05:07:31 +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 3fe13109a2 Add wp_edit_nav_menu_walker filter for specifying a custom edit nav menu walker. Props filosofo. fixes #13342
git-svn-id: https://develop.svn.wordpress.org/trunk@14645 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 20:06:50 +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
Ryan Boren 3ed5168fbe Don't allow previewing auto-draft. Props duck_. fixes #12859
git-svn-id: https://develop.svn.wordpress.org/trunk@14643 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 18:30:43 +00:00
Ryan Boren c5ef0f8fc5 Show page template dropdown only for pages and not for other post types. Props greenshady. fixes #12759
git-svn-id: https://develop.svn.wordpress.org/trunk@14642 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 18:20:04 +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
Peter Westwood db0df6a9c0 Try and tidy up the show_screen logic a little.
Implement a better override of the column header.
See #13393.

git-svn-id: https://develop.svn.wordpress.org/trunk@14638 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:45:14 +00:00
Peter Westwood bbc1edced6 Try and tidy up the show_screen logic a little.
Implement a better override of the column header.
See #13393.

git-svn-id: https://develop.svn.wordpress.org/trunk@14637 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:39:56 +00:00
Peter Westwood 10abe48571 Remove unnecessary filters and provide for translation context instead. Fixes #13393.
git-svn-id: https://develop.svn.wordpress.org/trunk@14636 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:12:46 +00:00
Peter Westwood f73384ffe8 Only show the column preferences if we have columns. See #13393 props duck_.
git-svn-id: https://develop.svn.wordpress.org/trunk@14635 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 15:49:20 +00:00
Peter Westwood 1302562718 Add phpDoc for convert_to_screen() and get_column_headers().
git-svn-id: https://develop.svn.wordpress.org/trunk@14634 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 15:47:14 +00:00
Andrew Nacin d999daff98 esc_url the URL from get_upload_iframe_src. props jshreve, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14633 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 15:03:59 +00:00
Andrew Nacin 55f868469e Valid HTML in ms-users and ms-sites. props Utkarsh, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14632 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 15:03:23 +00:00
Andrew Nacin 1a1ae174ba Only show published items of custom post types in nav menu meta boxes. props duck_, fixes #13390.
git-svn-id: https://develop.svn.wordpress.org/trunk@14631 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 13:12:45 +00:00
Andrew Nacin 06fc3ff50f Close wrapper div when ending network_step1 with a warning. props Caspie, fixes #13389.
git-svn-id: https://develop.svn.wordpress.org/trunk@14630 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 12:34:48 +00:00
potbot 5449eebe1c POT, generated from r14627
git-svn-id: https://develop.svn.wordpress.org/trunk@14629 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 08:21:12 +00:00
Andrew Nacin 9af98709d8 Ensure validation. props Utkarsh, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14628 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 08:20:06 +00:00
Andrew Nacin 265a0fedd2 Align default items shown in edit.php. props ocean90, fixes #13312.
git-svn-id: https://develop.svn.wordpress.org/trunk@14627 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 08:11:22 +00:00
Andrew Nacin a6a1d04ead Ensure validation. props Utkarsh, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14626 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 08:07:01 +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 6924c645b7 Use inline styles in custom background admin, and prepopulate background options. props jshreve, see #12186.
git-svn-id: https://develop.svn.wordpress.org/trunk@14624 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 06:48:47 +00:00
Andrew Nacin 09366e9439 If theme has registered menus, set the first menu created to the first registered location by default. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14623 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 06:44:54 +00:00
Andrew Nacin aabf2458f4 Remove trailing space from a localized string.
git-svn-id: https://develop.svn.wordpress.org/trunk@14622 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 06:38:01 +00:00
Andrew Nacin 151f5eb77d Only show Theme Locations meta box if menus exist and if the theme has registered menus. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14621 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 06:35:57 +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 21db580d98 Append closing td/tr to output instead of directly echoing it. props jshreve, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14618 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 01:54:21 +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 df111e4021 Use 'Posts', 'Pages', and corresponding custom post type names as the edit.php title. fixes #12968, fixes #11274.
git-svn-id: https://develop.svn.wordpress.org/trunk@14616 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 01:45:30 +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