Posted By

visualadvance on 02/21/11


Tagged


Versions (?)

Wordpress: More Types Plugin Error


 / Published in: PHP
 

URL: http://wordpress.org/support/topic/plugin-more-types-fatal-error-call-to-a-member-function-add_cap

Edit: more-types/more-types-object.php

Find line 135.

  1. Change: $wp_roles->add_cap($role, $capability);
  2.  
  3. To:
  4. if(is_object($mp_roles) && method_exists($wp_roles,'add_cap'))
  5. {
  6. $wp_roles->add_cap($role, $capability);
  7. }

Report this snippet  

You need to login to post a comment.