Ticket #34887: 34887.2.patch
File 34887.2.patch, 26.0 KB (added by , 9 years ago) |
---|
-
wp-admin/admin-ajax.php
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 -
wp-admin/admin-post.php
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'); -
wp-admin/admin.php
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 * -
wp-admin/includes/class-wp-theme-install-list-table.php
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 ) { -
wp-admin/includes/update-core.php
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 -
wp-admin/js/customize-controls.js
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 ) { -
wp-admin/js/revisions.js
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 -
wp-admin/my-sites.php
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 -
wp-admin/network/sites.php
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 ) ); -
wp-content/themes/twentyfifteen/inc/custom-header.php
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 * … … 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 */ -
wp-content/themes/twentyfifteen/inc/customizer.php
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 * -
wp-content/themes/twentyfourteen/inc/featured-content.php
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 … … 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. … … 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 * … … 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 } … … 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 * … … 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 } -
wp-content/themes/twentythirteen/inc/custom-header.php
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. -
wp-content/themes/twentytwelve/functions.php
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 */ -
wp-content/themes/twentytwelve/inc/custom-header.php
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 * -
wp-includes/cache.php
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 -
wp-includes/class-wp-customize-manager.php
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 * … … 1631 1631 */ 1632 1632 public function customize_pane_settings() { 1633 1633 /* 1634 * If the front end and the admin are served from the same domain, load the1634 * If the front end and the admin are served from the same domain, load the 1635 1635 * preview over ssl if the Customizer is being loaded over ssl. This avoids 1636 * insecure content warnings. This is not attempted if the admin and front end1637 * are on different domains to avoid the case where the front end doesn't have1636 * insecure content warnings. This is not attempted if the admin and front end 1637 * are on different domains to avoid the case where the front end doesn't have 1638 1638 * ssl certs. Domain mapping plugins can allow other urls in these conditions 1639 1639 * using the customize_allowed_urls filter. 1640 1640 */ … … 1711 1711 } 1712 1712 } 1713 1713 1714 // Pass to front end the Customizer construct being deeplinked.1714 // Pass to front end the Customizer construct being deeplinked. 1715 1715 foreach ( $this->get_autofocus() as $type => $id ) { 1716 1716 $can_autofocus = ( 1717 1717 ( 'control' === $type && $this->get_control( $id ) && $this->get_control( $id )->check_capabilities() ) -
wp-includes/class-wp.php
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 /* -
wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
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 } -
wp-includes/functions.wp-scripts.php
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; -
wp-includes/js/heartbeat.js
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 } -
wp-includes/js/plupload/wp-plupload.js
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. -
wp-includes/js/swfupload/swfupload.js
1 /**1 /** 2 2 * SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com 3 3 * 4 4 * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/ … … 123 123 this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName]; 124 124 }; 125 125 126 // Upload back end settings126 // 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"); -
wp-includes/nav-menu.php
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 -
wp-includes/post.php
1 <?php1 <?php 2 2 /** 3 3 * Core Post API 4 4 * … … 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. … … 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 } -
wp-includes/taxonomy.php
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. -
wp-includes/user.php
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 -
wp-includes/widgets.php
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 * … … 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 … … 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. … … 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 */ … … 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 * … … 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 * … … 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 -
wp-signup.php
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 */ … … 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.