diff -uNr a/blog/README b/blog/README --- a/blog/README 6725ffa1358d871f5d9d277f6b1e20449d3cb32258392ddb93f0bfbb64135097017d0379ccfcbfdd1fb9e2d378a161097425d5dd3a058484f397f912cb5bcf07 +++ b/blog/README e399879ca9cdb5982e2aa0c97e1acef94cc1dc914ef7a4c7bc05508ecfaef5997101b537303257f1539ebc05937bf19d7661118aacd294b10ac21621079ecfe3 @@ -88,7 +88,18 @@ f078ee4e85a79a1fe5d212fa7dce47be11ef65a02dda0ecccc3dc4fdfaaa7135db18eacd175d0d79ab884ebeb8c87028b44df3d033780f0d0d67cbc2e53ed8e2 wp-content-akismet.tgz +========= +Changelog +========= +mp-wp-part1-remove-warnings +--------------------------- +Remove "STRICT" from the error_reporting output. +Fix static functions (these need the 'static' modifier in php5.6) +Fix some implicit object creations (these need to be explicit) +=== +END +=== diff -uNr a/blog/wp-admin/includes/bookmark.php b/blog/wp-admin/includes/bookmark.php --- a/blog/wp-admin/includes/bookmark.php d761c801605a656e672b26b1b47f62c3c83d9ff26f07f1f7aad1fed26e1acf1204dd3a2a4ffcecf2f23b1200eef42695a8aface8c59e4866ab291e9ca6f24608 +++ b/blog/wp-admin/includes/bookmark.php 73625b19ad338aec605b4756b9bc3c7d04ac1b35f15a89193e3403fa27341fbb73224d8fcd3da89b3df59ff18c145023264939c3799f729f63e708ad64659b21 @@ -53,6 +53,8 @@ * @return unknown */ function get_default_link_to_edit() { + $link = new stdClass(); + if ( isset( $_GET['linkurl'] ) ) $link->link_url = clean_url( $_GET['linkurl']); else diff -uNr a/blog/wp-admin/includes/post.php b/blog/wp-admin/includes/post.php --- a/blog/wp-admin/includes/post.php 699e0d47fcbaf5bf9e56f127cd4ec01831b6a0a32d1ed58bc284076ee2473fd2c2d3bca0edf5fb870a5e343a8e027536f89176d65fd8abc6eb6eef7978cab8f5 +++ b/blog/wp-admin/includes/post.php a58876ed9e979e7e63b12529bd8c90446d9ed6b59d538d3d4faa1aaa663a5b048d0d310647ec0e6b5fa5d1aacfe43c3fdc4d360619ecba132eec45d28a9fa979 @@ -342,6 +342,7 @@ else $post_excerpt = ''; + $post = new stdClass(); $post->ID = 0; $post->post_name = ''; $post->post_author = ''; @@ -1346,4 +1347,4 @@ \ No newline at end of file +?> diff -uNr a/blog/wp-admin/includes/user.php b/blog/wp-admin/includes/user.php --- a/blog/wp-admin/includes/user.php b4de5ce1f15f8d9a270e1462e2d4de7477a411217606e1eef358919b7b85f492250b5a4a64d75b2b4000f08def02f244407ce1927b04be465cd86660d73c9acf +++ b/blog/wp-admin/includes/user.php 3a7c7d0d866dbea2a298c591b3e8889cd16cf1de9d883efb99cee0f27aeecc2339c61e010d464e436f22eddf32e8f6a44fec2aabbe6df853ef6e8c0b4fd96981 @@ -47,6 +47,7 @@ global $current_user, $wp_roles, $wpdb; if ( $user_id != 0 ) { $update = true; + $user = new stdClass(); $user->ID = (int) $user_id; $userdata = get_userdata( $user_id ); $user->user_login = $wpdb->escape( $userdata->user_login ); diff -uNr a/blog/wp-includes/http.php b/blog/wp-includes/http.php --- a/blog/wp-includes/http.php 5e4e4aa887bbb117096b4dcf58373cc95b7d726d8a3319840258f2a7706f617c42cbe784a5bf542980cb513c06b630c5139875acf71647b56eeb39530254779e +++ b/blog/wp-includes/http.php c1b44af102849edcb1c2159006fc772e114c35867108aa71a7c245c3c86bd79fc599a0440edced41fae12cae650266f2b07f66a0226d22573a69c3b57a5b8465 @@ -587,7 +587,7 @@ * @static * @return boolean False means this class can not be used, true means it can. */ - function test() { + static function test() { if ( false !== ($option = get_option( 'disable_fsockopen' )) && time()-$option < 43200 ) // 12 hours return false; @@ -696,7 +696,7 @@ * @static * @return boolean False means this class can not be used, true means it can. */ - function test() { + static function test() { if ( ! function_exists('fopen') || (function_exists('ini_get') && true != ini_get('allow_url_fopen')) ) return false; @@ -821,7 +821,7 @@ * * @return boolean False means this class can not be used, true means it can. */ - function test() { + static function test() { if ( ! function_exists('fopen') || (function_exists('ini_get') && true != ini_get('allow_url_fopen')) ) return false; @@ -936,7 +936,7 @@ * * @return boolean False means this class can not be used, true means it can. */ - function test() { + static function test() { if ( function_exists('http_request') ) return true; @@ -1061,7 +1061,7 @@ * * @return boolean False means this class can not be used, true means it can. */ - function test() { + static function test() { if ( function_exists('curl_init') ) return true; diff -uNr a/blog/wp-load.php b/blog/wp-load.php --- a/blog/wp-load.php 340ebe1057da577969e59f32254915a5f5f04276bcd9bd91b250b64da939f360256ed5b7ebe0e17a0db0ffce937e0a42d13e4362720c998cdfce7463d97b120c +++ b/blog/wp-load.php c4fa96054ac3de91d9b9614d8ba353107162a9b8a9565e1979a1e807a21b78b0c810bf3c11d5ae439dc0e07814c3541772a5fe8aad9101baff328df1ee83eceb @@ -19,7 +19,7 @@ /** Define ABSPATH as this files directory */ define( 'ABSPATH', dirname(__FILE__) . '/' ); -error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE); +error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE ^ E_STRICT); if ( file_exists( ABSPATH . 'wp-config.php') ) { diff -uNr a/blog/wp-settings.php b/blog/wp-settings.php --- a/blog/wp-settings.php 01ddbb2a4a7b09a87d90b300c1915570149da01dfbf3fcbd5f9f7583cc62adfbfaaf8e68d33b33be9dbfbc54c38ef67dfbe6af3a624abbe68d674593d105b412 +++ b/blog/wp-settings.php da87870c673527945b6041b485a541dafe579f3388cdcf1c9181676667f2685a5a1a29d96a7edfe6ff4d75a9abbfbaf8352e9c69b209b489a9df8aa43444fc7e @@ -199,7 +199,7 @@ if (defined('WP_DEBUG') and WP_DEBUG == true) { error_reporting(E_ALL); } else { - error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE); + error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE ^ E_STRICT); } // For an advanced caching plugin to use, static because you would only want one