Ticket #28785: 28785.patch
File 28785.patch, 2.8 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-plugin-install-list-table.php
279 279 $details_link = self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin['slug'] . 280 280 '&TB_iframe=true&width=600&height=550' ); 281 281 282 $action_links[] = '<a href="' . esc_ attr( $details_link ) . '" class="thickbox" title="' .282 $action_links[] = '<a href="' . esc_url( $details_link ) . '" class="thickbox" title="' . 283 283 esc_attr( sprintf( __( 'More information about %s' ), $name ) ) . '">' . __( 'More Details' ) . '</a>'; 284 284 285 285 /** … … 295 295 <div class="plugin-card"> 296 296 <div class="plugin-card-top"> 297 297 <div class="name column-name"<?php echo $style['name']; ?>> 298 <h4><a href="<?php echo esc_ attr( $details_link ) ?>" class="thickbox"><?php echo $title; ?></a></h4>298 <h4><a href="<?php echo esc_url( $details_link ) ?>" class="thickbox"><?php echo $title; ?></a></h4> 299 299 <div class="action-links"> 300 300 <?php 301 301 if ( ! empty( $action_links ) ) { … … 317 317 <?php wp_star_rating( array( 'rating' => $plugin['rating'], 'type' => 'percent', 'number' => $plugin['num_ratings'] ) ); ?> 318 318 <span class="num-ratings">(<?php echo number_format_i18n( $plugin['num_ratings'] ); ?>)</span> 319 319 </div> 320 <div class="column-updated"><?php echo __( '<strong>Last updated:</strong>' ) . ' '. sprintf( '%s ago', human_time_diff( strtotime($plugin['last_updated']) ) ); ?></div> 321 <div class="column-downloaded"><?php echo sprintf( __('%s downloads'), number_format_i18n( $plugin['downloaded'] ) ); ?></div> 320 <div class="column-updated"> 321 <strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo esc_attr( $plugin['last_updated'] ); ?>"> 322 <?php printf( __( '%s ago' ), human_time_diff( strtotime( $plugin['last_updated'] ) ) ); ?> 323 </span> 324 </div> 325 <div class="column-downloaded"> 326 <?php echo sprintf( _n( '%s download', '%s downloads', $plugin['downloaded'] ), number_format_i18n( $plugin['downloaded'] ) ); ?> 327 </div> 322 328 <div class="column-compatibility"> 323 <?php329 <?php 324 330 if ( ! empty( $plugin['tested'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['tested'] ) ), $plugin['tested'], '>' ) ) { 325 331 echo __( '<strong>Untested</strong> with your install '); 326 332 } elseif ( ! empty( $plugin['requires'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['requires'] ) ), $plugin['requires'], '<' ) ) { … … 328 334 } else { 329 335 echo __( '<strong>Compatible</strong> with your install '); 330 336 } 331 ?>337 ?> 332 338 </div> 333 339 </div> 334 340 </div>