Skip to content

Instantly share code, notes, and snippets.

@pattonwebz
Created December 15, 2017 19:35
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 pattonwebz/70cd2771c20cfb9b51ce61eb55e18623 to your computer and use it in GitHub Desktop.
Save pattonwebz/70cd2771c20cfb9b51ce61eb55e18623 to your computer and use it in GitHub Desktop.
check child theme authors aren't uploading too frequently - opens submission reports of all authors currently in the queue viewed
function openInNewTab(url) {
var win = window;
win.open(url, '_blank');
win.blur;
window.focus();
}
function get_authors() {
var authors = [];
jQuery('td.reporter').each( function() {
authors.push( jQuery( this ).text().trim() );
});
return authors;
}
function loop_and_open( authors ) {
for ( var i = 0; i < authors.length; i++ ) {
let link = "https://themes.trac.wordpress.org/query?reporter=" + authors[i] + "&priority=new+theme&priority=previously+reviewed&status=approved&status=closed&status=new&status=reopened&status=reviewing&col=id&col=summary&col=status&col=owner&col=type&col=priority&col=time&desc=1&order=time";
console.log( link );
openInNewTab( link );
}
console.log( authors );
}
var authors = get_authors();
loop_and_open( authors );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment