nl_tokens: Filter function that return notices that fit a certain criteria .
pl_tokens: function filterNoticesBy ( site , pluginSlug , <mask> ) { if ( ! site && ! pluginSlug ) { return true ; } if ( isSameSiteNotice ( site , log ) && isSamePluginNotice ( pluginSlug , log ) ) { return true ; } else if ( ! pluginSlug && isSameSiteNotice ( site , log ) ) { return true ; } else if ( ! site && isSamePluginNotice ( pluginSlug , log ) ) { return true ; } return false ; }