$style/$script_path check fails when using Bedrock
-
I’m using Bedrock which has a different folder structure than typical WP installs. There are conditions that reassign
$style_path
&$script_path
in a check for the substring of those variables (line 584):if($this->wordpressdir != '' && substr($script_path, 0, strlen($this->wordpressdir)) != $this->wordpressdir)
The problem is that Bedrock’s folder structure has core WP files at
/wp/wp-*/
so that substring condition returns/wp
so that variable is never reassigned – I need it to be. If the length of the substring check was longer, it’d return/wp-
which would reassign the variable.Example:
$script_path
for the WP admin bar is set to:
'/wp-includes/js/admin-bar.js'
it should be set to:
'/wp/wp-includes/js/admin-bar.js'
Which is does, if I remove the conditions around reassignment.Can you help me out? Do you have a Github repo where I can make a PR?
- The topic ‘$style/$script_path check fails when using Bedrock’ is closed to new replies.