Virus Alarm
Hello, the following things are always classified by the plugin Antivirus as dangerous as it lands on the blacklist by McAfee. How can you change that?:
1. /themes/wallpress/functions.php: create_function(
2. /themes/wallpress/functions.php: add_action(‘widgets_init’, create_function(”, ‘return register_widget(“My_Nicename_R …
3. /themes/wallpress/functions.php: ‘@<iframe[^>]*?>.*?</iframe>@siu’,
4. /themes/wallpress/inc/widgets.php: add_action( ‘widgets_init’, create_function( ”, “register_widget(‘wallpress_recent_fl …
Is always marked: create_function and iframe
1. /themes/wallpress/functions.php: create_function(
2. /themes/wallpress/functions.php: add_action(‘widgets_init’, create_function(”, ‘return register_widget(“My_Nicename_R …
these two have done himself. But No. 3 and 4 is still open.
Regarding issues 3 and 4, here is our suggestion.
About issue 3:
In functions.php file, we used the code below to automatically filter iframe tags, embed and br tags placed in the content. If it is unnecessary to you, yes, you can remove it:
add_filter('the_excerpt', 'wallpress_strip_tags');
add_filter('the_content', 'wallpress_strip_tags');
if( !function_exists('wallpress_strip_tags') ) :
function wallpress_strip_tags($text) {
if( !is_single() & !is_page() ) {
$text = preg_replace(
array(
// Remove invisible content
'@<iframe[^>]*?>.*?</iframe>@siu',
'@<embed[^>]*?>.*?</embed>@siu',
'@<br.*?>@siu'
),
array(
' ', ' '), $text );
}
return $text;
}
endif;
Regarding the issue 4, you can replace the following code
add_action( 'widgets_init', create_function( '', "register_widget('wallpress_recent_flickr_Widget');" ) );
with code lines below:
function register_wallpress_recent_flickr_Widget() {
register_widget('wallpress_recent_flickr_Widget');
}
add_action('widgets_init','register_wallpress_recent_flickr_Widget');
hi Jackie, unfortunately now only read. Thank you. Greeting Rinck
Please login or Register to submit your answer