Open carl-alberto opened 6 years ago
Upon digging up the code of this plugin, there is an undocumented filter in place to override the capability check.
Adding this in the your theme's function.php can make it work.
function better_search_replace_cap_override() {
return 'manage_options';
}
add_filter( 'bsr_capability', 'better_search_replace_cap_override' );
@carl-alberto Thanks for that, helped me out :)
This occurs on Bedrock based projects, too.
Could you please refrain from coupling the availability of BSR from install_plugins
cap?
May be build in a switch to explicitely make the functionality available independent of install_plugins
? In some Live-/Staging-environments it must be executable for certain cases.
Seems this plugin do not work because it is doing capability check for 'install_plugins' so it won't work on read only environments of Pantheon, is it feasible to use the 'manage_options' capabilities instead? If yes, are you welcome for PR of it?