Make WordPress Core

Ticket #30614: 30614.patch

File 30614.patch, 3.5 KB (added by ramiy, 12 years ago)
  • wp-includes/general-template.php

     
    607607        switch( $show ) {
    608608                case 'home' : // DEPRECATED
    609609                case 'siteurl' : // DEPRECATED
    610                         _deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> option instead.' ), 'url'  ) );
     610                        _deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The %s option is deprecated for the family of <code>bloginfo()</code> functions.' ), '<code>' . $show . '</code>' ) . ' ' . sprintf( __( 'Use the %s option instead.' ), '<code>url</code>'  ) );
    611611                case 'url' :
    612612                        $output = home_url();
    613613                        break;
    … …  
    667667                        $output = str_replace('_', '-', $output);
    668668                        break;
    669669                case 'text_direction':
    670                         //_deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> function instead.' ), 'is_rtl()'  ) );
     670                        //_deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The %s option is deprecated for the family of <code>bloginfo()</code> functions.' ), '<code>' . $show . '</code>' ) . ' ' . sprintf( __( 'Use the %s function instead.' ), '<code>is_rtl()</code>'  ) );
    671671                        if ( function_exists( 'is_rtl' ) ) {
    672672                                $output = is_rtl() ? 'rtl' : 'ltr';
    673673                        } else {
  • wp-includes/ms-load.php

     
    404404        $msg .= ' ' . __( 'If you are the owner of this network please check that MySQL is running properly and all tables are error free.' ) . '</p>';
    405405        $query = $wpdb->prepare( "SHOW TABLES LIKE %s", $wpdb->esc_like( $wpdb->site ) );
    406406        if ( ! $wpdb->get_var( $query ) ) {
    407                 $msg .= '<p>' . sprintf( __( '<strong>Database tables are missing.</strong> This means that MySQL is not running, WordPress was not installed properly, or someone deleted <code>%s</code>. You really should look at your database now.' ), $wpdb->site ) . '</p>';
     407                $msg .= '<p>' . sprintf(
     408                        /* translators: Site name */
     409                        __( '<strong>Database tables are missing.</strong> This means that MySQL is not running, WordPress was not installed properly, or someone deleted %s. You really should look at your database now.' ),
     410                        '<code>' . $wpdb->site . '</code>'
     411                        ) . '</p>';
    408412        } else {
    409                 $msg .= '<p>' . sprintf( __( '<strong>Could not find site <code>%1$s</code>.</strong> Searched for table <code>%2$s</code> in database <code>%3$s</code>. Is that right?' ), rtrim( $domain . $path, '/' ), $wpdb->blogs, DB_NAME ) . '</p>';
     413                $msg .= '<p>' . sprintf(
     414                        /* translators: 1: Site url, 2: Database blogs table, 3: Database name */
     415                        __( '<strong>Could not find site %1$s.</strong> Searched for table %2$s in database %3$s. Is that right?' ),
     416                        '<code>' . rtrim( $domain . $path, '/' ) . '</code>',
     417                        '<code>' . $wpdb->blogs . '</code>',
     418                        '<code>' . DB_NAME . '</code>'
     419                        ) . '</p>';
    410420        }
    411421        $msg .= '<p><strong>' . __( 'What do I do now?' ) . '</strong> ';
    412422        $msg .= __( 'Read the <a target="_blank" href="http://codex.wordpress.org/Debugging_a_WordPress_Network">bug report</a> page. Some of the guidelines there may help you figure out what went wrong.' );