should I be concerned with this code in a WordPress theme?

6 replies
  • WEB DESIGN
  • |
I've been looking at WordPress themes to purchase and I have found a site that has some nice looking themes and also they have some free themes so that you can check out their quality. I checked out all of their free themes with themecheck.org and they all have this: should I avoid these themes? It seems that most WordPress themes have issues according to themecheck.org.

Security breaches : Use of variable functions

Found $field_class in file options.php.
Line 284: $enqueue = new $field_class('','',$this);

Line 523: $validation = new $validate($field, $plugin_options[$field['id']], $options[$field['id']]);

Line 897: $render = new $field_class($field, $value, $this);
#code #concerned #theme #wordpress
  • Profile picture of the author RobinInTexas
    That code doesn't raise any red flags here, I'd look further into functions.php to see what's set in those variables.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[9205726].message }}
    • Profile picture of the author Jeff Gibson
      Originally Posted by RobinInTexas View Post

      That code doesn't raise any red flags here, I'd look further into functions.php to see what's set in those variables.
      Thanks for your response. what exactly would i be looking for in the functions.php?
      Signature

      {{ DiscussionBoard.errors[9206352].message }}
  • Profile picture of the author Anne Laidlaw
    The theme seems fine to me that code should be ok. What are you worried about the theme doing?

    Anne L
    Signature
    Giant Plugin Biz High Quality WP Plugin Package
    WP Plugins Are Hott!! Claim Your Piece Of The Pie Today!
    Free Squeeze Page Creator - FREE Instant Access To Alou's Killer Squeeze Page Creator.
    Alou.com - Wordpress SEO - Latest free WordPress SEO, Plugins, Themes and more!
    {{ DiscussionBoard.errors[9206638].message }}
    • Profile picture of the author Jeff Gibson
      Originally Posted by Anne Laidlaw View Post

      The theme seems fine to me that code should be ok. What are you worried about the theme doing?

      Anne L
      themecheck.org just gave it a bad rating and said that the code was a security breach.
      Signature

      {{ DiscussionBoard.errors[9210577].message }}
  • Profile picture of the author dbong
    Doesn't look like anything that should be alarming. You can always contact the site for an explanation on the code if that would ease your worries though.
    Signature

    Digital Marketer | Investing Enthusiast

    {{ DiscussionBoard.errors[9208693].message }}
  • Profile picture of the author iren sultana
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[9210586].message }}
    • Profile picture of the author Taraka
      The theme's just fine, code looks safe
      {{ DiscussionBoard.errors[9210588].message }}

Trending Topics