+ // skip this if the wp_namespace is not in the proscribed list of
+ // namespaces
+ bool wp_namespace_found = false;
+ if (!data->wp_namespace_res.empty()) {
+ for (vector<pcrecpp::RE>::iterator r = data->wp_namespace_res.begin(); r != data->wp_namespace_res.end(); ++r) {
+ pcrecpp::RE& wp_namespace_re = *r;
+ if (wp_namespace_re.PartialMatch(data->title)) {
+ wp_namespace_found = true;
+ break;
+ }
+ }
+ if (!wp_namespace_found) {
+ return;
+ }
+ }
+