Ticket #56134: 56134.diff
File 56134.diff, 1.1 KB (added by , 2 years ago) |
---|
-
src/wp-admin/includes/class-wp-site-health.php
428 428 '<p>%s</p>', 429 429 __( 'Your site has 1 active plugin, and it is up to date.' ) 430 430 ); 431 } else {431 } elseif ( $plugins_active > 0 ) { 432 432 $result['description'] .= sprintf( 433 433 '<p>%s</p>', 434 434 sprintf( … … 441 441 $plugins_active 442 442 ) 443 443 ); 444 } else { 445 $result['description'] .= sprintf( 446 '<p>%s</p>', 447 __( 'Your site does not have any active plugins.' ) 448 ); 444 449 } 445 450 } 446 451 … … 591 596 '<p>%s</p>', 592 597 __( 'Your site has 1 installed theme, and it is up to date.' ) 593 598 ); 594 } else {599 } elseif ( $themes_total > 0 ) { 595 600 $result['description'] .= sprintf( 596 601 '<p>%s</p>', 597 602 sprintf( … … 604 609 $themes_total 605 610 ) 606 611 ); 612 } else { 613 $result['description'] .= sprintf( 614 '<p>%s</p>', 615 __( 'Your site does not have any installed themes.' ) 616 ); 607 617 } 608 618 } 609 619