hero image

PHP notice undefined variable

Home Forums WordPress Themes Revoke PHP notice undefined variable

Forums WordPress Themes Revoke PHP notice undefined variable

PLEASE NOTE A RECENT CHANGE:
The forum is read-only. Please submit any support request here.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts

  • antkat
    Member
    TT Client
    #71299

    [21-Mar-2017 08:51:22 UTC] PHP Notice: Undefined variable: list_view_mobile in /wp-content/themes/Revoke-child/functions.php on line 350
    [21-Mar-2017 08:51:22 UTC] PHP Notice: Undefined variable: list_view_desktop in /wp-content/themes/Revoke-child/functions.php on line 350

    Line 350 is part of the function register_child_options line starting with wp_localize_script. Full section of code:

    function register_child_options(){
    wp_deregister_script( ‘revoke-main-script’ );
    wp_enqueue_script( ‘revoke-main-script’, get_stylesheet_directory_uri() . ‘/js/script.js’,array(‘jquery’,’revoke-plugins’), null );
    wp_localize_script( “revoke-main-script”, “revoke_main”, array( “ajaxurl” => admin_url( “admin-ajax.php” ), “listviewmobile” => $list_view_mobile, “listviewdesktop” => $list_view_desktop ) );
    }
    add_action(‘wp_enqueue_scripts’, ‘register_child_options’,11);


    Anonymous
    Inactive
    Inactive
    #71301

    Hi there,
    Please remove these functions because the actions you are trying to do are already done by our Tesla Framework so you don’t need to enqueue the any scripts or styles from the parent theme.
    Best Regards


    antkat
    Member
    TT Client
    #71342

    Thanks, Michael
    I wonder how many of this type of “duplicate” may have been added in over the years.
    Is there a way to close this “ticket”
    Kathy


    Anonymous
    Inactive
    Inactive
    #71373

    Hi Kathy,
    There are lots of them.
    I will close the ticket for you.
    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)

PHP notice undefined variable

Home Forums WordPress Themes Revoke PHP notice undefined variable

[i]
[i]
[i]
[i]