• Error location: jetpack/modules/theme-tools/random-redirect.php on line 66.

    Solution: replace the following:

    // Set author name if we're on an author archive.
    if ( is_author() ) {
        $random_author_name = get_the_author_meta( 'user_login' );
        $random_author_query = 'AND user_login = "' . $random_author_name . '"';
    }

    with:

    // Set author name if we're on an author archive.
    if ( is_author() ) {
        $random_author_name = get_the_author_meta( 'user_login' );
        $random_author_query = 'AND user_login = "' . $random_author_name . '"';
    } else {
        $random_author_query = '';
    }

    https://ww.wp.xz.cn/plugins/jetpack/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP Notice: Undefined variable: random_author_query’ is closed to new replies.