Make WordPress Core


Ignore:
Timestamp:
10/30/2007 09:40:30 PM (18 years ago)
Author:
westi
Message:

Add documentation for wp_version_check(). Fixes #5233 props darkdragon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/update.php

    r6151 r6297  
    11<?php
     2/**
     3 * A simple set of functions to check our version 1.0 update service
     4 *
     5 * @package WordPress
     6 * @since 2.3
     7 */
    28
    3 // A simple set of functions to check our version 1.0 update service
    4 
     9/**
     10 * wp_version_check() - Check WordPress version against the newest version.
     11 *
     12 * The WordPress version, PHP version, and Locale is sent. Checks against the WordPress server at
     13 * api.wordpress.org server. Will only check if PHP has fsockopen enabled and WordPress isn't installing.
     14 *
     15 * @package WordPress
     16 * @since 2.3
     17 * @uses $wp_version Used to check against the newest WordPress version.
     18 *
     19 * @return mixed Returns null if update is unsupported. Returns false if check is too soon.
     20 */
    521function wp_version_check() {
    622    if ( !function_exists('fsockopen') || strpos($_SERVER['PHP_SELF'], 'install.php') !== false || defined('WP_INSTALLING') )
Note: See TracChangeset for help on using the changeset viewer.