WordPress.org

Make WordPress Core

Changeset 10939


Ignore:
Timestamp:
04/15/09 19:55:41 (5 years ago)
Author:
azaozz
Message:

Disable PHP error reporting in gears-manifest.php, load-scripts.php and load-styles.php since they don't load wp-settings, fix some notices

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/gears-manifest.php

    r10871 r10939  
    66 * @subpackage Administration 
    77 */ 
     8 
     9/**  
     10 * Disable error reporting 
     11 *  
     12 * Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging 
     13 */ 
     14error_reporting(0); 
    815 
    916/** Set ABSPATH for execution */ 
  • trunk/wp-admin/includes/update.php

    r10649 r10939  
    3737    if ( empty($from_api) ) 
    3838        return false; 
    39     if ( !is_array( $from_api->updates ) ) return false; 
     39    if ( !isset( $from_api->updates ) || !is_array( $from_api->updates ) ) return false; 
    4040    $updates = $from_api->updates; 
    4141    if ( !is_array( $updates ) ) return false; 
  • trunk/wp-admin/load-scripts.php

    r10871 r10939  
    11<?php 
     2 
     3/**  
     4 * Disable error reporting 
     5 *  
     6 * Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging 
     7 */ 
     8error_reporting(0); 
    29 
    310/** Set ABSPATH for execution */ 
  • trunk/wp-admin/load-styles.php

    r10871 r10939  
    11<?php 
     2 
     3/**  
     4 * Disable error reporting 
     5 *  
     6 * Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging 
     7 */ 
     8error_reporting(0); 
    29 
    310/** Set ABSPATH for execution */ 
  • trunk/wp-includes/update.php

    r10772 r10939  
    244244    if ( isset( $current->last_checked ) && 
    245245        43200 > ( time() - $current->last_checked ) && 
     246        isset( $current->version_checked ) && 
    246247        $current->version_checked == $wp_version ) 
    247248        return; 
Note: See TracChangeset for help on using the changeset viewer.