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
This commit is contained in:
Drew Jaynes
2016-02-07 02:12:44 +00:00
parent f77e353b66
commit 6172a88bad
+4 -3
View File
@@ -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.