Thank Mike for the update, I use your plugin very often.
@davidplese if you need it I’ve just made some changes to make this plugin run with not multisite version of wordpress. Here’s the code:
function wprp_admin_menu(){
if (is_admin()){
global $wprp;
if($wprp == NULL){
$wprp = new ReportPost();
$wprp->findReports('ORDER BY id DESC',1,'WHERE status=1');
}
$newReports = $wprp->totalRows;
if($newReports > 0){
$newReports = '<span class="update-plugins count-1"><span class="">'.$newReports.'</span></span>';
} else {
$newReports = '';
}
add_menu_page('WP-REPORTPOST New Reports', 'Reports'.$newReports, 4, dirname(__FILE__)."/new-reports.php",'', WP_PLUGIN_URL.'/wp-reportpost/assets/reports.png');
add_submenu_page( dirname(__FILE__)."/new-reports.php", 'New Reports', 'New Reports', 4, dirname(__FILE__)."/new-reports.php");
add_submenu_page( dirname(__FILE__)."/new-reports.php", 'Archives', 'Archives', 4, dirname(__FILE__)."/archive-reports.php");
add_submenu_page( dirname(__FILE__)."/new-reports.php", 'Settings', 'Settings', 8, dirname(__FILE__)."/wprpsettings.php");
}
}