Restrict Path logic seems backwards after latest update

[ad_1]

After the latest update, the TOC no longer showed up. After some debugging, I narrowed it down to the code above.

It seems that the logic is backwards here. I would think the post should be eligible if the URI matches the restricted path. However, it seems to be working the opposite of that now.

Your in-plugin description of the field also seems to indicate that a match should make it eligible:

Restrict generation of the table of contents to pages that match the required path. This path is from the root of your site and always begins with a forward slash.

Eg: /wiki/, /corporate/annual-reports/

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer