Commit Graph

6136 Commits

Author SHA1 Message Date
Andrew Nacin d43df7123a Change @since 2.9 to @since 2.9.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13829 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:23:39 +00:00
Andrew Nacin e34ca97ae0 Change @since 3.0 to @since 3.0.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13827 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:13:36 +00:00
Andrew Nacin 411e9a74f1 Remove one-pixel white bottom border off new light gray header. After some discussion, mainly due to screen options/help tabs. see #12586
git-svn-id: https://develop.svn.wordpress.org/trunk@13826 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 18:40:29 +00:00
Ryan Boren 3d69d47f63 Ligten header and footer for gray color scheme. Props johnonolan. see #12586
git-svn-id: https://develop.svn.wordpress.org/trunk@13824 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 17:09:53 +00:00
Andrew Nacin e721260a3b WP_I18N_* for .maintenance strings. fixes #12485
git-svn-id: https://develop.svn.wordpress.org/trunk@13822 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 14:06:12 +00:00
Andrew Nacin 84ba6e473e Correct inline docs and parameter names for get_objects_in_term() to reflect that it uses term ids, not term slugs. fixes #11835
git-svn-id: https://develop.svn.wordpress.org/trunk@13821 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 14:00:17 +00:00
Andrew Nacin 28f8063d1f Introduce get_index_template(). Allows child themes to override a parent theme's index.php. Props koopersmith, fixes #12635
git-svn-id: https://develop.svn.wordpress.org/trunk@13819 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 13:52:43 +00:00
Peter Westwood 8003673862 Rename get_specific_template as get_template_part so as to make it clearer as to the point of the function. See #12371
git-svn-id: https://develop.svn.wordpress.org/trunk@13815 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-25 22:02:45 +00:00
Ryan Boren 0286b0f2e5 Add scheme argument to admin_url() and get_admin_url() to allow forcing a particular scheme.
git-svn-id: https://develop.svn.wordpress.org/trunk@13814 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-25 22:00:36 +00:00
Ryan Boren 450110f9f2 Don't return WP_Error from term_description(). Props filosofo. fixes #12707
git-svn-id: https://develop.svn.wordpress.org/trunk@13813 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-25 17:28:16 +00:00
Nikolay Bachiyski cab7d51114 Set some $_SERVER values to empty strings if missing. Fixes notices if WordPress is run from the command-line and is far more pleasant than using isset() all over the place.
git-svn-id: https://develop.svn.wordpress.org/trunk@13812 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-25 15:33:35 +00:00
Ryan Boren eeb49f6bef Enable nav menu admin if theme supports widgets. Show notice if theme supports widgets but not nav-menus. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13810 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-24 18:35:31 +00:00
Andrew Nacin 5bcb23827d Move send_nosniff_header() into wp-includes so it can be used in wp-ajax.php. props sivel, fixes #12683
git-svn-id: https://develop.svn.wordpress.org/trunk@13806 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-23 19:13:58 +00:00
Andrew Nacin 0ac5c26d2d Prevent the nav menu walker from walking in circles. Don't allow an object from being a child of itself; if the functionality is desired, a workaround would be custom links. see #11817, see #12566. (Script loader bump for r13802, r13803). props ptahdunbar for the commits.
git-svn-id: https://develop.svn.wordpress.org/trunk@13804 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 22:33:12 +00:00
Andrew Nacin 94ec7ba0eb Various bug fixes and improvements to menu management. props ptahdunbar, see #11817.
git-svn-id: https://develop.svn.wordpress.org/trunk@13802 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 19:56:16 +00:00
Andrew Nacin d53d09ca48 Fix notice without breaking comment notifications. See r13150, see #11830
git-svn-id: https://develop.svn.wordpress.org/trunk@13801 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 16:06:55 +00:00
Dion Hulse 1b219fcd7a Add some defensive checks to Canonical redirection of %category% to ensure notices are not thrown. Props jfarthing84 for pointing out possibility. See #11907
git-svn-id: https://develop.svn.wordpress.org/trunk@13798 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 07:05:50 +00:00
Nikolay Bachiyski 7fcffb8d12 Wrap transtable strings used in Network install in WP_I18N_SOMETHING, because translations still aren't loaded. Fixes #12357
git-svn-id: https://develop.svn.wordpress.org/trunk@13797 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 06:51:49 +00:00
Andrew Nacin 747fd91e0a Fix typo in inline docs for register_post_type(). fixes #12664 props sillybean.
git-svn-id: https://develop.svn.wordpress.org/trunk@13793 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 03:11:15 +00:00
Dion Hulse 3ca4e60665 Cleanup of Custom Background. Move JS to external file, Add @since, Remove redundant steps functionality, Preview of Image alignment. See #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13788 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-21 06:06:18 +00:00
Dion Hulse af3144f092 When viewing a Parent term in a hierarchical taxonomy, display objects contained within children too. Props scribu. Fixes #12533
git-svn-id: https://develop.svn.wordpress.org/trunk@13787 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-21 02:52:00 +00:00
Dion Hulse 6f62362b96 Use correct cap checks and nonces for custom post_type's
git-svn-id: https://develop.svn.wordpress.org/trunk@13786 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-21 02:29:11 +00:00
Dion Hulse f24da9abad Fix WP_User::remove_role(). See #10285
git-svn-id: https://develop.svn.wordpress.org/trunk@13784 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-21 01:36:54 +00:00
Dion Hulse 691bd47301 Only allow %category% to be a valid category attached to the current post when using %category% in a permalink structure. Fixes #11807
git-svn-id: https://develop.svn.wordpress.org/trunk@13781 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 06:27:27 +00:00
Dion Hulse 9e75e9944d Update Canonical paging to reconise /page(\d+)/? as a valid paging path. See #8948
git-svn-id: https://develop.svn.wordpress.org/trunk@13780 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 03:22:08 +00:00
Dion Hulse 6be1550e75 Add hierarchical support for custom post_types in Rewrite Rules & Querying. See #12643
git-svn-id: https://develop.svn.wordpress.org/trunk@13774 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 02:23:52 +00:00
Dion Hulse 513dc9d474 Allow for a custom Endpoint Mask to be passed to add_endpoint(). Allows for endpoints to be targeted to specific rewrite rules. Allow custom post_types to specify their Endpoint mask. Allows for post_type's rewrite rules to inherit Post endpoints, or alternatively, allows for add_endpoint() to target specific post_types. Fixes #12605
git-svn-id: https://develop.svn.wordpress.org/trunk@13773 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 02:05:32 +00:00
Dion Hulse 60d2b654ac Fix unset notice on Revisions page for custom post_types. Use $post object instead of relying on a Global
git-svn-id: https://develop.svn.wordpress.org/trunk@13772 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 01:10:01 +00:00
Andrew Nacin dd306def81 Remove redundant isset() and empty() checks.
git-svn-id: https://develop.svn.wordpress.org/trunk@13770 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:29:21 +00:00
Andrew Nacin ddc506f01c Remove unnecessary ternary operators such as (expr) ? true : false.
git-svn-id: https://develop.svn.wordpress.org/trunk@13769 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:15:00 +00:00
Dion Hulse ef886dfdfe Add min-height and a black border to the Background Image preview. Min-height to allow for no image present, black border to show preview area when no image or colour is available. See #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@13766 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 09:37:36 +00:00
Andrew Nacin 997913449c Restore accidental removal of get_usernumposts(). This function is now deprecated in favor of count_user_posts() for naming consistency. fixes #12642 props Viper007Bond.
git-svn-id: https://develop.svn.wordpress.org/trunk@13761 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 01:11:21 +00:00
Peter Westwood f93010c7ff Make use of apply_filters_ref_array() when running the query. Fixes #9886 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@13758 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 21:55:25 +00:00
Peter Westwood 8d9aac849f Introduce apply_filters_ref_array(). See #9886 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@13756 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 21:24:07 +00:00
Andrew Nacin 21c4e3e30e Account for old type=link (now taxonomy=link_category) in wp_dropdown_categories(). Don't use the deprecated argument in options-writing. Sprinkle in some deprecated warnings. fixes #12630
git-svn-id: https://develop.svn.wordpress.org/trunk@13754 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 20:17:15 +00:00
Andrew Nacin 39547dbeb9 Check in the script version bump for [13752]
git-svn-id: https://develop.svn.wordpress.org/trunk@13753 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 19:25:55 +00:00
Andrew Nacin 6eb9146145 Fix notice for when no menus are located. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13743 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 21:34:24 +00:00
Andrew Nacin 2256bb9a70 Remove JS nav-menu functions that we no longer use. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13742 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 20:44:59 +00:00
Mark Jaquith 23f3d3f190 nav_menu taxonomy should be _builtin. props sillybean. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13741 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 20:03:02 +00:00
Mark Jaquith f9c0a28884 Bump nav-menu JS version
git-svn-id: https://develop.svn.wordpress.org/trunk@13740 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 20:01:31 +00:00
Peter Westwood fc7db66476 Fix notice in wp_nav_menu when the menu doesn't exist.
git-svn-id: https://develop.svn.wordpress.org/trunk@13738 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 19:33:20 +00:00
Ryan Boren e89d1c5dcb Introduce WP_DEFAULT_THEME
git-svn-id: https://develop.svn.wordpress.org/trunk@13737 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 17:42:49 +00:00
Ryan Boren e61755c853 Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@13733 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 16:27:25 +00:00
Ryan Boren a62734b401 Fix menu item type labels. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13731 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 16:18:41 +00:00
Mark Jaquith a333213a6f No need for three separate JS files if they are only ever enqueued together. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13730 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 16:13:16 +00:00
Mark Jaquith 8bca8131a6 More pedantry. "Setup" is not a verb. http://notaverb.com/setup
git-svn-id: https://develop.svn.wordpress.org/trunk@13725 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 04:39:50 +00:00
Ryan Boren 5e9792f9f7 Menu item -> append should be a key/name, not a label. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13722 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-16 22:01:49 +00:00
Ryan Boren 1bb04ed42a Default target to _self. Add some sanitization and gettext. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13719 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-16 19:20:10 +00:00
Ryan Boren 35236d8291 Introduce sanitize_key().
git-svn-id: https://develop.svn.wordpress.org/trunk@13718 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-16 19:19:32 +00:00
Andrew Nacin 39d8739a81 Prevent page(\d+) slugs, and force a suffix. props miqrogroove. fixes #11917. see #8948
git-svn-id: https://develop.svn.wordpress.org/trunk@13717 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-16 18:36:26 +00:00