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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-04-15 19:55:41 +00:00
parent cbb5499088
commit 1e31cc81a0
5 changed files with 23 additions and 1 deletions

View File

@ -6,6 +6,13 @@
* @subpackage Administration * @subpackage Administration
*/ */
/**
* Disable error reporting
*
* Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
*/
error_reporting(0);
/** Set ABSPATH for execution */ /** Set ABSPATH for execution */
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' ); define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
define( 'WPINC', 'wp-includes' ); define( 'WPINC', 'wp-includes' );

View File

@ -36,7 +36,7 @@ function get_core_updates( $options = array() ) {
$from_api = get_transient( 'update_core' ); $from_api = get_transient( 'update_core' );
if ( empty($from_api) ) if ( empty($from_api) )
return false; return false;
if ( !is_array( $from_api->updates ) ) return false; if ( !isset( $from_api->updates ) || !is_array( $from_api->updates ) ) return false;
$updates = $from_api->updates; $updates = $from_api->updates;
if ( !is_array( $updates ) ) return false; if ( !is_array( $updates ) ) return false;
$result = array(); $result = array();

View File

@ -1,5 +1,12 @@
<?php <?php
/**
* Disable error reporting
*
* Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
*/
error_reporting(0);
/** Set ABSPATH for execution */ /** Set ABSPATH for execution */
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' ); define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
define( 'WPINC', 'wp-includes' ); define( 'WPINC', 'wp-includes' );

View File

@ -1,5 +1,12 @@
<?php <?php
/**
* Disable error reporting
*
* Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
*/
error_reporting(0);
/** Set ABSPATH for execution */ /** Set ABSPATH for execution */
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' ); define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
define( 'WPINC', 'wp-includes' ); define( 'WPINC', 'wp-includes' );

View File

@ -243,6 +243,7 @@ function _maybe_update_core() {
if ( isset( $current->last_checked ) && if ( isset( $current->last_checked ) &&
43200 > ( time() - $current->last_checked ) && 43200 > ( time() - $current->last_checked ) &&
isset( $current->version_checked ) &&
$current->version_checked == $wp_version ) $current->version_checked == $wp_version )
return; return;