From e2cec354375d2f392593e4530d8354b0e0fc1f01 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 7 Feb 2016 02:13:26 +0000 Subject: [PATCH] Docs: Make some minor improvements to inline docs for `WP_Site`, introduced in [36393]. * Uses third-person singular verbs in method summaries * Adds an `@static` tag to the `WP_Site::get_instance()` DocBlock * Adjusts return types for `WP_Site::get_instance()` to the more explicit `WP_Site|false` See #32450. See #32246. Built from https://develop.svn.wordpress.org/trunk@36495 git-svn-id: http://core.svn.wordpress.org/trunk@36462 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-site.php | 7 ++++--- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-site.php b/wp-includes/class-wp-site.php index 7858c7dbbb..5de6b9f2ca 100644 --- a/wp-includes/class-wp-site.php +++ b/wp-includes/class-wp-site.php @@ -148,15 +148,16 @@ final class WP_Site { public $lang_id = '0'; /** - * Retrieve a site from the database by its ID. + * Retrieves a site from the database by its ID. * + * @static * @since 4.5.0 * @access public * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $site_id The ID of the site to retrieve. - * @return WP_Site|bool The site's object if found. False if not. + * @return WP_Site|false The site's object if found. False if not. */ public static function get_instance( $site_id ) { global $wpdb; @@ -182,7 +183,7 @@ final class WP_Site { } /** - * Create a new WP_Site object. + * Creates a new WP_Site object. * * Will populate object properties from the object provided and assign other * default properties based on that information. diff --git a/wp-includes/version.php b/wp-includes/version.php index 0d4024cc39..f5482651e4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36494'; +$wp_version = '4.5-alpha-36495'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.