partial-alerts-errors.php 954 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin
  6. *
  7. * @uses array $alerts_data
  8. */
  9. $type = 'errors';
  10. $dashicon = 'warning';
  11. $active = $alerts_data['errors']['active'];
  12. $dismissed = $alerts_data['errors']['dismissed'];
  13. $active_total = count( $active );
  14. $dismissed_total = count( $dismissed );
  15. $total = $alerts_data['metrics']['errors'];
  16. $i18n_title = __( 'Problems', 'wordpress-seo' );
  17. $i18n_issues = __( 'We have detected the following issues that affect the SEO of your site.', 'wordpress-seo' );
  18. $i18n_no_issues = __( 'Good job! We could detect no serious SEO problems.', 'wordpress-seo' );
  19. $i18n_muted_issues_title = sprintf(
  20. /* translators: %d expands the amount of hidden problems. */
  21. _n( 'You have %d hidden problem:', 'You have %d hidden problems:', $dismissed_total, 'wordpress-seo' ),
  22. $dismissed_total
  23. );
  24. require WPSEO_PATH . 'admin/views/partial-alerts-template.php';