Wordpress/wp-admin
Andrew Nacin 070a9e5c59 Introduce new registration methods for custom headers and custom backgrounds. Backwards compatible, but old methods will be deprecated. see #20249. see #17242.
Custom header: Use add_theme_support('custom-header', $args) instead of add_custom_image_header(). Deprecates all use of constants.
 * HEADER_TEXTCOLOR is now (string) 'default-text-color'.
 * NO_HEADER_TEXT is nowi ! (bool) 'header-text'.
 * HEADER_IMAGE_WIDTH (and _HEIGHT) are now (int) 'width' and 'height'.
 * HEADER_IMAGE is now (string) 'default-image'.
 * The 3.4 arguments 'suggested-width' and 'suggested-height' are now just 'width' and 'height' (they are "suggested" when flex-width and flex-height are set).
 * Callback arguments for add_custom_image_header() can now be passed to add_theme_support().

Custom background: Use add_theme_support('custom-background, $args) instead of add_custom_background(). Deprecates all use of constants.
 * BACKGROUND_COLOR is now (string) 'default-color'.
 * BACKGROUND_IMAGE is now (string) 'default-image'.
 * Callback arguments for add_custom_background() can now be passed to add_theme_support().

Inheritance: add_theme_support() arguments for custom headers and custom backgrounds is a first-one-wins situation. This is not an unusual paradigm for theming as a child theme (which is included first) overrides a parent theme.
 * Once an argument is explicitly set, it cannot be overridden. You must hook in earlier and set it first.
 * Any argument that is not explicitly set before WP is loaded will inherit the default value for that argument.
 * It is therefore possible for a child theme to pass minimal arguments as long as the parent theme specifies others that may be necessary.
 * Allows for a child theme to alter callbacks for <head> and preview (previously, calling add_custom_image_header more than once broke things).
 * The just-in-time bits ensure that arguments fall back to default values, that the values of all constants are considered (such as one defined after an old add_custom_image_header call), and that all constants are defined (so as to be backwards compatible).

get_theme_support(): Introduce new second argument, which headers and backgrounds leverage to return an argument. current_theme_supports() already supported checking the truthiness of the argument.
 * For example, get_theme_support( 'custom-header', 'width' ) will return the width specified during registration.
 * If you had wanted the default image, use get_theme_support( 'custom-header', 'default-image' ) instead of HEADER_IMAGE. 

Deprecate remove_custom_image_header(), remove_custom_background(). Use remove_theme_support('custom-header'), 'custom-background'.

Deprecate short-lived custom-header-uploads internal support; this is now (bool) 'uploads' for add_theme_support().

New 3.4 functions renamed or removed: Rename get_current_header_data() to get_custom_header(). Remove get_header_image_width() and _height() in favor of get_custom_header()->width and height.



git-svn-id: https://develop.svn.wordpress.org/trunk@20212 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-19 17:12:44 +00:00
..
css Compress scripts/styles: 3.4-alpha-20205. 2012-03-16 04:58:24 +00:00
images Theme Customizer: Begin integration into the install process. Combine previews, details, and install into a single workflow. see #19910. 2012-03-07 17:35:17 +00:00
includes Adjust site upload space HTML5 type='number' validation. see #17863. 2012-03-16 04:16:21 +00:00
js Compress scripts/styles: 3.4-alpha-20192. 2012-03-15 13:58:27 +00:00
maint Update login-logo.png to use proper color. Copy it over wordpress-logo.png. Make that one canonical, and stop using login-logo.png. Leave it for plugins. props iammattthomas. see #19955. 2012-02-17 04:57:56 +00:00
network Adjust site upload space HTML5 type='number' validation. see #17863. 2012-03-16 04:16:21 +00:00
user Remove index-extra.php. Move dashboard widget XHR callbacks to ajax-actions.php. fixes #20242. 2012-03-15 13:20:00 +00:00
about.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
admin-ajax.php Remove index-extra.php. Move dashboard widget XHR callbacks to ajax-actions.php. fixes #20242. 2012-03-15 13:20:00 +00:00
admin-footer.php Revise admin bar items based on user testing. Post at http://wp.me/pbNCB-qz. see #18197. 2011-10-05 18:45:32 +00:00
admin-functions.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
admin-header.php Use relative paths for admin-ajax.php to avoid cross-domain issues with IDN domains in IE and Opera. props SergeyBiryukov, fixes #18952. 2012-02-08 16:12:11 +00:00
admin-post.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
admin.php Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546. 2012-02-28 20:29:33 +00:00
async-upload.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
comment.php Allow comment.php?action=editcomment to be accessible for a comment that is spam. props josephscott, fixes #19977, see #18340. 2012-02-07 19:13:30 +00:00
credits.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
custom-background.php Introduce new registration methods for custom headers and custom backgrounds. Backwards compatible, but old methods will be deprecated. see #20249. see #17242. 2012-03-19 17:12:44 +00:00
custom-header.php Introduce new registration methods for custom headers and custom backgrounds. Backwards compatible, but old methods will be deprecated. see #20249. see #17242. 2012-03-19 17:12:44 +00:00
edit-comments.php Convert a bulleted list to paragraphs in the Moderating Comments help tab. props pavelevap, see #19788. 2012-02-01 14:45:19 +00:00
edit-form-advanced.php Use one space, not two, after trailing punctuation. fixes #19537 2011-12-13 23:45:31 +00:00
edit-form-comment.php Revert type="email" (HTML5) as some browsers that do validation on these fields do not work for IDN domains yet. Core does not support these well either, but server-side validation can at least be dealt with by a plugin. see #17863. 2012-03-15 18:09:14 +00:00
edit-link-form.php Use WP_Screen::add_help_tab(). see #19020 2011-12-01 02:22:07 +00:00
edit-tag-form.php Remove extraneous spaces. Props kenan3008, dimadin. fixes #19501 #19433 2011-12-14 17:36:38 +00:00
edit-tags.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
edit.php Remove extraneous spaces. Props kenan3008, dimadin. fixes #19501 #19433 2011-12-14 17:36:38 +00:00
export.php Show correct export date range for pages. The query should use provided $post_type instead of always 'post'. Props sorich87. Fixes #19312. 2011-12-22 12:08:26 +00:00
freedoms.php Create a network/about.php page and leverage it, to prevent the dashboard from switching to the blog admin. fixes #19762. 2012-01-06 17:53:41 +00:00
gears-manifest.php Default Google Gears ignoreQuery to true in manifest. see #13562 2010-05-30 08:45:50 +00:00
import.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
index.php Cap check help text. see #19933. 2012-02-14 17:23:31 +00:00
install-helper.php Deprecate ancient "debugging" tools. 2012-02-17 00:02:42 +00:00
install.php Update login-logo.png to use proper color. Copy it over wordpress-logo.png. Make that one canonical, and stop using login-logo.png. Leave it for plugins. props iammattthomas. see #19955. 2012-02-17 04:57:56 +00:00
link-add.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
link-manager.php Pinking shears 2011-12-01 04:51:35 +00:00
link-parse-opml.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
link.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
load-scripts.php One newline is enough. 2012-01-05 20:10:39 +00:00
load-styles.php One newline is enough. 2012-01-05 20:10:39 +00:00
media-new.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
media-upload.php Combine two strings. Cheatin', uh? 2012-03-07 19:00:12 +00:00
media.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
menu-header.php Remove role="menu" and role="menuitem" for now, fixes #19394 2011-12-05 17:47:23 +00:00
menu.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
moderation.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-admin.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-delete-site.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-edit.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-options.php Network Admin, first pass. see #14435 2010-07-30 20:34:54 +00:00
ms-sites.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-themes.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-upgrade-network.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-users.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
my-sites.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
nav-menus.php One newline is enough. 2012-01-05 20:10:39 +00:00
network.php Align the spacing of the multisite constants with what has been long-established in wp-config and wp-config-sample. props ryanduff, fixes #19869. 2012-02-20 16:35:03 +00:00
options-discussion.php It is possible for comments_per_page to be 0, which turns off pagination. See sanitize_option(); wp_list_commnts(); get_comment_link(). see #17863. 2012-03-16 04:36:12 +00:00
options-general.php Revert type="email" (HTML5) as some browsers that do validation on these fields do not work for IDN domains yet. Core does not support these well either, but server-side validation can at least be dealt with by a plugin. see #17863. 2012-03-15 18:09:14 +00:00
options-head.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
options-media.php upload_url_path is a relative URL path, not an absolute URL. Remove type='url' as that enforces absoluteness. see #17863. 2012-03-16 04:43:20 +00:00
options-permalink.php Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546. 2012-02-28 20:29:33 +00:00
options-privacy.php Help text tweaks for the Settings screens. props jane. see #19020. 2011-12-01 00:52:31 +00:00
options-reading.php Set proper HTML5 input types in the admin, props georgestephanis, fixes #17863 2012-03-10 01:23:48 +00:00
options-writing.php mailserver_login and mailserver_pass should always be LTR. see #19598. 2012-02-03 00:05:43 +00:00
options.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
plugin-editor.php Use one space, not two, after trailing punctuation. fixes #19537 2011-12-13 23:45:31 +00:00
plugin-install.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
plugins.php One newline is enough. 2012-01-05 20:10:39 +00:00
post-new.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
post.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
press-this.php Use relative paths for admin-ajax.php to avoid cross-domain issues with IDN domains in IE and Opera. props SergeyBiryukov, fixes #18952. 2012-02-08 16:12:11 +00:00
profile.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
revision.php Mid-page headers should be h3, not h2. 2010-10-22 00:27:12 +00:00
setup-config.php Update login-logo.png to use proper color. Copy it over wordpress-logo.png. Make that one canonical, and stop using login-logo.png. Leave it for plugins. props iammattthomas. see #19955. 2012-02-17 04:57:56 +00:00
theme-editor.php User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302 2012-01-05 20:50:54 +00:00
theme-install.php Infinite scroll for themes.php and theme-install.php. Bump per page limit for themes.php to 999. Props helenyhou, DH-Shredder. see #19815 2012-02-09 17:20:26 +00:00
themes.php Set proper HTML5 input types in the admin, props georgestephanis, fixes #17863 2012-03-10 01:23:48 +00:00
tools.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
update-core.php Use new WP_Theme API in list_theme_updates(). fixes #20173. see #20103. 2012-03-04 13:03:48 +00:00
update.php Store Plugin/Theme uploads in the Media Library properly. Add Scheduled cleanup +2hrs to clean up any aborted installation attempts. See #18182 2011-08-28 08:42:07 +00:00
upgrade-functions.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
upgrade.php Update login-logo.png to use proper color. Copy it over wordpress-logo.png. Make that one canonical, and stop using login-logo.png. Leave it for plugins. props iammattthomas. see #19955. 2012-02-17 04:57:56 +00:00
upload.php Pinking shears 2011-12-01 04:51:35 +00:00
user-edit.php Revert type="email" (HTML5) as some browsers that do validation on these fields do not work for IDN domains yet. Core does not support these well either, but server-side validation can at least be dealt with by a plugin. see #17863. 2012-03-15 18:09:14 +00:00
user-new.php Correct faulty logic when dealing with autocomplete_users_for_site_admins, and break logic into multiple lines. See #19810. 2012-02-16 17:12:10 +00:00
users.php Only allow _multisite_ super admins to demote themselves on a site. props linuxologos, see #19684 for trunk. 2011-12-30 23:13:48 +00:00
widgets.php Don't use esc_attr_e() function for a non-translatable context. props zeo. fixes #19479. 2011-12-08 17:56:03 +00:00