You appear to be a bot. Output may be restricted
Description
Filter WordPress files listed from GitThe WordPress Git repository contains files for plugins, themes and other things that we want to handle separately. So filter them out. See _la_RFI
Usage
oikb_filter_wordpress_files( $files );
Parameters
- $files
- ( mixed ) required –
Returns
voidSource
File name: oik-batch/oik-list-wordpress-files.phpLines:
1 to 17 of 17
function oikb_filter_wordpress_files( $files ) { $filtered = array(); foreach ( $files as $file ) { if ( 0 === strpos( $file, "wp-content/" ) ) { if ( strpos( $file, "plugins/index.php" ) ) { $filtered[] = $file; } elseif ( strpos( $file, "themes/index.php" ) ) { $filtered[] = $file; } elseif ( $file == "wp-content/index.php" ) { $filtered[] = $file; } } else { $filtered[] = $file; } } return( $filtered ); }View on GitHub