WordPress.org

Ready to get started?Download WordPress

Forums

Map Cap
[resolved] Taking an array into account (2 posts)

  1. 10sexyapples
    Member
    Posted 3 years ago #

    Hey there, I was checking out your source on github and noticed that it makes the assumption that the capability type is being passed in this format:
    'capability_type' => 'story'
    Have you considered putting in a conditional check to see if it is being passed this way:
    'capability_type' => array( 'story', 'stories' ) ?
    That would be really swell ... ;-)

    http://wordpress.org/extend/plugins/map-cap/

  2. thenbrent
    Member
    Plugin Author

    Posted 3 years ago #

    Version 2.0 (just released) takes this into account.

    If you'd like to make other improvements, you can fork the plugin on GitHub and make a pull request with the changes. I'll gladly merge them. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags