Content Warning
Improvement: really only on a single post page (2 posts)

  1. fisherhu
    Posted 3 years ago #

    I have discovered that the category list page has the $postID the last (first, depends on :D) post on the page. It leads a false warning when the first - or last - post of the page is marked to warn.

    I have modified the main.php:

    if((is_admin() || is_feed() || is_login_page() || current_user_can('manage_options')) && is_single($postID))

    So the warning is only displayed on single post pages. Please consider to apply this change.

    Ps.: maybe the '&& is_single()' without $postID would suffice but I don't know neither php nor the WordPress.


  2. fisherhu
    Posted 3 years ago #

    Arg... my bad, actually it is:

    if(is_admin() || is_feed() || is_login_page() || current_user_can('manage_options') || !is_single($postID))

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Content Warning
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic