WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/26/2015 09:50:13 PM (7 years ago)
Author:
wonderboymusic
Message:

Fix doc blocks for ms-*.php files.
A few functions can return a conditional instead of an if/else of true/false.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-load.php

    r32116 r32611  
    2020        return SUBDOMAIN_INSTALL;
    2121
    22     if ( defined('VHOST') && VHOST == 'yes' )
    23         return true;
    24 
    25     return false;
     22    return ( defined( 'VHOST' ) && VHOST == 'yes' );
    2623}
    2724
     
    6966 * @since 3.0.0
    7067 *
    71  * @return bool|string Returns true on success, or drop-in file to include.
     68 * @return true|string Returns true on success, or drop-in file to include.
    7269 */
    7370function ms_site_check() {
     
    118115 * @since 3.9.0
    119116 *
     117 * @global wpdb $wpdb
     118 *
    120119 * @param string   $domain   Domain to check.
    121120 * @param string   $path     Path to check.
    122121 * @param int|null $segments Path segments to use. Defaults to null, or the full path.
    123  * @return object|bool Network object if successful. False when no network is found.
     122 * @return object|false Network object if successful. False when no network is found.
    124123 */
    125124function get_network_by_path( $domain, $path, $segments = null ) {
     
    261260 * @since 3.9.0
    262261 *
     262 * @global wpdb $wpdb
     263 *
    263264 * @param object|int $network The network's database row or ID.
    264  * @return object|bool Object containing network information if found, false if not.
     265 * @return object|false Object containing network information if found, false if not.
    265266 */
    266267function wp_get_network( $network ) {
     
    282283 * @since 3.9.0
    283284 *
     285 * @global wpdb $wpdb
     286 *
    284287 * @param string   $domain   Domain to check.
    285288 * @param string   $path     Path to check.
    286289 * @param int|null $segments Path segments to use. Defaults to null, or the full path.
    287  * @return object|bool Site object if successful. False when no site is found.
     290 * @return object|false Site object if successful. False when no site is found.
    288291 */
    289292function get_site_by_path( $domain, $path, $segments = null ) {
     
    392395 * @access private
    393396 * @since 3.0.0
     397 *
     398 * @global wpdb   $wpdb
     399 * @global string $domain
     400 * @global string $path
    394401 */
    395402function ms_not_installed() {
     
    464471 * @deprecated 3.9.0
    465472 *
     473 * @global object $current_site
     474 *
    466475 * @return object
    467476 */
Note: See TracChangeset for help on using the changeset viewer.