From 6172a88bad84e3ae0088852b803f85c49cdf33f1 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 7 Feb 2016 02:12:44 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@36495 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-site.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class-wp-site.php b/src/wp-includes/class-wp-site.php index 7858c7dbbb..5de6b9f2ca 100644 --- a/src/wp-includes/class-wp-site.php +++ b/src/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.