WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Typo in Suffusion functions.php - how to fix? (2 posts)

  1. jamminjames
    Member
    Posted 3 years ago #

    I'm trying to use Category Icons in Suffusion, but there's a typo in Suffusion's functions.php that is preventing it from working.

    On line 956, it said:
    else {
    $cat_str =

    ... without finishing the line with quotes and something in them, and a semicolon, and no } to close the statement.

    This caused a parse error, and the site wouldn't do anything.

    So, I completed the line like so:

    else {
    $cat_str = '';
    }

    However, the If statement says the same thing, so nothing is accomplished. Anyone know what should go there?

    Also, the next line started

    else

    without the { ... so I added that. So, now that whole section, starting from the "if" statement at 953 reads like so, a temporary fix:

    if (count($cat_args) == 0) {
    $cat_str = '';
    }
    else {
    $cat_str = '';
    }
    if (function_exists('put_cat_icons'))
    put_cat_icons( wp_list_categories($cat_args.'&echo=0'));
    else {
    wp_list_categories($cat_args);
    }

    As you can see, the if/else statement needs fixing.

    Anybody know what I should do? Has Suffusion fixed this? Because I've seen nothing...

    Thank you!

  2. jamminjames
    Member
    Posted 3 years ago #

    Ok, apparently it was a corrupted file, I just downloaded Suffusion again and replaced that one file, and it seems to be working.

Topic Closed

This topic has been closed to new replies.

About this Topic