Support » Plugin: DW Question & Answer » Invalid argument supplied for foreach()

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

    (@designwall)

    Hi KTS915,

    Thank you for contacting DesignWall! My name is Anna and I am happy to be of assistance in this matter.

    Please reach us at hi@designwall.com for a further assistance. Our developer will help you to check and fix it.

    Apologies for the inconvenience. Let me know if there is anything else I can help you with.

    Warm Regards,
    Anna.

    Thread Starter KTS915

    (@kts915)

    The fix is this. In inc/Permission.php change line 272 from this:
    if ( $author == $current_user->ID ) {

    to this:
    if ( $author == $current_user->ID && !empty( $caps ) ) {

    It would be great to see this in the next update.

    And, by the way, this is NOT resolved until you actually implement this fix.

    • This reply was modified 7 years, 6 months ago by KTS915.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Invalid argument supplied for foreach()’ is closed to new replies.