Ticket #23093: 23093.diff

File 23093.diff, 590 bytes (added by dfavor, 5 months ago)

Patch wp-includes/load.php to avoid warning during install when php '@' shut-up is disabled

  • wordpress/wp-includes/load.php

    old new function wp_get_active_and_valid_plugins 
    514514 */ 
    515515function wp_set_internal_encoding() { 
    516516        if ( function_exists( 'mb_internal_encoding' ) ) { 
    517                 if ( !@mb_internal_encoding( get_option( 'blog_charset' ) ) ) 
    518                         mb_internal_encoding( 'UTF-8' ); 
     517                $blog_charset = get_option( 'blog_charset' ); 
     518                mb_internal_encoding( ($blog_charset) ? $blog_charset : 'UTF-8' ); 
    519519        } 
    520520}