• Resolved Didier77

    (@didier77)


    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

    (@bensibley)

    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

    (@didier77)

    Thanks! It solves my issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Security Issue’ is closed to new replies.