diff --git a/classes/WhatDidTheySayAdmin.php b/classes/WhatDidTheySayAdmin.php index 4842dfb..ea86bab 100644 --- a/classes/WhatDidTheySayAdmin.php +++ b/classes/WhatDidTheySayAdmin.php @@ -629,9 +629,14 @@ class WhatDidTheySayAdmin { * Show the admin page. */ function manage_admin() { + global $wpdb; + $options = get_option('what-did-they-say-options'); $nonce = wp_create_nonce('what-did-they-say'); + + $suggested_amount = 20 + ((int)$wpdb->get_var($wpdb->prepare("SELECT count($wpdb->postmeta.meta_key) FROM $wpdb->postmeta WHERE $wpdb->postmeta.meta_key = 'approved_transcripts'")) * 0.1); + include('partials/admin.inc'); } diff --git a/classes/partials/admin.inc b/classes/partials/admin.inc index f0fce3a..8d40809 100644 --- a/classes/partials/admin.inc +++ b/classes/partials/admin.inc @@ -35,6 +35,7 @@

Version is © 2009 . +