You appear to be a bot. Output may be restricted
Description
createapi ignore list – copy of listapis ignore listIncludes wp-config.php since otherwise this can reveal DB connection information It's a bit silly to have this information as a constant!
Usage
_ca_checkignorelist( $file );
Parameters
- $file
- ( mixed ) required –
Returns
voidTO DO
Change so that po, mo and other files are NOT ignored for the "wordpress" plugin NOTE THE GOBANG!Source
File name: oik-batch/oik-ignore-list.phpLines:
1 to 25 of 25
function _ca_checkignorelist( $file ) { gobang(); $dir = pathinfo( $file, PATHINFO_DIRNAME ); $ignore_dirs = bw_assoc( bw_as_array( "oik-tunes/getid3,buddypress/bp-forums/bbpress" ) ); $ignore = bw_array_get( $ignore_dirs, $dir, false ); if ( $ignore ) { // echo "Ignoring folder: $dir ". PHP_EOL; } else { $filename = pathinfo( $file, PATHINFO_FILENAME ); // $ignores = bw_assoc( bw_as_array( "oik-activation,oik-docblock,bobbnotwp" ) ); $ignore_files = "wp-config,oik-docblock,bobbnotwp"; //if ( $plugin !== "wordpress" ) { $ignore_files .= _ca_not_wordpress_ignore_list(); //} $ignores = bw_assoc( bw_as_array( $ignore_files ) ); $ignore = bw_array_get( $ignores, $filename, false ); if ( $ignore ) { echo "Ignoring file: $filename " . PHP_EOL; } else { echo "Parsing file: $filename " . PHP_EOL ; //goban(); } } return( $ignore ); }View on GitHub