Ticket #34887: 34887.3.diff
File 34887.3.diff, 40.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/admin-ajax.php
diff --git a/src/wp-admin/admin-ajax.php b/src/wp-admin/admin-ajax.php index 5597aec..f3a816a 100644
a b 21 21 /** Load WordPress Bootstrap */ 22 22 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); 23 23 24 /** Allow for cross-domain requests (from the front end). */24 /** Allow for cross-domain requests (from the front end). */ 25 25 send_origin_headers(); 26 26 27 27 // Require an action parameter -
src/wp-admin/admin-post.php
diff --git a/src/wp-admin/admin-post.php b/src/wp-admin/admin-post.php index cb92699..d3135f2 100644
a b 18 18 else 19 19 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); 20 20 21 /** Allow for cross-domain requests (from the front end). */21 /** Allow for cross-domain requests (from the front end). */ 22 22 send_origin_headers(); 23 23 24 24 require_once(ABSPATH . 'wp-admin/includes/admin.php'); -
src/wp-admin/admin.php
diff --git a/src/wp-admin/admin.php b/src/wp-admin/admin.php index 2d08092..6720acb 100644
a b 146 146 * handled separately. 147 147 * 148 148 * The WP_MAX_MEMORY_LIMIT constant specifically defines the maximum memory limit available 149 * when in the administration back -end. The default is 256M, or 256 megabytes of memory.149 * when in the administration back end. The default is 256M, or 256 megabytes of memory. 150 150 * 151 151 * @since 3.0.0 152 152 * -
src/wp-admin/includes/class-wp-theme-install-list-table.php
diff --git a/src/wp-admin/includes/class-wp-theme-install-list-table.php b/src/wp-admin/includes/class-wp-theme-install-list-table.php index c2b0b6d..cfbd85d 100644
a b public function display_rows() { 241 241 * public 'rating' => float 80 242 242 * public 'num_ratings' => int 1 243 243 * public 'homepage' => string 'http://wordpress.org/themes/magazine-basic' 244 * public 'description' => string 'A basic magazine style layout with a fully customizable layout through a back end interface. Designed by <a href="http://bavotasan.com">c.bavota</a> of <a href="http://tinkerpriestmedia.com">Tinker Priest Media</a>.'244 * public 'description' => string 'A basic magazine style layout with a fully customizable layout through a back end interface. Designed by <a href="http://bavotasan.com">c.bavota</a> of <a href="http://tinkerpriestmedia.com">Tinker Priest Media</a>.' 245 245 * public 'download_link' => string 'http://wordpress.org/themes/download/magazine-basic.1.1.zip' 246 246 */ 247 247 public function single_row( $theme ) { -
src/wp-admin/includes/update-core.php
diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index 4408376..ed9b5ef 100644
a b function update_core($from, $to) { 1095 1095 1096 1096 // Clear the cache to prevent an update_option() from saving a stale db_version to the cache 1097 1097 wp_cache_flush(); 1098 // (Not all cache back ends listen to 'flush')1098 // (Not all cache back ends listen to 'flush') 1099 1099 wp_cache_delete( 'alloptions', 'options' ); 1100 1100 1101 1101 // Remove working directory -
src/wp-admin/js/customize-controls.js
diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index e78d2c9..84864de 100644
a b 1550 1550 // Watch for changes to the section state 1551 1551 inject = function ( sectionId ) { 1552 1552 var parentContainer; 1553 if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the front end1553 if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the front end 1554 1554 return; 1555 1555 } 1556 1556 // Wait for the section to be registered … … 2993 2993 return match ? match[0] : ''; 2994 2994 }); 2995 2995 2996 // Limit the URL to internal, front -end links.2996 // Limit the URL to internal, front end links. 2997 2997 // 2998 // If the front end and the admin are served from the same domain, load the2998 // If the front end and the admin are served from the same domain, load the 2999 2999 // preview over ssl if the Customizer is being loaded over ssl. This avoids 3000 // insecure content warnings. This is not attempted if the admin and front end3001 // are on different domains to avoid the case where the front end doesn't have3000 // insecure content warnings. This is not attempted if the admin and front end 3001 // are on different domains to avoid the case where the front end doesn't have 3002 3002 // ssl certs. 3003 3003 3004 3004 this.add( 'previewUrl', params.previewUrl ).setter( function( to ) { -
src/wp-admin/js/revisions.js
diff --git a/src/wp-admin/js/revisions.js b/src/wp-admin/js/revisions.js index 1d7437c..5d3fe90 100644
a b window.wp = window.wp || {}; 14 14 */ 15 15 revisions = wp.revisions = { model: {}, view: {}, controller: {} }; 16 16 17 // Link post revisions data served from the back -end.17 // Link post revisions data served from the back end. 18 18 revisions.settings = window._wpRevisionsSettings || {}; 19 19 20 20 // For debugging -
src/wp-admin/my-sites.php
diff --git a/src/wp-admin/my-sites.php b/src/wp-admin/my-sites.php index 8970c9f..efefb44 100644
a b 39 39 'id' => 'overview', 40 40 'title' => __('Overview'), 41 41 'content' => 42 '<p>' . __('This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. They can use the links under each site to visit either the front end or the dashboard for that site.') . '</p>' .42 '<p>' . __('This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. They can use the links under each site to visit either the front end or the dashboard for that site.') . '</p>' . 43 43 '<p>' . __('Up until WordPress version 3.0, what is now called a Multisite Network had to be installed separately as WordPress MU (multi-user).') . '</p>' 44 44 ) ); 45 45 -
src/wp-admin/network/sites.php
diff --git a/src/wp-admin/network/sites.php b/src/wp-admin/network/sites.php index a0b699f..79e1dea 100644
a b 35 35 '<li>' . __('Dashboard leads to the Dashboard for that site.') . '</li>' . 36 36 '<li>' . __('Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.') . '</li>' . 37 37 '<li>' . __('Delete which is a permanent action after the confirmation screens.') . '</li>' . 38 '<li>' . __('Visit to go to the front end site live.') . '</li></ul>' .38 '<li>' . __('Visit to go to the front end site live.') . '</li></ul>' . 39 39 '<p>' . __('The site ID is used internally, and is not shown on the front end of the site or to users/viewers.') . '</p>' . 40 40 '<p>' . __('Clicking on bold headings can re-sort this table.') . '</p>' 41 41 ) ); -
src/wp-content/themes/twentyfifteen/inc/custom-header.php
diff --git a/src/wp-content/themes/twentyfifteen/inc/custom-header.php b/src/wp-content/themes/twentyfifteen/inc/custom-header.php index 10d0ef1..b32a163 100644
a b function twentyfifteen_header_style() { 186 186 endif; // twentyfifteen_header_style 187 187 188 188 /** 189 * Enqueues front -end CSS for the header background color.189 * Enqueues front end CSS for the header background color. 190 190 * 191 191 * @since Twenty Fifteen 1.0 192 192 * … … function twentyfifteen_header_background_color_css() { 232 232 add_action( 'wp_enqueue_scripts', 'twentyfifteen_header_background_color_css', 11 ); 233 233 234 234 /** 235 * Enqueues front -end CSS for the sidebar text color.235 * Enqueues front end CSS for the sidebar text color. 236 236 * 237 237 * @since Twenty Fifteen 1.0 238 238 */ -
src/wp-content/themes/twentyfifteen/inc/customizer.php
diff --git a/src/wp-content/themes/twentyfifteen/inc/customizer.php b/src/wp-content/themes/twentyfifteen/inc/customizer.php index 93b66e5..17ed422 100644
a b function twentyfifteen_sanitize_color_scheme( $value ) { 239 239 endif; // twentyfifteen_sanitize_color_scheme 240 240 241 241 /** 242 * Enqueues front -end CSS for color scheme.242 * Enqueues front end CSS for color scheme. 243 243 * 244 244 * @since Twenty Fifteen 1.0 245 245 * -
src/wp-content/themes/twentyfourteen/inc/featured-content.php
diff --git a/src/wp-content/themes/twentyfourteen/inc/featured-content.php b/src/wp-content/themes/twentyfourteen/inc/featured-content.php index 5b64910..ffeb993 100644
a b 8 8 * For maximum compatibility with different methods of posting users 9 9 * will designate a featured post tag to associate posts with. Since 10 10 * this tag now has special meaning beyond that of a normal tags, users 11 * will have the ability to hide it from the front -end of their site.11 * will have the ability to hide it from the front end of their site. 12 12 */ 13 13 class Featured_Content { 14 14 … … public static function init() { 95 95 } 96 96 97 97 /** 98 * Hide "featured" tag from the front -end.98 * Hide "featured" tag from the front end. 99 99 * 100 100 * Has to run on wp_loaded so that the preview filters of the Customizer 101 101 * have a chance to alter the value. … … public static function delete_post_tag( $tag_id ) { 288 288 } 289 289 290 290 /** 291 * Hide featured tag from displaying when global terms are queried from the front -end.291 * Hide featured tag from displaying when global terms are queried from the front end. 292 292 * 293 293 * Hooks into the "get_terms" filter. 294 294 * … … public static function delete_post_tag( $tag_id ) { 304 304 */ 305 305 public static function hide_featured_term( $terms, $taxonomies, $args ) { 306 306 307 // This filter is only appropriate on the front -end.307 // This filter is only appropriate on the front end. 308 308 if ( is_admin() ) { 309 309 return $terms; 310 310 } … … public static function hide_featured_term( $terms, $taxonomies, $args ) { 336 336 337 337 /** 338 338 * Hide featured tag from display when terms associated with a post object 339 * are queried from the front -end.339 * are queried from the front end. 340 340 * 341 341 * Hooks into the "get_the_terms" filter. 342 342 * … … public static function hide_featured_term( $terms, $taxonomies, $args ) { 353 353 */ 354 354 public static function hide_the_featured_term( $terms, $id, $taxonomy ) { 355 355 356 // This filter is only appropriate on the front -end.356 // This filter is only appropriate on the front end. 357 357 if ( is_admin() ) { 358 358 return $terms; 359 359 } -
src/wp-content/themes/twentythirteen/inc/custom-header.php
diff --git a/src/wp-content/themes/twentythirteen/inc/custom-header.php b/src/wp-content/themes/twentythirteen/inc/custom-header.php index 6a9a6ad..9e40bfe 100644
a b 13 13 * Set up the WordPress core custom header arguments and settings. 14 14 * 15 15 * @uses add_theme_support() to register support for 3.4 and up. 16 * @uses twentythirteen_header_style() to style front -end.16 * @uses twentythirteen_header_style() to style front end. 17 17 * @uses twentythirteen_admin_header_style() to style wp-admin form. 18 18 * @uses twentythirteen_admin_header_image() to add custom markup to wp-admin form. 19 19 * @uses register_default_headers() to set up the bundled header images. -
src/wp-content/themes/twentytwelve/functions.php
diff --git a/src/wp-content/themes/twentytwelve/functions.php b/src/wp-content/themes/twentytwelve/functions.php index 8d5facf..ef933e5 100644
a b function twentytwelve_get_font_url() { 124 124 } 125 125 126 126 /** 127 * Enqueue scripts and styles for front -end.127 * Enqueue scripts and styles for front end. 128 128 * 129 129 * @since Twenty Twelve 1.0 130 130 */ -
src/wp-content/themes/twentytwelve/inc/custom-header.php
diff --git a/src/wp-content/themes/twentytwelve/inc/custom-header.php b/src/wp-content/themes/twentytwelve/inc/custom-header.php index 2a886bd..baedf18 100644
a b 13 13 * Set up the WordPress core custom header arguments and settings. 14 14 * 15 15 * @uses add_theme_support() to register support for 3.4 and up. 16 * @uses twentytwelve_header_style() to style front -end.16 * @uses twentytwelve_header_style() to style front end. 17 17 * @uses twentytwelve_admin_header_style() to style wp-admin form. 18 18 * @uses twentytwelve_admin_header_image() to add custom markup to wp-admin form. 19 19 * -
src/wp-includes/cache.php
diff --git a/src/wp-includes/cache.php b/src/wp-includes/cache.php index aea9c13..181ac5a 100644
a b function wp_cache_add_non_persistent_groups( $groups ) { 247 247 /** 248 248 * Reset internal cache keys and structures. 249 249 * 250 * If the cache back end uses global blog or site IDs as part of its cache keys,251 * this function instructs the back end to reset those keys and perform any cleanup250 * If the cache back end uses global blog or site IDs as part of its cache keys, 251 * this function instructs the back end to reset those keys and perform any cleanup 252 252 * since blog or site IDs have changed since cache init. 253 253 * 254 254 * This function is deprecated. Use wp_cache_switch_to_blog() instead of this -
src/wp-includes/class-wp-customize-manager.php
diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 66fb7ff..b7302ab 100644
a b public function add_setting( $id, $args = array() ) { 1069 1069 * that have no corresponding setting created. 1070 1070 * 1071 1071 * This is a mechanism to "wake up" settings that have been dynamically created 1072 * on the front end and have been sent to WordPress in `$_POST['customized']`. When WP1072 * on the front end and have been sent to WordPress in `$_POST['customized']`. When WP 1073 1073 * loads, the dynamically-created settings then will get created and previewed 1074 1074 * even though they are not directly created statically with code. 1075 1075 * … … public function get_autofocus() { 1634 1634 */ 1635 1635 public function customize_pane_settings() { 1636 1636 /* 1637 * If the front end and the admin are served from the same domain, load the1637 * If the front end and the admin are served from the same domain, load the 1638 1638 * preview over ssl if the Customizer is being loaded over ssl. This avoids 1639 * insecure content warnings. This is not attempted if the admin and front end1640 * are on different domains to avoid the case where the front end doesn't have1639 * insecure content warnings. This is not attempted if the admin and front end 1640 * are on different domains to avoid the case where the front end doesn't have 1641 1641 * ssl certs. Domain mapping plugins can allow other urls in these conditions 1642 1642 * using the customize_allowed_urls filter. 1643 1643 */ … … public function customize_pane_settings() { 1714 1714 } 1715 1715 } 1716 1716 1717 // Pass to front end the Customizer construct being deeplinked.1717 // Pass to front end the Customizer construct being deeplinked. 1718 1718 foreach ( $this->get_autofocus() as $type => $id ) { 1719 1719 $can_autofocus = ( 1720 1720 ( 'control' === $type && $this->get_control( $id ) && $this->get_control( $id )->check_capabilities() ) -
src/wp-includes/class-wp.php
diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php index 14beeaa..5b03d0f 100644
a b public function parse_request($extra_query_vars = '') { 319 319 if ( $t->query_var && isset( $this->query_vars[$t->query_var] ) ) 320 320 $this->query_vars[$t->query_var] = str_replace( ' ', '+', $this->query_vars[$t->query_var] ); 321 321 322 // Don't allow non-public taxonomies to be queried from the front -end.322 // Don't allow non-public taxonomies to be queried from the front end. 323 323 if ( ! is_admin() ) { 324 324 foreach ( get_taxonomies( array( 'public' => false ), 'objects' ) as $taxonomy => $t ) { 325 325 /* -
src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
diff --git a/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php b/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php index 073423e..6d17720 100644
a b public static function sort_wp_get_nav_menu_items( $items, $menu, $args ) { 494 494 // @todo We should probably re-apply some constraints imposed by $args. 495 495 unset( $args['include'] ); 496 496 497 // Remove invalid items only in front end.497 // Remove invalid items only in front end. 498 498 if ( ! is_admin() ) { 499 499 $items = array_filter( $items, '_is_valid_nav_menu_item' ); 500 500 } -
src/wp-includes/functions.wp-scripts.php
diff --git a/src/wp-includes/functions.wp-scripts.php b/src/wp-includes/functions.wp-scripts.php index c83a9d1..a726a24 100644
a b function wp_deregister_script( $handle ) { 191 191 ); 192 192 193 193 if ( in_array( $handle, $no ) ) { 194 $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front end theme, use the %2$s hook.' ),194 $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front end theme, use the %2$s hook.' ), 195 195 "<code>$handle</code>", '<code>wp_enqueue_scripts</code>' ); 196 196 _doing_it_wrong( __FUNCTION__, $message, '3.6' ); 197 197 return; -
src/wp-includes/js/heartbeat.js
diff --git a/src/wp-includes/js/heartbeat.js b/src/wp-includes/js/heartbeat.js index 9f02582..9867ceb 100644
a b 141 141 settings.mainInterval = settings.minimalInterval; 142 142 } 143 143 144 // 'screenId' can be added from settings on the front -end where the JS global 'pagenow' is not set144 // 'screenId' can be added from settings on the front end where the JS global 'pagenow' is not set 145 145 if ( ! settings.screenId ) { 146 146 settings.screenId = options.screenId || 'front'; 147 147 } -
src/wp-includes/js/plupload/wp-plupload.js
diff --git a/src/wp-includes/js/plupload/wp-plupload.js b/src/wp-includes/js/plupload/wp-plupload.js index 09a37ce..88f0170 100644
a b window.wp = window.wp || {}; 14 14 * 15 15 * The Plupload library provides cross-browser uploader UI integration. 16 16 * This object bridges the Plupload API to integrate uploads into the 17 * WordPress back -end and the WordPress media experience.17 * WordPress back end and the WordPress media experience. 18 18 * 19 19 * @param {object} options The options passed to the new plupload instance. 20 20 * @param {object} options.container The id of uploader container. -
src/wp-includes/js/swfupload/swfupload.js
diff --git a/src/wp-includes/js/swfupload/swfupload.js b/src/wp-includes/js/swfupload/swfupload.js index 9c950d4..bbaa5ac 100644
a b SWFUpload.completeURL = function(url) { 97 97 if (typeof(url) !== "string" || url.match(/^https?:\/\//i) || url.match(/^\//)) { 98 98 return url; 99 99 } 100 100 101 101 var currentURL = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : ""); 102 102 103 103 var indexSlash = window.location.pathname.lastIndexOf("/"); 104 104 if (indexSlash <= 0) { 105 105 path = "/"; 106 106 } else { 107 107 path = window.location.pathname.substr(0, indexSlash) + "/"; 108 108 } 109 109 110 110 return /*currentURL +*/ path + url; 111 111 112 112 }; 113 113 114 114 … … SWFUpload.prototype.initSettings = function () { 122 122 this.ensureDefault = function (settingName, defaultValue) { 123 123 this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName]; 124 124 }; 125 126 // Upload back end settings125 126 // Upload back end settings 127 127 this.ensureDefault("upload_url", ""); 128 128 this.ensureDefault("preserve_relative_urls", false); 129 129 this.ensureDefault("file_post_name", "Filedata"); … … SWFUpload.prototype.initSettings = function () { 132 132 this.ensureDefault("requeue_on_error", false); 133 133 this.ensureDefault("http_success", []); 134 134 this.ensureDefault("assume_success_timeout", 0); 135 135 136 136 // File Settings 137 137 this.ensureDefault("file_types", "*.*"); 138 138 this.ensureDefault("file_types_description", "All Files"); … … SWFUpload.prototype.initSettings = function () { 143 143 // Flash Settings 144 144 this.ensureDefault("flash_url", "swfupload.swf"); 145 145 this.ensureDefault("prevent_swf_caching", true); 146 146 147 147 // Button Settings 148 148 this.ensureDefault("button_image_url", ""); 149 149 this.ensureDefault("button_width", 1); … … SWFUpload.prototype.initSettings = function () { 158 158 this.ensureDefault("button_placeholder", null); 159 159 this.ensureDefault("button_cursor", SWFUpload.CURSOR.ARROW); 160 160 this.ensureDefault("button_window_mode", SWFUpload.WINDOW_MODE.WINDOW); 161 161 162 162 // Debug Settings 163 163 this.ensureDefault("debug", false); 164 164 this.settings.debug_enabled = this.settings.debug; // Here to maintain v2 API 165 165 166 166 // Event Handlers 167 167 this.settings.return_upload_start_handler = this.returnUploadStart; 168 168 this.ensureDefault("swfupload_loaded_handler", null); … … SWFUpload.prototype.initSettings = function () { 170 170 this.ensureDefault("file_queued_handler", null); 171 171 this.ensureDefault("file_queue_error_handler", null); 172 172 this.ensureDefault("file_dialog_complete_handler", null); 173 173 174 174 this.ensureDefault("upload_start_handler", null); 175 175 this.ensureDefault("upload_progress_handler", null); 176 176 this.ensureDefault("upload_error_handler", null); 177 177 this.ensureDefault("upload_success_handler", null); 178 178 this.ensureDefault("upload_complete_handler", null); 179 179 180 180 this.ensureDefault("debug_handler", this.debugMessage); 181 181 182 182 this.ensureDefault("custom_settings", {}); 183 183 184 184 // Other settings 185 185 this.customSettings = this.settings.custom_settings; 186 186 187 187 // Update the flash url if needed 188 188 if (!!this.settings.prevent_swf_caching) { 189 189 this.settings.flash_url = this.settings.flash_url + (this.settings.flash_url.indexOf("?") < 0 ? "?" : "&") + "preventswfcaching=" + new Date().getTime(); 190 190 } 191 191 192 192 if (!this.settings.preserve_relative_urls) { 193 193 //this.settings.flash_url = SWFUpload.completeURL(this.settings.flash_url); // Don't need to do this one since flash doesn't look at it 194 194 this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url); 195 195 this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url); 196 196 } 197 197 198 198 delete this.ensureDefault; 199 199 }; 200 200 … … SWFUpload.prototype.loadFlash = function () { 223 223 if (window[this.movieName] == undefined) { 224 224 window[this.movieName] = this.getMovieElement(); 225 225 } 226 226 227 227 }; 228 228 229 229 // Private: getFlashHTML generates the object tag needed to embed the flash in to the document … … SWFUpload.prototype.getFlashVars = function () { 245 245 // Build a string from the post param object 246 246 var paramString = this.buildParamString(); 247 247 var httpSuccessString = this.settings.http_success.join(","); 248 248 249 249 // Build the parameter string 250 250 return ["movieName=", encodeURIComponent(this.movieName), 251 251 "&uploadURL=", encodeURIComponent(this.settings.upload_url), … … SWFUpload.prototype.getMovieElement = function () { 284 284 if (this.movieElement === null) { 285 285 throw "Could not find Flash element"; 286 286 } 287 287 288 288 return this.movieElement; 289 289 }; 290 290 291 291 // Private: buildParamString takes the name/value pairs in the post_params setting object 292 292 // and joins them up in to a string formatted "name=value&name=value" 293 293 SWFUpload.prototype.buildParamString = function () { 294 var postParams = this.settings.post_params; 294 var postParams = this.settings.post_params; 295 295 var paramStringPairs = []; 296 296 297 297 if (typeof(postParams) === "object") { … … SWFUpload.prototype.destroy = function () { 313 313 try { 314 314 // Make sure Flash is done before we try to remove it 315 315 this.cancelUpload(null, false); 316 316 317 317 318 318 // Remove the SWFUpload DOM nodes 319 319 var movieElement = null; 320 320 movieElement = this.getMovieElement(); 321 321 322 322 if (movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE 323 323 // Loop through all the movie's properties and remove all function references (DOM/JS IE 6/7 memory leak workaround) 324 324 for (var i in movieElement) { … … SWFUpload.prototype.destroy = function () { 334 334 movieElement.parentNode.removeChild(movieElement); 335 335 } catch (ex) {} 336 336 } 337 337 338 338 // Remove IE form fix reference 339 339 window[this.movieName] = null; 340 340 … … SWFUpload.prototype.destroy = function () { 347 347 this.customSettings = null; 348 348 this.eventQueue = null; 349 349 this.movieName = null; 350 351 350 351 352 352 return true; 353 353 } catch (ex2) { 354 354 return false; … … SWFUpload.prototype.getSetting = function (name) { 440 440 // bugs in the ExternalInterface library. 441 441 SWFUpload.prototype.callFlash = function (functionName, argumentArray) { 442 442 argumentArray = argumentArray || []; 443 443 444 444 var movieElement = this.getMovieElement(); 445 445 var returnValue, returnString; 446 446 … … SWFUpload.prototype.callFlash = function (functionName, argumentArray) { 451 451 } catch (ex) { 452 452 throw "Call to " + functionName + " failed"; 453 453 } 454 454 455 455 // Unescape file post param values 456 456 if (returnValue != undefined && typeof returnValue.post === "object") { 457 457 returnValue = this.unescapeFilePostParams(returnValue); … … SWFUpload.prototype.selectFiles = function () { 485 485 486 486 487 487 // Public: startUpload starts uploading the first file in the queue unless 488 // the optional parameter 'fileID' specifies the ID 488 // the optional parameter 'fileID' specifies the ID 489 489 SWFUpload.prototype.startUpload = function (fileID) { 490 490 this.callFlash("StartUpload", [fileID]); 491 491 }; … … SWFUpload.prototype.getStats = function () { 519 519 return this.callFlash("GetStats"); 520 520 }; 521 521 522 // Public: setStats changes the SWFUpload statistics. You shouldn't need to 522 // Public: setStats changes the SWFUpload statistics. You shouldn't need to 523 523 // change the statistics but you can. Changing the statistics does not 524 524 // affect SWFUpload accept for the successful_uploads count which is used 525 525 // by the upload_limit setting to determine how many files the user may upload. … … SWFUpload.prototype.setHTTPSuccess = function (http_status_codes) { 622 622 if (typeof http_status_codes === "string") { 623 623 http_status_codes = http_status_codes.replace(" ", "").split(","); 624 624 } 625 625 626 626 this.settings.http_success = http_status_codes; 627 627 this.callFlash("SetHTTPSuccess", [http_status_codes]); 628 628 }; … … SWFUpload.prototype.setButtonImageURL = function (buttonImageURL) { 644 644 if (buttonImageURL == undefined) { 645 645 buttonImageURL = ""; 646 646 } 647 647 648 648 this.settings.button_image_url = buttonImageURL; 649 649 this.callFlash("SetButtonImageURL", [buttonImageURL]); 650 650 }; … … SWFUpload.prototype.setButtonImageURL = function (buttonImageURL) { 653 653 SWFUpload.prototype.setButtonDimensions = function (width, height) { 654 654 this.settings.button_width = width; 655 655 this.settings.button_height = height; 656 656 657 657 var movie = this.getMovieElement(); 658 658 if (movie != undefined) { 659 659 movie.style.width = width + "px"; 660 660 movie.style.height = height + "px"; 661 661 } 662 662 663 663 this.callFlash("SetButtonDimensions", [width, height]); 664 664 }; 665 665 // Public: setButtonText Changes the text overlaid on the button … … SWFUpload.prototype.setButtonCursor = function (cursor) { 700 700 Flash Event Interfaces 701 701 These functions are used by Flash to trigger the various 702 702 events. 703 703 704 704 All these functions a Private. 705 705 706 706 Because the ExternalInterface library is buggy the event calls 707 707 are added to a queue and the queue then executed by a setTimeout. 708 708 This ensures that events are executed in a determinate order and that … … SWFUpload.prototype.setButtonCursor = function (cursor) { 711 711 712 712 SWFUpload.prototype.queueEvent = function (handlerName, argumentArray) { 713 713 // Warning: Don't call this.debug inside here or you'll create an infinite loop 714 714 715 715 if (argumentArray == undefined) { 716 716 argumentArray = []; 717 717 } else if (!(argumentArray instanceof Array)) { 718 718 argumentArray = [argumentArray]; 719 719 } 720 720 721 721 var self = this; 722 722 if (typeof this.settings[handlerName] === "function") { 723 723 // Queue the event 724 724 this.eventQueue.push(function () { 725 725 this.settings[handlerName].apply(this, argumentArray); 726 726 }); 727 727 728 728 // Execute the next queued event 729 729 setTimeout(function () { 730 730 self.executeNextEvent(); 731 731 }, 0); 732 732 733 733 } else if (this.settings[handlerName] !== null) { 734 734 throw "Event handler " + handlerName + " is unknown or is not a function"; 735 735 } … … SWFUpload.prototype.flashReady = function () { 793 793 } 794 794 795 795 this.cleanUp(movieElement); 796 796 797 797 this.queueEvent("swfupload_loaded_handler"); 798 798 }; 799 799 … … SWFUpload.prototype.cleanUp = function (movieElement) { 814 814 } 815 815 } 816 816 } catch (ex1) { 817 817 818 818 } 819 819 820 820 // Fix Flashes own cleanup code so if the SWFMovie was removed from the page … … SWFUpload.prototype.cleanUp = function (movieElement) { 825 825 instance[name] = null; 826 826 } 827 827 } catch (flashEx) { 828 828 829 829 } 830 830 }; 831 831 … … SWFUpload.prototype.returnUploadStart = function (file) { 876 876 if (returnValue === undefined) { 877 877 returnValue = true; 878 878 } 879 879 880 880 returnValue = !!returnValue; 881 881 882 882 this.callFlash("ReturnUploadStart", [returnValue]); 883 883 }; 884 884 … … SWFUpload.prototype.debug = function (message) { 918 918 itself to the body if necessary. 919 919 920 920 The console is automatically scrolled as messages appear. 921 921 922 922 If you are using your own debug handler or when you deploy to production and 923 923 have debug disabled you can remove these functions to reduce the file size 924 924 and complexity. 925 925 ********************************** */ 926 926 927 927 // Private: debugMessage is the default debug_handler. If you want to print debug messages 928 928 // call the debug() function. When overriding the function your own function should 929 929 // check to see if the debug setting is true before outputting debug information. -
src/wp-includes/js/tinymce/tinymce.js
diff --git a/src/wp-includes/js/tinymce/tinymce.js b/src/wp-includes/js/tinymce/tinymce.js index 62bbf90..aa7a0ca 100644
a b 82 82 83 83 target[fragments[fragments.length - 1]] = modules[id]; 84 84 } 85 85 86 86 // Expose private modules for unit tests 87 87 if (exports.AMDLC_TESTS) { 88 88 privateModules = exports.privateModules || {}; … … define("tinymce/util/JSON", [], function() { 34254 34254 */ 34255 34255 34256 34256 /** 34257 * This class enables you to use JSON-RPC to call back end methods.34257 * This class enables you to use JSON-RPC to call back end methods. 34258 34258 * 34259 34259 * @class tinymce.util.JSONRequest 34260 34260 * @example … … define("tinymce/ui/Throbber", [ 40664 40664 }); 40665 40665 40666 40666 expose(["tinymce/dom/EventUtils","tinymce/dom/Sizzle","tinymce/Env","tinymce/util/Tools","tinymce/dom/DomQuery","tinymce/html/Styles","tinymce/dom/TreeWalker","tinymce/html/Entities","tinymce/dom/DOMUtils","tinymce/dom/ScriptLoader","tinymce/AddOnManager","tinymce/dom/RangeUtils","tinymce/html/Node","tinymce/html/Schema","tinymce/html/SaxParser","tinymce/html/DomParser","tinymce/html/Writer","tinymce/html/Serializer","tinymce/dom/Serializer","tinymce/util/VK","tinymce/dom/ControlSelection","tinymce/dom/BookmarkManager","tinymce/dom/Selection","tinymce/Formatter","tinymce/UndoManager","tinymce/EditorCommands","tinymce/util/URI","tinymce/util/Class","tinymce/util/EventDispatcher","tinymce/util/Observable","tinymce/ui/Selector","tinymce/ui/Collection","tinymce/ui/ReflowQueue","tinymce/ui/Control","tinymce/ui/Factory","tinymce/ui/KeyboardNavigation","tinymce/ui/Container","tinymce/ui/DragHelper","tinymce/ui/Scrollable","tinymce/ui/Panel","tinymce/ui/Movable","tinymce/ui/Resizable","tinymce/ui/FloatPanel","tinymce/ui/Window","tinymce/ui/MessageBox","tinymce/WindowManager","tinymce/EditorObservable","tinymce/Shortcuts","tinymce/util/Promise","tinymce/Editor","tinymce/util/I18n","tinymce/FocusManager","tinymce/EditorManager","tinymce/util/XHR","tinymce/util/JSON","tinymce/util/JSONRequest","tinymce/util/JSONP","tinymce/util/LocalStorage","tinymce/Compat","tinymce/ui/Layout","tinymce/ui/AbsoluteLayout","tinymce/ui/Tooltip","tinymce/ui/Widget","tinymce/ui/Button","tinymce/ui/ButtonGroup","tinymce/ui/Checkbox","tinymce/ui/ComboBox","tinymce/ui/ColorBox","tinymce/ui/PanelButton","tinymce/ui/ColorButton","tinymce/util/Color","tinymce/ui/ColorPicker","tinymce/ui/Path","tinymce/ui/ElementPath","tinymce/ui/FormItem","tinymce/ui/Form","tinymce/ui/FieldSet","tinymce/ui/FilePicker","tinymce/ui/FitLayout","tinymce/ui/FlexLayout","tinymce/ui/FlowLayout","tinymce/ui/FormatControls","tinymce/ui/GridLayout","tinymce/ui/Iframe","tinymce/ui/Label","tinymce/ui/Toolbar","tinymce/ui/MenuBar","tinymce/ui/MenuButton","tinymce/ui/MenuItem","tinymce/ui/Menu","tinymce/ui/ListBox","tinymce/ui/Radio","tinymce/ui/Rect","tinymce/ui/ResizeHandle","tinymce/ui/Slider","tinymce/ui/Spacer","tinymce/ui/SplitButton","tinymce/ui/StackLayout","tinymce/ui/TabPanel","tinymce/ui/TextBox","tinymce/ui/Throbber"]); 40667 })(this); 40668 No newline at end of file 40667 })(this); -
src/wp-includes/nav-menu.php
diff --git a/src/wp-includes/nav-menu.php b/src/wp-includes/nav-menu.php index 4509389..aea07a6 100644
a b function wp_get_nav_menu_items( $menu, $args = array() ) { 666 666 667 667 $items = array_map( 'wp_setup_nav_menu_item', $items ); 668 668 669 if ( ! is_admin() ) { // Remove invalid items only in front end669 if ( ! is_admin() ) { // Remove invalid items only in front end 670 670 $items = array_filter( $items, '_is_valid_nav_menu_item' ); 671 671 } 672 672 -
src/wp-includes/post.php
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index cc8e843..15265bc 100644
a b function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) 902 902 * @type string $description A short descriptive summary of what the post type is. 903 903 * Default empty. 904 904 * @type bool $public Whether a post type is intended for use publicly either via 905 * the admin interface or by front -end users. While the default905 * the admin interface or by front end users. While the default 906 906 * settings of $exclude_from_search, $publicly_queryable, $show_ui, 907 907 * and $show_in_nav_menus are inherited from public, each does not 908 908 * rely on this relationship and controls a very specific intention. … … function wp_get_attachment_url( $post_id = 0 ) { 4896 4896 $url = get_the_guid( $post->ID ); 4897 4897 } 4898 4898 4899 // On SSL front -end, URLs should be HTTPS.4899 // On SSL front end, URLs should be HTTPS. 4900 4900 if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] ) { 4901 4901 $url = set_url_scheme( $url ); 4902 4902 } -
src/wp-includes/taxonomy.php
diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 78dd52c..a37f636 100644
a b function is_taxonomy_hierarchical($taxonomy) { 271 271 * @since 2.3.0 272 272 * @since 4.2.0 Introduced `show_in_quick_edit` argument. 273 273 * @since 4.4.0 The `show_ui` argument is now enforced on the term editing screen. 274 * @since 4.4.0 The `public` argument now controls whether the taxonomy can be queried on the front -end.274 * @since 4.4.0 The `public` argument now controls whether the taxonomy can be queried on the front end. 275 275 * 276 276 * @global array $wp_taxonomies Registered taxonomies. 277 277 * @global WP $wp WP instance. -
src/wp-includes/user.php
diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index e00c7ed..6eff20e 100644
a b function validate_username( $username ) { 1285 1285 * https. Default false. 1286 1286 * @type string $user_registered Date the user registered. Format is 'Y-m-d H:i:s'. 1287 1287 * @type string|bool $show_admin_bar_front Whether to display the Admin Bar for the user on the 1288 * site's front end. Default true.1288 * site's front end. Default true. 1289 1289 * @type string $role User's role. 1290 1290 * } 1291 1291 * @return int|WP_Error The newly created user's ID or a WP_Error object if the user could not -
src/wp-includes/widgets.php
diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php index b24b465..a6045f6 100644
a b function dynamic_sidebar( $index = 1 ) { 638 638 /** 639 639 * Fires before widgets are rendered in a dynamic sidebar. 640 640 * 641 * Note: The action also fires for empty sidebars, and on both the front -end642 * and back -end, including the Inactive Widgets sidebar on the Widgets screen.641 * Note: The action also fires for empty sidebars, and on both the front end 642 * and back end, including the Inactive Widgets sidebar on the Widgets screen. 643 643 * 644 644 * @since 3.9.0 645 645 * … … function dynamic_sidebar( $index = 1 ) { 674 674 /** 675 675 * Filter the parameters passed to a widget's display callback. 676 676 * 677 * Note: The filter is evaluated on both the front -end and back-end,677 * Note: The filter is evaluated on both the front end and back end, 678 678 * including for the Inactive Widgets sidebar on the Widgets screen. 679 679 * 680 680 * @since 2.5.0 … … function dynamic_sidebar( $index = 1 ) { 710 710 /** 711 711 * Fires before a widget's display callback is called. 712 712 * 713 * Note: The action fires on both the front -end and back-end, including713 * Note: The action fires on both the front end and back end, including 714 714 * for widgets in the Inactive Widgets sidebar on the Widgets screen. 715 715 * 716 716 * The action is not fired for empty sidebars. … … function dynamic_sidebar( $index = 1 ) { 722 722 * 723 723 * @type string $name Name of the widget. 724 724 * @type string $id Widget ID. 725 * @type array|callable $callback When the hook is fired on the front -end, $callback is an array726 * containing the widget object. Fired on the back -end, $callback725 * @type array|callable $callback When the hook is fired on the front end, $callback is an array 726 * containing the widget object. Fired on the back end, $callback 727 727 * is 'wp_widget_control', see $_callback. 728 728 * @type array $params An associative array of multi-widget arguments. 729 729 * @type string $classname CSS class applied to the widget container. 730 730 * @type string $description The widget description. 731 * @type array $_callback When the hook is fired on the back -end, $_callback is populated731 * @type array $_callback When the hook is fired on the back end, $_callback is populated 732 732 * with an array containing the widget object, see $callback. 733 733 * } 734 734 */ … … function dynamic_sidebar( $index = 1 ) { 743 743 /** 744 744 * Fires after widgets are rendered in a dynamic sidebar. 745 745 * 746 * Note: The action also fires for empty sidebars, and on both the front -end747 * and back -end, including the Inactive Widgets sidebar on the Widgets screen.746 * Note: The action also fires for empty sidebars, and on both the front end 747 * and back end, including the Inactive Widgets sidebar on the Widgets screen. 748 748 * 749 749 * @since 3.9.0 750 750 * … … function dynamic_sidebar( $index = 1 ) { 757 757 /** 758 758 * Filter whether a sidebar has widgets. 759 759 * 760 * Note: The filter is also evaluated for empty sidebars, and on both the front -end761 * and back -end, including the Inactive Widgets sidebar on the Widgets screen.760 * Note: The filter is also evaluated for empty sidebars, and on both the front end 761 * and back end, including the Inactive Widgets sidebar on the Widgets screen. 762 762 * 763 763 * @since 3.9.0 764 764 * … … function dynamic_sidebar( $index = 1 ) { 770 770 } 771 771 772 772 /** 773 * Whether widget is displayed on the front -end.773 * Whether widget is displayed on the front end. 774 774 * 775 775 * Either $callback or $id_base can be used 776 776 * $id_base is the first argument when extending WP_Widget class -
src/wp-signup.php
diff --git a/src/wp-signup.php b/src/wp-signup.php index 6852bb8..394df17 100644
a b function do_signup_header() { 48 48 do_action( 'before_signup_header' ); 49 49 50 50 /** 51 * Prints styles for front -end Multisite signup pages51 * Prints styles for front end Multisite signup pages 52 52 * 53 53 * @since MU 54 54 */ … … function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $use 758 758 */ 759 759 function signup_get_available_languages() { 760 760 /** 761 * Filter the list of available languages for front -end site signups.761 * Filter the list of available languages for front end site signups. 762 762 * 763 763 * Passing an empty array to this hook will disable output of the setting on the 764 764 * signup form, and the default language will be used when creating the site.