in my website (mwallpaper.ir) , i show attachment pages like a post, so i need to show inherit post_types in wpp query
i changed line 463 in Query.php file from this :
$where .= ” AND p.post_password = ” AND p.post_status = ‘publish’”;
to this :
$where .= ” AND p.post_password = ” AND p.post_status = ‘publish’ OR p.post_status = ‘inherit’”;
problem is : everytime i update the plugin i should change this line in plugin files, Is there a way to change this from theme functions file?
The page I need help with: [log in to see the link]