Skip to content

Instantly share code, notes, and snippets.

@josephfusco
Last active July 24, 2017 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephfusco/1e74cc3ae51496bc47629c6a7c5f5f35 to your computer and use it in GitHub Desktop.
Save josephfusco/1e74cc3ae51496bc47629c6a7c5f5f35 to your computer and use it in GitHub Desktop.
Using grep to assist with finding key words in code that could possibly be problematic. (WPCampus 2017 CampusPress code review presentation)
grep -nr 'file_get_contents\|wp_remote_\|wp_feed_cache_transient_lifetime\|base64_decode\|SHOW TABLES\|WP_DEBUG\|error_reporting\|display_errors\|scream.enabled\|rewrite_rules\|flush_rules\|googlesyndication.com\|remove_role\|ALLOW_EXTERNAL\|ofc_upload_image.php\|woothemes_framework_update_head\|wpdb\|CURLOPT_CONNECTTIMEOUT\|WPCom_Theme_Updater\|dbDelta\|mysql_connect\|wp_mkdir_p\|wp_cache_flush\|wp_clean_plugins_cache\|wp_cache_delete\|do_shortcode\|switch_to_blog' .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment