Changeset 52936
- Timestamp:
- 03/15/2022 03:56:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r52934 r52936 267 267 */ 268 268 function install_dashboard() { 269 display_plugins_table(); 269 270 ?> 270 <p>271 <?php272 printf(273 /* translators: %s: https://wordpress.org/plugins/ */274 __( 'Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the <a href="%s">WordPress Plugin Directory</a> or upload a plugin in .zip format by clicking the button at the top of this page.' ),275 __( 'https://wordpress.org/plugins/' )276 );277 ?>278 </p>279 280 <?php display_plugins_table(); ?>281 271 282 272 <div class="plugins-popular-tags-wrapper"> … … 396 386 397 387 switch ( current_filter() ) { 398 case 'install_plugins_favorites':399 if ( empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) {400 return;401 }402 break;403 case 'install_plugins_recommended':404 echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>';405 break;406 388 case 'install_plugins_beta': 407 389 printf( … … 411 393 ); 412 394 break; 413 } 414 395 case 'install_plugins_featured': 396 printf( 397 /* translators: %s: https://wordpress.org/plugins/ */ 398 '<p>' . __( 'Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the <a href="%s">WordPress Plugin Directory</a> or upload a plugin in .zip format by clicking the button at the top of this page.' ) . '</p>', 399 __( 'https://wordpress.org/plugins/' ) 400 ); 401 break; 402 case 'install_plugins_recommended': 403 echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>'; 404 break; 405 case 'install_plugins_favorites': 406 if ( empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) { 407 return; 408 } 409 break; 410 } 415 411 ?> 416 412 <form id="plugin-filter" method="post">
Note: See TracChangeset
for help on using the changeset viewer.