Make WordPress Core


Ignore:
Timestamp:
01/28/2016 03:50:26 AM (9 years ago)
Author:
ericlewis
Message:

Networks and sites: Replace "blog" usage with "site" in docs.

Multisite functions use the term "blog" to refer to what we now call a "site," e.g. get_current_blog_id(). These functions are here to stay because of our commitment to backwards compatibility. What we can do is set the documentation straight.

See #35417.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-user.php

    r36416 r36417  
    114114     * @param int|string|stdClass|WP_User $id User's ID, a WP_User object, or a user object from the DB.
    115115     * @param string $name Optional. User's username
    116      * @param int $blog_id Optional Blog ID, defaults to current blog.
     116     * @param int $blog_id Optional Site ID, defaults to current site.
    117117     */
    118118    public function __construct( $id = 0, $name = '', $blog_id = '' ) {
     
    769769
    770770    /**
    771      * Set the blog to operate on. Defaults to the current blog.
     771     * Set the site to operate on. Defaults to the current site.
    772772     *
    773773     * @since 3.0.0
     
    775775     * @global wpdb $wpdb WordPress database abstraction object.
    776776     *
    777      * @param int $blog_id Optional Blog ID, defaults to current blog.
     777     * @param int $blog_id Optional. Site ID, defaults to current site.
    778778     */
    779779    public function for_blog( $blog_id = '' ) {
Note: See TracChangeset for help on using the changeset viewer.