Commit Graph

13328 Commits

Author SHA1 Message Date
markjaquith 4ab768959d 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: http://svn.automattic.com/wordpress/trunk@14660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 09:59:15 +00:00
nacin 88bce6a716 Validation for network.php. props dremeda, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 06:49:16 +00:00
nacin a2a0b6041b Also return raw author name and URI from get_theme_data and get_themes. props blepoxp, fixes #12275.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 06:28:35 +00:00
nacin 81d5ac363d Add a form action to network.php. props xibe, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 06:19:27 +00:00
nacin 54a46870d3 Escape slash in inline JS for SWFUploader. props zeo, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 06:14:06 +00:00
nacin ef484c0dd0 Validation and some textarea escaping for ms-options. props Utkarsh, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 05:58:57 +00:00
nacin 9af8453160 Make sure custom post types have unique IDs in the admin menu. props validBen, fixes #12445.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 05:38:40 +00:00
nacin b0910977a9 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: http://svn.automattic.com/wordpress/trunk@14653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 05:26:25 +00:00
nacin 36af10b6b7 Use 'Comments' and 'Links' as page title instead of Edit %s. fixes #11274.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 05:07:31 +00:00
nacin 00a291c71e Remove default_comment_status_pages setting from the options table. see #12991.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 05:01:04 +00:00
nacin 5463205114 Remove default_comment_status_pages setting. Reverts [14451], [14448] for 3.0. see #12991.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 04:56:56 +00:00
nacin 7c8a77efa3 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: http://svn.automattic.com/wordpress/trunk@14649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 04:47:03 +00:00
ryan 4f88b4bf60 register_post_type phpdoc updates. Props michaelh. fixes #13398
git-svn-id: http://svn.automattic.com/wordpress/trunk@14648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 22:26:07 +00:00
nacin c6d21e7fbb Introduce _ex(), a hybrid between _e() and _x() -- translate with context, then echo. props westi, see #13395.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 21:46:25 +00:00
westi 15f373629a Restore the correct behaviour of bloginfo('text_direction'). Fixes #13360. See #13206.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 21:22:14 +00:00
ryan 25dcb020af Add wp_edit_nav_menu_walker filter for specifying a custom edit nav menu walker. Props filosofo. fixes #13342
git-svn-id: http://svn.automattic.com/wordpress/trunk@14645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 20:06:50 +00:00
ryan d7ff950bb9 Don't output empty title. Props mattwiebe, ptahdunbar. fixes #13240
git-svn-id: http://svn.automattic.com/wordpress/trunk@14644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 18:52:59 +00:00
ryan c4aca99445 Don't allow previewing auto-draft. Props duck_. fixes #12859
git-svn-id: http://svn.automattic.com/wordpress/trunk@14643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 18:30:43 +00:00
ryan 23e3b38d4f Show page template dropdown only for pages and not for other post types. Props greenshady. fixes #12759
git-svn-id: http://svn.automattic.com/wordpress/trunk@14642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 18:20:04 +00:00
westi 83ae6a51ea Introduce __return_empty_array() and use it instead of create_function in the theme preview.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 16:55:26 +00:00
westi 366d182843 Bumpity Bump
git-svn-id: http://svn.automattic.com/wordpress/trunk@14640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 16:48:29 +00:00
westi 9570dfc394 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: http://svn.automattic.com/wordpress/trunk@14639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 16:46:53 +00:00
westi 867628913e Try and tidy up the show_screen logic a little.
Implement a better override of the column header.
See #13393.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 16:45:14 +00:00
westi e5fa82c152 Try and tidy up the show_screen logic a little.
Implement a better override of the column header.
See #13393.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 16:39:56 +00:00
westi 7d40d97601 Remove unnecessary filters and provide for translation context instead. Fixes #13393.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 16:12:46 +00:00
westi 82a12075bf Only show the column preferences if we have columns. See #13393 props duck_.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 15:49:20 +00:00
westi 30128f636e Add phpDoc for convert_to_screen() and get_column_headers().
git-svn-id: http://svn.automattic.com/wordpress/trunk@14634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 15:47:14 +00:00
nacin 518b19a404 esc_url the URL from get_upload_iframe_src. props jshreve, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 15:03:59 +00:00
nacin c13744a051 Valid HTML in ms-users and ms-sites. props Utkarsh, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 15:03:23 +00:00
nacin d12cdce1b0 Only show published items of custom post types in nav menu meta boxes. props duck_, fixes #13390.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 13:12:45 +00:00
nacin e01bcf8d2e Close wrapper div when ending network_step1 with a warning. props Caspie, fixes #13389.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 12:34:48 +00:00
potbot 0f2f5f276b POT, generated from r14627
git-svn-id: http://svn.automattic.com/wordpress/trunk@14629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 08:21:12 +00:00
nacin cb0a9024ad Ensure validation. props Utkarsh, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 08:20:06 +00:00
nacin 5478a0a538 Align default items shown in edit.php. props ocean90, fixes #13312.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 08:11:22 +00:00
nacin 85655c586f Ensure validation. props Utkarsh, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 08:07:01 +00:00
nacin 37ce82fd24 Use valid HTML in the theme editor. span instead of div inside an anchor. props Utkarsh, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 07:04:17 +00:00
nacin c5c6244c50 Use inline styles in custom background admin, and prepopulate background options. props jshreve, see #12186.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 06:48:47 +00:00
nacin f00bc39c20 If theme has registered menus, set the first menu created to the first registered location by default. see #13378.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 06:44:54 +00:00
nacin c3d2c8ff79 Remove trailing space from a localized string.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 06:38:01 +00:00
nacin c5d2cdc52d Only show Theme Locations meta box if menus exist and if the theme has registered menus. see #13378.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 06:35:57 +00:00
nacin a743de0788 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: http://svn.automattic.com/wordpress/trunk@14620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 06:20:30 +00:00
nbachiyski c1dea00b62 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: http://svn.automattic.com/wordpress/trunk@14619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 02:13:49 +00:00
nacin 7bd274899d Append closing td/tr to output instead of directly echoing it. props jshreve, see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 01:54:21 +00:00
nacin ab0cf8d942 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: http://svn.automattic.com/wordpress/trunk@14617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 01:50:46 +00:00
nacin 6d590a567b Use 'Posts', 'Pages', and corresponding custom post type names as the edit.php title. fixes #12968, fixes #11274.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 01:45:30 +00:00
nacin 3f796315da Only save menu item positions on save. Had implications for draft items otherwise. see #13337, props koopersmith.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 01:32:48 +00:00
nbachiyski 4cf46b6d96 I18n for custom taxonomies. Fixes #13357
git-svn-id: http://svn.automattic.com/wordpress/trunk@14614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 00:34:04 +00:00
potbot f06b9dbcf6 POT, generated from r14612
git-svn-id: http://svn.automattic.com/wordpress/trunk@14613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 00:21:45 +00:00
ryan ed425661e9 Remove 'slots' from menu tabs. Going a different direction. see #14611
git-svn-id: http://svn.automattic.com/wordpress/trunk@14612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-13 22:57:42 +00:00
wpmuguru 21bef33fc6 add menu slots/theme_menus, props ryan, see #13378
git-svn-id: http://svn.automattic.com/wordpress/trunk@14611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-13 22:14:54 +00:00