• Resolved nerdworker

    (@newtonsongbird)


    I noticed in the plugin code that the shortcode wp_capabilities is hardcoding the wp_ prefix. Users who change the default database prefix (a security measure) will have a different name for the capabilities field. This will make that shortcode not function properly. Just an FYI.

    https://wordpress.org/plugins/bnfw/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi newtonsongbird,
    Thanks for your message.

    That’s an excellent point. I’ll make sure this is fixed in the next version.
    I’ll leave this thread open until it’s released.

    Thanks again,
    Jack

    Plugin Author bnfw

    (@voltronik)

    Hi newtonsongbird,

    After further inspection I realised that the ‘wp_’ part in the shortcode doesn’t refer to the table prefix. It refers to the a field called ‘wpcapabilities’ returned by the get_userdata function – https://codex.wordpress.org/Function_Reference/get_userdata. It has no co-relation with the table prefix.

    Hope this helps!
    Jack

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_capabilities shortcode’ is closed to new replies.