PHP Notice: Only variables should be passed by reference in ../wp-content/plugins/fast-backend/fast-backend.php on line 119
Here is the code:
$isPostTypeOverviewPage = isset($_GET[‘post_type’]) && array_pop( explode( ‘/’, $_SERVER[ ‘PHP_SELF’ ] ) ) !== ‘post-new.php’;
Can it be updated to the following?
// Assign the result of explode() to a variable
$path_parts = explode(‘/’, $_SERVER[‘PHP_SELF’]);
// Pass the variable to array_pop()
$last_part = array_pop($path_parts);
$isPostTypeOverviewPage = isset($_GET[‘post_type’]) && $last_part !== ‘post-new.php’;
HI – just looked into your code before trying out and saw
$isPluginStylesheet = preg_match( '#/wp-content/plugins/#', $hrefs[ $index ] );
im using a custom wp-content folder by using the following im my wp-config file. Any way to change it so it works for me too?
define('WP_CONTENT_DIR', dirname(__FILE__) . '/ok');
define('WP_CONTENT_URL', 'https://domain.com/ok');
THX
]]>