Ticket #5233: update.phpdoc.diff

File update.phpdoc.diff, 1.2 KB (added by darkdragon, 5 years ago)

update.php documentation which adds phpdoc

  • update.php

     
    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 * Check WordPress version against the newest version at api.wordpress.org server. 
     11 * 
     12 * The WordPress version, PHP version, and Locale. If you do not want this behavior, there 
     13 * exists a plugin called {@link http://wordpress.org/extend/plugins/tinfoil-hat/ Tin Foil Hat} 
     14 * that will disable this behavior. 
     15 * 
     16 * This will also disable the behavior. 
     17 * <code> 
     18 * remove_action('init', 'wp_version_check'); 
     19 * </code> 
     20 * 
     21 * @package WordPress 
     22 * @since 2.3 
     23 * @uses $wp_version Used to check against the newest WordPress version. 
     24 * 
     25 * @return mixed Returns null if server doesn't support fsockopen or if WordPress is installing. 
     26 *              Returns false if the time between last check and current check is too short. 
     27 */ 
    528function wp_version_check() { 
    629        if ( !function_exists('fsockopen') || strpos($_SERVER['PHP_SELF'], 'install.php') !== false || defined('WP_INSTALLING') ) 
    730                return;