Support » Plugin: Hide Generator Version » Undefined index: ver

  • Resolved ttytyper

    (@ttytyper)


    $query[‘ver’] isn’t always set. That generates notices when debugging is on:

    Notice: Undefined index: ver in […]/hide-generator-version.php on line 20

    The fix is simple. Just use isset():

    if ( isset($query[‘ver’]) && $query[‘ver’] === $wp_version ) {

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index: ver’ is closed to new replies.