WordPress.org

Forums

Role Scoper
Undefined property: stdClass::$create_posts (1 post)

  1. flynsarmy
    Member
    Posted 2 years ago #

    I was getting alot of:

    Notice: Undefined property: stdClass::$create_posts in /path/to/wp-content/plugins/role-scoper/definitions_cr.php on line xxx

    Seems $cap doesn't have create_posts variable so in definitions_cr.php I changed:

    if ( $force_create_posts_cap )
    	$arr["rs_{$name}_author"][$cap->create_posts] = true;

    to

    if ( $force_create_posts_cap )
    	if ( isset($cap->create_posts) )
    		$arr["rs_{$name}_author"][$cap->create_posts] = true;

    on all the lines referencing create_posts. This was in WPMU network section of WP3.4.2 just after activating the plugin..

    http://wordpress.org/extend/plugins/role-scoper/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Role Scoper
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.