Wordpress/wp-includes
Daryl Koopersmith bdee6c8e15 Theme Customizer: Move upload and image controls to subclasses. see #19910.
Instead of grouping together every control parameter into a single  array and passing them all to the JS, use subclasses with custom parameters to implement additional PHP functionality and the  parameter to send only the necessary variables to the JavaScript control.

Replaces WP_Customize_Control->control_params with WP_Customize_Control->json and WP_Customize_Control->to_json(). The to_json() method refreshes the json array passed to the JavaScript control (set to control.param by default).

Creates WP_Customize_Upload_Control and WP_Customize_Image_Control.

git-svn-id: https://develop.svn.wordpress.org/trunk@20319 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 06:35:54 +00:00
..
Text
css Compress scripts/styles: 3.4-alpha-20291. 2012-03-25 21:58:20 +00:00
images Hover state for the Add New admin bar icon. props johnjamesjacoby. fixes #19475. 2011-12-09 19:20:47 +00:00
js Theme Customizer: Move upload and image controls to subclasses. see #19910. 2012-03-29 06:35:54 +00:00
pomo Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975 2011-10-27 20:00:09 +00:00
theme-compat Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
admin-bar.php In the admin, render the Toolbar immediately, rather than waiting until the footer. When intensive pages take a while to load, you aren't stuck without a working admin header. fixes #20161. 2012-03-02 22:51:29 +00:00
atomlib.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
author-template.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
bookmark-template.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
bookmark.php Use wp_cache_add() instead of wp_cache_set() when priming the object term cache in update_object_term_cache(). Pass the real post_type to clean_object_term_cache() instead of hard-coding post. Call clean_object_term_cache() from clean_bookmark_cache(). Props leewillis77. fixes #19690 2012-01-11 21:26:18 +00:00
cache.php Prevent notices by checking if the $group key isset(). See #20004. 2012-03-02 21:57:03 +00:00
canonical.php Ensure that a category is part of the query before redirecting permalink structures containing %category%. Fixes #19241. 2012-02-21 19:00:06 +00:00
capabilities.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
category-template.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
category.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-IXR.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-feed.php Use wp_remote_retrieve_* helper functions instead of the raw HTTP response array. props aaroncampbell, fixes #17416. 2011-05-14 19:45:07 +00:00
class-http.php WP_HTTP: Curl: Handle Redirections in PHP rather than internally in Curl, Simplifies code flow between safe_mode On and Off, and works around certain bugs. Props simonwheatley for initial patch. Fixes #20219, Fixes #17490 2012-03-18 05:00:05 +00:00
class-json.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-oembed.php We use colon as the case separator. 2012-03-21 15:04:52 +00:00
class-phpass.php Fix typos in documentation (wp-includes/[a-h]). See #18560. 2011-09-03 16:02:41 +00:00
class-phpmailer.php Upgrade PHPMailer to 5.2.1. Props MattyRob. fixes #19887 2012-02-07 16:13:51 +00:00
class-pop3.php
class-simplepie.php Switch from Net_IPv6 to SimplePie_Net_IPv6. Props stephdau, rmccue. fixes #19991 2012-02-09 20:17:23 +00:00
class-smtp.php Upgrade PHPMailer to 5.2.1. Props MattyRob. fixes #19887 2012-02-07 16:13:51 +00:00
class-snoopy.php
class-wp-admin-bar.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-wp-ajax-response.php Make sure we are using the admin-ajax handler when we call wp_die() for WP_Ajax_Response. see #20024. 2012-02-12 19:02:07 +00:00
class-wp-atom-server.php Consolidate some strings. Props ramiy. see #20216 2012-03-19 19:04:49 +00:00
class-wp-customize-control.php Theme Customizer: Move upload and image controls to subclasses. see #19910. 2012-03-29 06:35:54 +00:00
class-wp-customize-section.php Create WP_Customize_Control to separate the process of rendering a control from fetching, previewing, and saving its values. see #19910. 2012-03-28 04:14:09 +00:00
class-wp-customize-setting.php Theme Customizer: Properly pass arguments by reference to WP_Customize_Setting->multidimensional(). see #19910, [20136], #20163. 2012-03-28 09:27:26 +00:00
class-wp-customize.php Theme Customizer: Move upload and image controls to subclasses. see #19910. 2012-03-29 06:35:54 +00:00
class-wp-editor.php Move editor-buttons.css to editor.css to reflect its current use. see #19843. 2012-03-24 13:43:52 +00:00
class-wp-error.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-wp-http-ixr-client.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-wp-theme.php Support page templates located in a subdirectory of the theme. fixes #11216. 2012-03-29 05:39:26 +00:00
class-wp-walker.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-wp-xmlrpc-server.php XMLRPC: Add the object ID to the return data of wp.uploadFile/metaWeblog.newMediaObject so that it can be used in other api calls e.g. setting featured image see #15098 props maxcutler 2012-03-28 12:00:50 +00:00
class-wp.php Deprecate ancient "debugging" tools. 2012-02-17 00:02:42 +00:00
class.wp-dependencies.php Use one space, not two, after trailing punctuation. fixes #19537 2011-12-13 23:45:31 +00:00
class.wp-scripts.php Pinking shears 6-20000 2012-02-27 19:46:52 +00:00
class.wp-styles.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
comment-template.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
comment.php Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948. 2012-03-24 15:24:31 +00:00
compat.php Restore compat for json_decode and json_encode. fixes #18015 for trunk. 2011-07-06 23:33:05 +00:00
cron.php Use site_url() to construct the cron url. Props SergeyBiryukov. see #13449 2012-02-14 17:53:35 +00:00
customize-controls.php Theme Customizer: Move upload and image controls to subclasses. see #19910. 2012-03-29 06:35:54 +00:00
default-constants.php Provide a DB fallback for keys in wp_salt(). Fall back when any secret is used more than once. Change how we detect a localized 'put your unique phrase here' -- eliminate $wp_default_secret_key and introduce $wp_secret_key_default to be added during the localized build process, not by translators. fixes #19599. 2012-01-27 18:52:20 +00:00
default-filters.php Pass post_type through sanitize_key() instead of sanitize_user(). Fixes #20202. 2012-03-21 15:04:00 +00:00
default-widgets.php Use get_taxonomies() instead of get_object_taxonomies() in the tag cloud widget. props GautamGupta, scribu. see #20238, see #16125. 2012-03-24 14:00:52 +00:00
deprecated.php Do not process <pre> tags with wpautop, replace them with placeholders, process the rest of the content and then put them back. Part props kurtpayne, see #19855 2012-03-28 15:43:31 +00:00
feed-atom-comments.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed-atom.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed-rdf.php
feed-rss.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed-rss2-comments.php Set up the post global variable in the comment feed loops so that any calls to post related template tags work correctly. 2011-09-19 12:39:59 +00:00
feed-rss2.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed.php split was deprecated in PHP 5.3.0, so use explode instead. Props garyc40. Fixes #16325. 2012-01-09 21:20:51 +00:00
formatting.php Do not process <pre> tags with wpautop, replace them with placeholders, process the rest of the content and then put them back. Part props kurtpayne, see #19855 2012-03-28 15:43:31 +00:00
functions.php Restore the h1 styling for wp_die(), primarily affects database down messages. See #17975 2012-03-18 11:51:25 +00:00
functions.wp-scripts.php User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302 2012-01-05 20:50:54 +00:00
functions.wp-styles.php User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302 2012-01-05 20:50:54 +00:00
general-template.php Don't try to load the visual editor for Amazon's Silk browser (Kindle Fire), as it doesn't work. Add in a sunrise clause for WebKit build 534. see #20012. 2012-02-17 00:21:00 +00:00
http.php Use one space, not two, after trailing punctuation. fixes #19537 2011-12-13 23:45:31 +00:00
kses.php Reduce memory usage in wp-includes/kses.php by switching unnecessary empty arrays to boolean. Fixes #20017. 2012-02-21 20:33:44 +00:00
l10n.php Load the new admin and network admin mo files, if present. see #19852 2012-01-27 22:19:56 +00:00
link-template.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
load.php Use is_rtl() for html direction when possible. In sites.php, language_attributes() will always exist (MU vestige). When the DB is dead, language_attributes() is worse than a simple is_rtl() check. is_rtl() exists here due to wp_load_translations_early(). see #18180. 2012-02-08 06:05:35 +00:00
locale.php Add a translator's comment. see #19924. 2012-02-06 19:43:26 +00:00
media.php Remove enqueue of wp_plupload_default_settings() from admin_enqueue_scripts(). For now, it needs to be enqueued selectively when needed. see #19910. 2012-03-21 03:21:07 +00:00
meta.php Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948. 2012-03-24 15:24:31 +00:00
ms-blogs.php Add refresh_blog_details action. Props mdawaffe. fixes #19987 2012-02-09 19:53:53 +00:00
ms-default-constants.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-default-filters.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-deprecated.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-files.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-functions.php Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948. 2012-03-24 15:24:31 +00:00
ms-load.php Introduce wp_load_translations_early(), which can be used before the locale is properly loaded in order to translate early error strings. Internationalize setup-config.php -- translators no longer have a reason to modify this file. fixes #18180. 2012-01-26 20:34:27 +00:00
ms-settings.php Introduce wp_load_translations_early(), which can be used before the locale is properly loaded in order to translate early error strings. Internationalize setup-config.php -- translators no longer have a reason to modify this file. fixes #18180. 2012-01-26 20:34:27 +00:00
nav-menu-template.php Clear strict notices for the walkers. fixes #19249 2012-01-04 23:03:46 +00:00
nav-menu.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
option.php Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948. 2012-03-24 15:24:31 +00:00
pluggable-deprecated.php Update @deprecated. Props scribu. see #18333 2011-08-05 18:44:43 +00:00
pluggable.php Internally cache return values of wp_salt(). Always run the filter. Big performance gains on a pageload that generates hundreds of nonces. see #19599. 2012-03-07 03:41:56 +00:00
plugin.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
post-template.php Introduce get_page_template_slug( $id = null ) to return a page's template (like "showcase.php"). Returns false if post ID is not a page, and an empty string for the default page template. Use the function across core. props billerickson for initial patch. fixes #18750. 2012-03-02 18:56:54 +00:00
post-thumbnail-template.php Split the main WP_Query posts query into two queries to avoid temp tables. Leverage cache to avoid second query in persistent cache environments. Props scribu, cheald, prettyboymp. see #18536 2012-02-14 15:09:35 +00:00
post.php Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948. 2012-03-24 15:24:31 +00:00
query.php Call _get_post_ancestors() from get_post_ancestors() if the ancestors property is not set in the post object. Works around situations where ancestors is not set in the cached version of the post object. see #18536 2012-03-12 18:23:48 +00:00
registration-functions.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
registration.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
rewrite.php Pinking shears 6-20000 2012-02-27 19:46:52 +00:00
rss-functions.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
rss.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
script-loader.php Move editor-buttons.css to editor.css to reflect its current use. see #19843. 2012-03-24 13:43:52 +00:00
shortcodes.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
taxonomy.php Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948. 2012-03-24 15:24:31 +00:00
template-loader.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
template.php Introduce get_page_template_slug( $id = null ) to return a page's template (like "showcase.php"). Returns false if post ID is not a page, and an empty string for the default page template. Use the function across core. props billerickson for initial patch. fixes #18750. 2012-03-02 18:56:54 +00:00
theme.php Introduce WP_Theme->exists() to check if the queried theme actually exists. WP_Theme->exists() is a subset of errors() -- a theme with errors may still exist, but a theme that does not exist has an error of theme_not_found. wp_get_theme() now returns false if the theme does not exist. Improve scandir() and get_files() logic. see #20103. 2012-03-29 02:59:48 +00:00
update.php Use correct filter name in wp_update_themes(): s/load-plugins/load-themes/. See r19683, #18876. 2012-03-24 14:07:12 +00:00
user.php Remove unused $field_no_prefix variable and associated documentation from sanitize_user_field(). Fixes #20274. 2012-03-21 17:33:11 +00:00
vars.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
version.php Compress scripts/styles: 3.4-alpha-20304. 2012-03-28 09:58:22 +00:00
widgets.php One newline is enough. 2012-01-05 20:10:39 +00:00
wlwmanifest.xml Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
wp-db.php Correct @since and remove invalid code example in wpdb::delete() documentation. Props GaryJ, scribu. See #18948. 2012-03-27 12:00:39 +00:00
wp-diff.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00