functions.php corrupt
-
the brightnews/functions.php seems to be corrupt…
on line 68 there is a php if construction that is not valid….
function brightnews_scripts_styles() { global $wp_styles; // Adds JavaScript if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) }
This is not a valid if construction and when you use an ide that reports…
expecting statement, which is correct.
Furthermore on line 369 there is this code…
function brightnews_button_shortcode($atts, $content = null) { extract(shortcode_atts(array('link' => '#'), $atts)); return '<a class="custom-button" href="'.$link.'">' . do_shortcode($content) . '</a>'; }
$link is not available in the function, you can fix this by passing the link to the function, or to call global $link in the function.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘functions.php corrupt’ is closed to new replies.