Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add flags to include / exclude views in wp_get_table_names() #5128
Part one of a feature discussed in search-replace-command/issues/109 - adds new flags --views-only and --base-tables-only to restrict results.
Test coverage only included for use with --all-tables / --all-tables-with-prefix. This is because when these functions aren't passed wp_get_table_names() relies on retrieving tables names from $wpdb. I couldn't see how to register a view with / inject a view into $wpdb, so have left that test coverage out for now.