Make WordPress Core

Ticket #26202: 26202.2.patch

File 26202.2.patch, 1.3 KB (added by usayd, 10 years ago)

Patch using correct syntax

  • class-wp-plugin-install-list-table.php

     
    223223                        $version = wp_kses( $plugin['version'], $plugins_allowedtags );
    224224
    225225                        $name = strip_tags( $title . ' ' . $version );
    226 
     226                        if ( strlen( $title ) > 70 ) {
     227                                $tb_name = mb_substr( $title, 0, 70 ). '… '. $version;
     228                        } else {
     229                                $tb_name = $name;
     230                        }
    227231                        $author = $plugin['author'];
    228232                        if ( ! empty( $plugin['author'] ) )
    229233                                $author = ' <cite>' . sprintf( __( 'By %s' ), $author ) . '.</cite>';
     
    233237                        $action_links = array();
    234238                        $action_links[] = '<a href="' . self_admin_url( 'plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
    235239                                                                '&amp;TB_iframe=true&amp;width=600&amp;height=550' ) . '" class="thickbox" title="' .
    236                                                                 esc_attr( sprintf( __( 'More information about %s' ), $name ) ) . '">' . __( 'Details' ) . '</a>';
     240                                                                esc_attr( sprintf( __( 'More information about %s' ), $tb_name ) ) . '">' . __( 'Details' ) . '</a>';
    237241
    238242                        if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) {
    239243                                $status = install_plugin_install_status( $plugin );