Ticket #26202: 26202.2.patch
File 26202.2.patch, 1.3 KB (added by , 10 years ago) |
---|
-
class-wp-plugin-install-list-table.php
223 223 $version = wp_kses( $plugin['version'], $plugins_allowedtags ); 224 224 225 225 $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 } 227 231 $author = $plugin['author']; 228 232 if ( ! empty( $plugin['author'] ) ) 229 233 $author = ' <cite>' . sprintf( __( 'By %s' ), $author ) . '.</cite>'; … … 233 237 $action_links = array(); 234 238 $action_links[] = '<a href="' . self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin['slug'] . 235 239 '&TB_iframe=true&width=600&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>'; 237 241 238 242 if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) { 239 243 $status = install_plugin_install_status( $plugin );