[wp-cvs] wordpress/wp-admin moderation.php,1.27,1.28
Matthew Mullenweg
saxmatt at users.sourceforge.net
Thu Jan 27 22:24:10 GMT 2005
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9872/wp-admin
Modified Files:
moderation.php
Log Message:
Don't show box if there's nothing to show.
Index: moderation.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/moderation.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** moderation.php 24 Jan 2005 08:21:31 -0000 1.27
--- moderation.php 27 Jan 2005 22:24:07 -0000 1.28
***************
*** 5,9 ****
$parent_file = 'edit.php';
! $wpvarstoreset = array('action', 'item_ignored', 'item_deleted', 'item_approved', 'feelinglucky', 'ignored', 'deleted', 'approved');
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
$wpvar = $wpvarstoreset[$i];
--- 5,9 ----
$parent_file = 'edit.php';
! $wpvarstoreset = array('action', 'item_ignored', 'item_deleted', 'item_approved', 'feelinglucky');
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
$wpvar = $wpvarstoreset[$i];
***************
*** 75,80 ****
require_once('admin-header.php');
! if ( isset($deleted) || isset($approved) || isset($ignored) ) {
echo "<div class='updated'>\n<p>";
if ($approved) {
if ('1' == $approved) {
--- 75,83 ----
require_once('admin-header.php');
! if ( isset($_GET['deleted']) || isset($_GET['approved']) || isset($_GET['ignored']) ) {
echo "<div class='updated'>\n<p>";
+ $_GET['approved'] = (int) $_GET['approved'];
+ $_GET['deleted'] = (int) $_GET['deleted'];
+ $_GET['ignored'] = (int) $_GET['ignored'];
if ($approved) {
if ('1' == $approved) {
More information about the cvs
mailing list