Changeset 36709
- Timestamp:
- 02/25/2016 12:52:33 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin-ajax.php
r35527 r36709 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 -
trunk/src/wp-admin/admin-post.php
r34265 r36709 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 -
trunk/src/wp-admin/admin.php
r36271 r36709 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 -
trunk/src/wp-admin/includes/class-wp-site-logo.php
r36698 r36709 28 28 29 29 /** 30 * Hide header text on front -end if necessary.30 * Hide header text on front end if necessary. 31 31 * 32 32 * @since 4.5.0 -
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r35567 r36709 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 */ -
trunk/src/wp-admin/includes/update-core.php
r35848 r36709 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 -
trunk/src/wp-admin/js/customize-controls.js
r36698 r36709 1558 1558 inject = function ( sectionId ) { 1559 1559 var parentContainer; 1560 if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the front end1560 if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the front end. 1561 1561 return; 1562 1562 } … … 3040 3040 // Limit the URL to internal, front-end links. 3041 3041 // 3042 // If the front end and the admin are served from the same domain, load the3042 // If the front end and the admin are served from the same domain, load the 3043 3043 // preview over ssl if the Customizer is being loaded over ssl. This avoids 3044 // insecure content warnings. This is not attempted if the admin and front end3045 // are on different domains to avoid the case where the front end doesn't have3044 // insecure content warnings. This is not attempted if the admin and front end 3045 // are on different domains to avoid the case where the front end doesn't have 3046 3046 // ssl certs. 3047 3047 -
trunk/src/wp-admin/js/revisions.js
r35627 r36709 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 -
trunk/src/wp-admin/my-sites.php
r34979 r36709 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 ) ); -
trunk/src/wp-admin/network/sites.php
r36664 r36709 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>' -
trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php
r31250 r36709 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 { … … 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 … … 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. … … 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; … … 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. … … 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; -
trunk/src/wp-content/themes/twentythirteen/inc/custom-header.php
r32116 r36709 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. -
trunk/src/wp-content/themes/twentytwelve/functions.php
r32843 r36709 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 -
trunk/src/wp-content/themes/twentytwelve/inc/custom-header.php
r32116 r36709 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. -
trunk/src/wp-includes/cache.php
r36416 r36709 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 * -
trunk/src/wp-includes/class-wp-customize-manager.php
r36698 r36709 1085 1085 * 1086 1086 * This is a mechanism to "wake up" settings that have been dynamically created 1087 * on the front end and have been sent to WordPress in `$_POST['customized']`. When WP1087 * on the front end and have been sent to WordPress in `$_POST['customized']`. When WP 1088 1088 * loads, the dynamically-created settings then will get created and previewed 1089 1089 * even though they are not directly created statically with code. … … 1674 1674 public function customize_pane_settings() { 1675 1675 /* 1676 * If the front end and the admin are served from the same domain, load the1676 * If the front end and the admin are served from the same domain, load the 1677 1677 * preview over ssl if the Customizer is being loaded over ssl. This avoids 1678 * insecure content warnings. This is not attempted if the admin and front end1679 * are on different domains to avoid the case where the front end doesn't have1678 * insecure content warnings. This is not attempted if the admin and front end 1679 * are on different domains to avoid the case where the front end doesn't have 1680 1680 * ssl certs. Domain mapping plugins can allow other urls in these conditions 1681 1681 * using the customize_allowed_urls filter. … … 1753 1753 } 1754 1754 1755 // Pass to front end the Customizer construct being deeplinked.1755 // Pass to front end the Customizer construct being deeplinked. 1756 1756 foreach ( $this->get_autofocus() as $type => $id ) { 1757 1757 $can_autofocus = ( -
trunk/src/wp-includes/class-wp.php
r36629 r36709 332 332 $this->query_vars[$t->query_var] = str_replace( ' ', '+', $this->query_vars[$t->query_var] ); 333 333 334 // Don't allow non-publicly queryable taxonomies to be queried from the front -end.334 // Don't allow non-publicly queryable taxonomies to be queried from the front end. 335 335 if ( ! is_admin() ) { 336 336 foreach ( get_taxonomies( array( 'publicly_queryable' => false ), 'objects' ) as $taxonomy => $t ) { -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
r36608 r36709 496 496 unset( $args['include'] ); 497 497 498 // Remove invalid items only in front end.498 // Remove invalid items only in front end. 499 499 if ( ! is_admin() ) { 500 500 $items = array_filter( $items, '_is_valid_nav_menu_item' ); -
trunk/src/wp-includes/functions.wp-scripts.php
r36707 r36709 221 221 222 222 if ( in_array( $handle, $no ) ) { 223 $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front end theme, use the %2$s hook.' ),223 $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ), 224 224 "<code>$handle</code>", '<code>wp_enqueue_scripts</code>' ); 225 225 _doing_it_wrong( __FUNCTION__, $message, '3.6' ); -
trunk/src/wp-includes/js/customize-selective-refresh.js
r36586 r36709 64 64 primarySetting: null, 65 65 containerInclusive: false, 66 fallbackRefresh: true // Note this needs to be false in a front end editing context.66 fallbackRefresh: true // Note this needs to be false in a front-end editing context. 67 67 }, 68 68 options.params || {} … … 527 527 * Request full page refresh. 528 528 * 529 * When selective refresh is embedded in the context of front end editing, this request529 * When selective refresh is embedded in the context of front-end editing, this request 530 530 * must fail or else changes will be lost, unless transactions are implemented. 531 531 * -
trunk/src/wp-includes/js/heartbeat.js
r33468 r36709 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'; -
trunk/src/wp-includes/js/plupload/wp-plupload.js
r34047 r36709 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. -
trunk/src/wp-includes/link-template.php
r36646 r36709 2927 2927 2928 2928 /** 2929 * Retrieve the URL for the current site where the front -end is accessible.2929 * Retrieve the URL for the current site where the front end is accessible. 2930 2930 * 2931 2931 * Returns the 'home' option with the appropriate protocol, 'https' if … … 2945 2945 2946 2946 /** 2947 * Retrieve the URL for a given site where the front -end is accessible.2947 * Retrieve the URL for a given site where the front end is accessible. 2948 2948 * 2949 2949 * Returns the 'home' option with the appropriate protocol, 'https' if -
trunk/src/wp-includes/nav-menu.php
r36645 r36709 676 676 $items = array_map( 'wp_setup_nav_menu_item', $items ); 677 677 678 if ( ! is_admin() ) { // Remove invalid items only in front end678 if ( ! is_admin() ) { // Remove invalid items only in front end 679 679 $items = array_filter( $items, '_is_valid_nav_menu_item' ); 680 680 } -
trunk/src/wp-includes/pluggable.php
r36705 r36709 825 825 } 826 826 827 // Front end cookie is secure when the auth cookie is secure and the site's home URL is forced HTTPS.827 // Front-end cookie is secure when the auth cookie is secure and the site's home URL is forced HTTPS. 828 828 $secure_logged_in_cookie = $secure && 'https' === parse_url( get_option( 'home' ), PHP_URL_SCHEME ); 829 829 -
trunk/src/wp-includes/post.php
r36704 r36709 5038 5038 } 5039 5039 5040 // On SSL front -end, URLs should be HTTPS.5040 // On SSL front end, URLs should be HTTPS. 5041 5041 if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] ) { 5042 5042 $url = set_url_scheme( $url ); -
trunk/src/wp-includes/taxonomy.php
r36691 r36709 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 * @since 4.5.0 Introduced `publicly_queryable` argument. 276 276 * -
trunk/src/wp-includes/user.php
r36705 r36709 1358 1358 * @type string $user_registered Date the user registered. Format is 'Y-m-d H:i:s'. 1359 1359 * @type string|bool $show_admin_bar_front Whether to display the Admin Bar for the user on the 1360 * site's front end. Default true.1360 * site's front end. Default true. 1361 1361 * @type string $role User's role. 1362 1362 * } -
trunk/src/wp-includes/widgets.php
r36667 r36709 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 … … 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 * … … 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 * … … 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 * } … … 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 … … 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 … … 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
Note: See TracChangeset
for help on using the changeset viewer.