WordPress.org

Make WordPress Core

Changeset 36340


Ignore:
Timestamp:
01/18/2016 02:58:22 AM (5 years ago)
Author:
jeremyfelt
Message:

Docs: Fix type documentation for WP_Network properties.

  • $cookie_domain was incorrectly documented as an int.
  • $id and $blog_id, though numeric, are provided as strings and should be documented as such.

Fixes #35404.

File:
1 edited

Legend:

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

    r35573 r36340  
    2424     * Network ID.
    2525     *
    26      * @since 4.4.0
    27      * @access public
    28      * @var int
     26     * A numeric string, for compatibility reasons.
     27     *
     28     * @since 4.4.0
     29     * @access public
     30     * @var string
    2931     */
    3032    public $id;
     
    5456     * the network when the network is created.
    5557     *
    56      * @since 4.4.0
    57      * @access public
    58      * @var int
     58     * A numeric string, for compatibility reasons.
     59     *
     60     * @since 4.4.0
     61     * @access public
     62     * @var string
    5963     */
    6064    public $blog_id = 0;
     
    6569     * @since 4.4.0
    6670     * @access public
    67      * @var int
     71     * @var string
    6872     */
    6973    public $cookie_domain = '';
Note: See TracChangeset for help on using the changeset viewer.