• clickingclients

    (@clickingclients)


    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’;


  • You must be logged in to reply to this topic.