Title: Security Issue
Last modified: August 30, 2016

---

# Security Issue

 *  Resolved [Didier77](https://wordpress.org/support/users/didier77/)
 * (@didier77)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/security-issue-58/)
 * Author theme forces the display of version of WordPress used in html. Providing
   version of WordPress is considered as security issue.
    It is not possible to 
   change this behavior by using a child theme.
 * Please remove the 2 following lines in functions.php:
    remove_action( ‘wp_head’,‘
   wp_generator’ ); add_action( ‘wp_head’, ‘wp_generator’, 1 );

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/security-issue-58/#post-6701165)
 * WordPress includes the display of the WordPress version, not Author. Author simply
   moves the meta element earlier in the head.
 * If you’d like to remove it with a child theme, you can add the following to your
   child theme’s functions.php file:
 *     ```
       function ct_author_child_remove_wp_version() {
         remove_action( 'wp_head', 'wp_generator', 1 );
       }
       add_action('after_setup_theme', 'ct_author_child_remove_wp_version');
       ```
   
 *  Thread Starter [Didier77](https://wordpress.org/support/users/didier77/)
 * (@didier77)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/security-issue-58/#post-6701259)
 * Thanks! It solves my issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Security Issue’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/author/1.56/screenshot.png)
 * Author
 * [Support Threads](https://wordpress.org/support/theme/author/)
 * [Active Topics](https://wordpress.org/support/theme/author/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/author/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/author/reviews/)

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)

 * 2 replies
 * 2 participants
 * Last reply from: [Didier77](https://wordpress.org/support/users/didier77/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/security-issue-58/#post-6701259)
 * Status: resolved