WordPress.org

Make WordPress Core

Ticket #34887: 34887.diff

File 34887.diff, 15.2 KB (added by obrienlabs, 5 years ago)
  • wp-signup.php

     
    4848do_action( 'before_signup_header' );
    4949
    5050/**
    51  * Prints styles for front-end Multisite signup pages
     51 * Prints styles for front end Multisite signup pages
    5252 *
    5353 * @since MU
    5454 */
     
    758758 */
    759759function signup_get_available_languages() {
    760760        /**
    761          * Filter the list of available languages for front-end site signups.
     761         * Filter the list of available languages for front end site signups.
    762762         *
    763763         * Passing an empty array to this hook will disable output of the setting on the
    764764         * signup form, and the default language will be used when creating the site.
  • wp-includes/taxonomy.php

     
    271271 * @since 2.3.0
    272272 * @since 4.2.0 Introduced `show_in_quick_edit` argument.
    273273 * @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.
    275275 *
    276276 * @global array $wp_taxonomies Registered taxonomies.
    277277 * @global WP    $wp            WP instance.
  • wp-includes/functions.wp-scripts.php

     
    190190                );
    191191
    192192                if ( in_array( $handle, $no ) ) {
    193                         $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the frontend theme, use the %2$s hook.' ),
     193                        $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front end theme, use the %2$s hook.' ),
    194194                                "<code>$handle</code>", '<code>wp_enqueue_scripts</code>' );
    195195                        _doing_it_wrong( __FUNCTION__, $message, '3.6' );
    196196                        return;
  • wp-includes/js/heartbeat.js

     
    141141                                        settings.mainInterval = settings.minimalInterval;
    142142                                }
    143143
    144                                 // 'screenId' can be added from settings on the front-end where the JS global 'pagenow' is not set
     144                                // 'screenId' can be added from settings on the front end where the JS global 'pagenow' is not set
    145145                                if ( ! settings.screenId ) {
    146146                                        settings.screenId = options.screenId || 'front';
    147147                                }
  • wp-includes/user.php

     
    12851285 *                                             https. Default false.
    12861286 *     @type string      $user_registered      Date the user registered. Format is 'Y-m-d H:i:s'.
    12871287 *     @type string|bool $show_admin_bar_front Whether to display the Admin Bar for the user on the
    1288  *                                             site's frontend. Default true.
     1288 *                                             site's front end. Default true.
    12891289 *     @type string      $role                 User's role.
    12901290 * }
    12911291 * @return int|WP_Error The newly created user's ID or a WP_Error object if the user could not
  • wp-includes/widgets.php

     
    629629        /**
    630630         * Fires before widgets are rendered in a dynamic sidebar.
    631631         *
    632          * Note: The action also fires for empty sidebars, and on both the front-end
     632         * Note: The action also fires for empty sidebars, and on both the front end
    633633         * and back-end, including the Inactive Widgets sidebar on the Widgets screen.
    634634         *
    635635         * @since 3.9.0
     
    665665                /**
    666666                 * Filter the parameters passed to a widget's display callback.
    667667                 *
    668                  * Note: The filter is evaluated on both the front-end and back-end,
     668                 * Note: The filter is evaluated on both the front end and back-end,
    669669                 * including for the Inactive Widgets sidebar on the Widgets screen.
    670670                 *
    671671                 * @since 2.5.0
     
    701701                /**
    702702                 * Fires before a widget's display callback is called.
    703703                 *
    704                  * Note: The action fires on both the front-end and back-end, including
     704                 * Note: The action fires on both the front end and back-end, including
    705705                 * for widgets in the Inactive Widgets sidebar on the Widgets screen.
    706706                 *
    707707                 * The action is not fired for empty sidebars.
     
    713713                 *
    714714                 *     @type string $name                Name of the widget.
    715715                 *     @type string $id                  Widget ID.
    716                  *     @type array|callable $callback    When the hook is fired on the front-end, $callback is an array
     716                 *     @type array|callable $callback    When the hook is fired on the front end, $callback is an array
    717717                 *                                       containing the widget object. Fired on the back-end, $callback
    718718                 *                                       is 'wp_widget_control', see $_callback.
    719719                 *     @type array          $params      An associative array of multi-widget arguments.
     
    734734        /**
    735735         * Fires after widgets are rendered in a dynamic sidebar.
    736736         *
    737          * Note: The action also fires for empty sidebars, and on both the front-end
     737         * Note: The action also fires for empty sidebars, and on both the front end
    738738         * and back-end, including the Inactive Widgets sidebar on the Widgets screen.
    739739         *
    740740         * @since 3.9.0
     
    748748        /**
    749749         * Filter whether a sidebar has widgets.
    750750         *
    751          * Note: The filter is also evaluated for empty sidebars, and on both the front-end
     751         * Note: The filter is also evaluated for empty sidebars, and on both the front end
    752752         * and back-end, including the Inactive Widgets sidebar on the Widgets screen.
    753753         *
    754754         * @since 3.9.0
     
    761761}
    762762
    763763/**
    764  * Whether widget is displayed on the front-end.
     764 * Whether widget is displayed on the front end.
    765765 *
    766766 * Either $callback or $id_base can be used
    767767 * $id_base is the first argument when extending WP_Widget class
  • wp-includes/nav-menu.php

     
    664664
    665665        $items = array_map( 'wp_setup_nav_menu_item', $items );
    666666
    667         if ( ! is_admin() ) { // Remove invalid items only in frontend
     667        if ( ! is_admin() ) { // Remove invalid items only in front end
    668668                $items = array_filter( $items, '_is_valid_nav_menu_item' );
    669669        }
    670670
  • wp-includes/class-wp-customize-manager.php

     
    10691069         * that have no corresponding setting created.
    10701070         *
    10711071         * This is a mechanism to "wake up" settings that have been dynamically created
    1072          * on the frontend and have been sent to WordPress in `$_POST['customized']`. When WP
     1072         * on the front end and have been sent to WordPress in `$_POST['customized']`. When WP
    10731073         * loads, the dynamically-created settings then will get created and previewed
    10741074         * even though they are not directly created statically with code.
    10751075         *
     
    16191619         */
    16201620        public function customize_pane_settings() {
    16211621                /*
    1622                  * If the frontend and the admin are served from the same domain, load the
     1622                 * If the front end and the admin are served from the same domain, load the
    16231623                 * preview over ssl if the Customizer is being loaded over ssl. This avoids
    1624                  * insecure content warnings. This is not attempted if the admin and frontend
    1625                  * are on different domains to avoid the case where the frontend doesn't have
     1624                 * insecure content warnings. This is not attempted if the admin and front end
     1625                 * are on different domains to avoid the case where the front end doesn't have
    16261626                 * ssl certs. Domain mapping plugins can allow other urls in these conditions
    16271627                 * using the customize_allowed_urls filter.
    16281628                 */
     
    16991699                        }
    17001700                }
    17011701
    1702                 // Pass to frontend the Customizer construct being deeplinked.
     1702                // Pass to front end the Customizer construct being deeplinked.
    17031703                foreach ( $this->get_autofocus() as $type => $id ) {
    17041704                        $can_autofocus = (
    17051705                                ( 'control' === $type && $this->get_control( $id ) && $this->get_control( $id )->check_capabilities() )
  • wp-includes/post.php

     
    902902 *     @type string      $description          A short descriptive summary of what the post type is.
    903903 *                                             Default empty.
    904904 *     @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 default
     905 *                                             the admin interface or by front end users. While the default
    906906 *                                             settings of $exclude_from_search, $publicly_queryable, $show_ui,
    907907 *                                             and $show_in_nav_menus are inherited from public, each does not
    908908 *                                             rely on this relationship and controls a very specific intention.
     
    48904890                $url = get_the_guid( $post->ID );
    48914891        }
    48924892
    4893         // On SSL front-end, URLs should be HTTPS.
     4893        // On SSL front end, URLs should be HTTPS.
    48944894        if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] ) {
    48954895                $url = set_url_scheme( $url );
    48964896        }
  • wp-includes/class-wp.php

     
    308308                        if ( $t->query_var && isset( $this->query_vars[$t->query_var] ) )
    309309                                $this->query_vars[$t->query_var] = str_replace( ' ', '+', $this->query_vars[$t->query_var] );
    310310
    311                 // Don't allow non-public taxonomies to be queried from the front-end.
     311                // Don't allow non-public taxonomies to be queried from the front end.
    312312                if ( ! is_admin() ) {
    313313                        foreach ( get_taxonomies( array( 'public' => false ), 'objects' ) as $taxonomy => $t ) {
    314314                                /*
  • wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

     
    494494                // @todo We should probably re-apply some constraints imposed by $args.
    495495                unset( $args['include'] );
    496496
    497                 // Remove invalid items only in frontend.
     497                // Remove invalid items only in front end.
    498498                if ( ! is_admin() ) {
    499499                        $items = array_filter( $items, '_is_valid_nav_menu_item' );
    500500                }
  • wp-admin/admin-ajax.php

     
    2121/** Load WordPress Bootstrap */
    2222require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    2323
    24 /** Allow for cross-domain requests (from the frontend). */
     24/** Allow for cross-domain requests (from the front end). */
    2525send_origin_headers();
    2626
    2727// Require an action parameter
  • wp-admin/js/customize-controls.js

     
    15501550                        // Watch for changes to the section state
    15511551                        inject = function ( sectionId ) {
    15521552                                var parentContainer;
    1553                                 if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the frontend
     1553                                if ( ! sectionId ) { // @todo allow a control to be embedded without a section, for instance a control embedded in the front end
    15541554                                        return;
    15551555                                }
    15561556                                // Wait for the section to be registered
     
    29932993                                return match ? match[0] : '';
    29942994                        });
    29952995
    2996                         // Limit the URL to internal, front-end links.
     2996                        // Limit the URL to internal, front end links.
    29972997                        //
    2998                         // If the frontend and the admin are served from the same domain, load the
     2998                        // If the front end and the admin are served from the same domain, load the
    29992999                        // 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 frontend
    3001                         // are on different domains to avoid the case where the frontend doesn't have
     3000                        // 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
    30023002                        // ssl certs.
    30033003
    30043004                        this.add( 'previewUrl', params.previewUrl ).setter( function( to ) {
  • wp-admin/my-sites.php

     
    3939        'id'      => 'overview',
    4040        'title'   => __('Overview'),
    4141        '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 frontend 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>' .
    4343                '<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>'
    4444) );
    4545
  • wp-admin/network/sites.php

     
    3535                '<li>' . __('Dashboard leads to the Dashboard for that site.') . '</li>' .
    3636                '<li>' . __('Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.') . '</li>' .
    3737                '<li>' . __('Delete which is a permanent action after the confirmation screens.') . '</li>' .
    38                 '<li>' . __('Visit to go to the frontend site live.') . '</li></ul>' .
     38                '<li>' . __('Visit to go to the front end site live.') . '</li></ul>' .
    3939                '<p>' . __('The site ID is used internally, and is not shown on the front end of the site or to users/viewers.') . '</p>' .
    4040                '<p>' . __('Clicking on bold headings can re-sort this table.') . '</p>'
    4141) );
  • wp-admin/admin-post.php

     
    1818else
    1919        require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    2020
    21 /** Allow for cross-domain requests (from the frontend). */
     21/** Allow for cross-domain requests (from the front end). */
    2222send_origin_headers();
    2323
    2424require_once(ABSPATH . 'wp-admin/includes/admin.php');