Automattic / vip-scanner

Deprecated: Scan all sorts of themes and files and things! Use PHPCS and the VIP coding standards instead
https://automattic.com
140 stars 51 forks source link

False Positive: vip-init.php was not required #49

Closed hardlyneutral closed 9 years ago

hardlyneutral commented 11 years ago

I'm getting a false positive with the new version of the VIP Scanner after updating: vip-init.php was not required

These are the first few lines of my functions.php file:

<?php

// Init WP.com VIP environment require_once( WP_CONTENT_DIR . '/themes/vip/plugins/vip-init.php' );

nickdaugherty commented 10 years ago

This should be resolved as of #169

mdrovdahl commented 9 years ago

Found another false positive:

functions.php:

vagrant@vip:~$ grep -n2 vip-init.php /srv/www/wp-content/themes/vip/cox-rare-kiro/functions.php 
11- * Init WP.com VIP environment
12- */
13:require_once WP_CONTENT_DIR . '/themes/vip/plugins/vip-init.php';
14-
15-/**