Editing function.php from a custom plugin in WordPress. Line of code prohibiting certain core functions?
<p>I'm pretty new to coding and I just took over a WordPress site where the developer set up their own plugin to edit the functions.php file outside the theme. There seems to be a line of code that is breaking certain core functions in WordPress such as: installing new plugins are failing, cannot search for themes, and the media library is not loading. But if I deactivate this plugin all of these functions come back to life but then some parts of the sites layout break without the plugin on. So can anyone tell me how to fix this code? Thank you so much in advance. </p>

<pre><code>&lt;?php
/* Your code goes below here. */

ob_start();
function check_user_logged_in(){

if ( is_user_logged_in() ) { ?&gt;
&lt;style  type="text/css" media="screen"&gt;
#theme-my-login-2 .widget-wrap .widget-title { display: block !important; }
&lt;/style&gt;
&lt;?php
}
else{ ?&gt;
&lt;style  type="text/css" media="screen"&gt;
table.sidebar_result{margin-top:-10px;}
&lt;/style&gt;
&lt;?php
}
}

// Something is wrong with this next line of code. Can't find new themes or install new plugins. When removed everthing works ok.
add_action('init', 'check_user_logged_in');

// Add Read More Link to Excerpts
add_filter('excerpt_more', 'get_read_more_link');
add_filter( 'the_content_more_link', 'get_read_more_link' );
function get_read_more_link() {
return '...&amp;nbsp;&lt;a href="' . get_permalink() . '"&gt;[Read&amp;nbsp;More]&lt;/a&gt;';
}

//* Display a custom favicon
add_filter( 'genesis_pre_load_favicon', 'sp_favicon_filter' );
function sp_favicon_filter( $favicon_url ) {
return 'http://winningsportsplays.com/wspwp/wp-content/favicon.ico';
}

/* Your code goes above here. */
?&gt;
</code></pre>