- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r43436 r43571 144 144 145 145 $args = array( 146 'page' 147 'per_page' 146 'page' => $paged, 147 'per_page' => $per_page, 148 148 // Send the locale to the API so it can provide context-sensitive results. 149 'locale' 149 'locale' => get_user_locale(), 150 150 ); 151 151 … … 257 257 258 258 wp_localize_script( 259 'updates', '_wpUpdatesItemCounts', array( 259 'updates', 260 '_wpUpdatesItemCounts', 261 array( 260 262 'plugins' => $js_plugins, 261 263 'totals' => wp_get_update_data(), … … 274 276 <?php } else { ?> 275 277 <div class="no-plugin-results"><?php _e( 'No plugins found. Try a different search.' ); ?></div> 276 <?php278 <?php 277 279 } 278 280 } … … 309 311 310 312 $this->screen->render_screen_reader_content( 'heading_views' ); 311 ?>313 ?> 312 314 <div class="wp-filter"> 313 315 <ul class="filter-links"> … … 322 324 </ul> 323 325 324 <?php install_search_form(); ?>326 <?php install_search_form(); ?> 325 327 </div> 326 <?php328 <?php 327 329 } 328 330 … … 341 343 $this->display_tablenav( 'top' ); 342 344 343 ?>345 ?> 344 346 <div class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>"> 345 <?php346 $this->screen->render_screen_reader_content( 'heading_list' );347 ?>347 <?php 348 $this->screen->render_screen_reader_content( 'heading_list' ); 349 ?> 348 350 <div id="the-list"<?php echo $data_attr; ?>> 349 351 <?php $this->display_rows_or_placeholder(); ?> 350 352 </div> 351 353 </div> 352 <?php354 <?php 353 355 $this->display_tablenav( 'bottom' ); 354 356 } … … 366 368 if ( 'top' === $which ) { 367 369 wp_referer_field(); 368 ?>370 ?> 369 371 <div class="tablenav top"> 370 372 <div class="alignleft actions"> … … 386 388 <br class="clear" /> 387 389 </div> 388 <?php390 <?php 389 391 } 390 392 } … … 561 563 'action' => 'activate', 562 564 'plugin' => $status['file'], 563 ), network_admin_url( 'plugins.php' ) 565 ), 566 network_admin_url( 'plugins.php' ) 564 567 ); 565 568 … … 622 625 623 626 $last_updated_timestamp = strtotime( $plugin['last_updated'] ); 624 ?>627 ?> 625 628 <div class="plugin-card plugin-card-<?php echo sanitize_html_class( $plugin['slug'] ); ?>"> 626 629 <?php … … 652 655 ); 653 656 } 654 } elseif ( ! $compatible_php 657 } elseif ( ! $compatible_php ) { 655 658 _e( 'This plugin doesn’t work with your version of PHP. ' ); 656 659 printf( … … 704 707 if ( $plugin['active_installs'] >= 1000000 ) { 705 708 $active_installs_millions = floor( $plugin['active_installs'] / 1000000 ); 706 $active_installs_text = sprintf(709 $active_installs_text = sprintf( 707 710 _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ), 708 711 number_format_i18n( $active_installs_millions ) … … 729 732 </div> 730 733 </div> 731 <?php734 <?php 732 735 } 733 736
Note: See TracChangeset
for help on using the changeset viewer.