232 posts
  • Elite Author
  • Trendsetter
  • 6 Years of Membership
  • Author Level 7
+3 more
wpscouts
says

Title says it all. Just wondering if there is any plugin which scan code of the whole theme and than decide, which older versions of WordPress are able to run the theme?

905 posts
  • Author Level 3
  • Affiliate Level 1
  • Collector Level 2
  • 5 Years of Membership
+4 more
infuse01
says

ASFIK there is no such plugin. But anyway – that would be the wrong direction. In any case you should look to always have the latest Version of WP running and have compatible themes and plugins.

232 posts
  • Elite Author
  • Trendsetter
  • 6 Years of Membership
  • Author Level 7
+3 more
wpscouts
says

yes its right, we should always have latest installation of wordpress. But i’m asking this plugin for theme authors. So that theme authors does not have to manually test their theme on each version of wordpress separately. And a theme support how many wp versions, this is the one thing which authors have to define while uploading theme.

However, not sure if buyers give much weight to this specification.

1096 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Beta Tester
  • Collector Level 2
+5 more
Gareth_Gillman
says

The best way to make a theme backwards compatible is to run an if statement on any functions which have been introduced since 3.0 e.g.

 <?php if(function-exists ('nav-menu')) {
   // wp-nav-menu code here
 } else {
 // wp link pages code here
} ??

This will then basically make your theme backwards compatible incase someone is running a seriously out of date version (which they shouldn’t but always good to test for it).

I am launching a WP theme which has the above code, as I know far too well a lot of WP users don’t upgrade (one of my clients was still on 2.4 until recently).

119 posts
  • 7 Years of Membership
  • Collector Level 3
naspos
says

There is a plugin it is called Theme Check:

http://wordpress.org/extend/plugins/theme-check/
by
by
by
by
by
by