Αυτό το πρόσθετο δεν έχει δοκιμασθεί με τις 3 τελευταίες κύριες εκδόσεις του WordPress. Μπορεί να μην αναπτύσσεται ή να υποστηρίζεται άλλο και να έχει προβλήματα συμβατότητας με τις πιο πρόσφατες εκδόσεις του WordPress.

Theme Mentor

Περιγραφή

Theme Mentor is a cousin of the Theme-Check plugin getting deeper into the code analysis.

It’s using different approaches to monitor for common problems regarding theme reviews from the WordPress Theme Reviewers Team. It is prone to fault analysis, so use only as a reference for improving your code base even further.

Currently supported validations:

  • Mark all tags in template files
  • Mark all tags in template files
  • Warn about query_posts() usage
  • capital_P_dangit control (disallow any WordPress spelling other than WordPress as is – that is WORDPRESS and WordPress, ugh)
  • wp_deregister_script(‘jquery’) is forbidden
  • wp_dequeue_script(‘jquery’) is forbidden
  • prevent global $data; call as a common troublemaker (props @pippinsplugins)

header.php specific

  • Make sure that wp_head is before
  • Ensure that wp_title(…) is called within and tags

footer.php specific

  • Make sure that wp_footer is before

Στιγμιότυπα

  • Sample Theme Mentor validation test results

Εγκατάσταση

This section describes how to install the plugin and get it working.

e.g.

  1. Upload theme-mentor to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Appearance -> Theme Mentor
  4. Pick a theme and start the test

Συχνές Ερωτήσεις

Why would I need this plugin?

The higher the quality of your theme’s code, the better the compatibility with the core and the plugins out there.

Should I also use Theme-Check?

It’s not required, but it’s highly recommended. Theme Mentor is the extra step of notifying you for possible troubles with your code. Part of the remarks could be irrelevant, but hey, better to have something to double check and confirm it’s working than to miss obvious code troubles.

Κριτικές

Δεν υπάρχουν αξιολογήσεις για αυτό το πρόσθετο.

Συνεισφέροντες & Προγραμματιστές

“Theme Mentor” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.

Συντελεστές

Σύνοψη αλλαγών

0.1

  • A first release.
  • Tracking script/link tag presence, query_posts calls, and wp_head/wp_footer position in files

0.2

  • Code refactor