diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-15 18:58:48 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-15 18:58:48 +0000 |
commit | 9c25d870a54e4f4daa369739f0ca978003ae9463 (patch) | |
tree | db3c991f68f3f5bf868f855147db059a332f2af7 | |
parent | b818e8bf63f7e0eb5b4669503cf91eddb77d9a5c (diff) | |
download | wordpress-mu-9c25d870a54e4f4daa369739f0ca978003ae9463.tar.gz wordpress-mu-9c25d870a54e4f4daa369739f0ca978003ae9463.tar.xz wordpress-mu-9c25d870a54e4f4daa369739f0ca978003ae9463.zip |
Fix "Last Updated" problems returning from wp_redirect() (fixes #222)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@847 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | wp-admin/wpmu-blogs.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-admin/wpmu-blogs.php b/wp-admin/wpmu-blogs.php index cca0591..8026db4 100644 --- a/wp-admin/wpmu-blogs.php +++ b/wp-admin/wpmu-blogs.php @@ -269,9 +269,9 @@ switch( $_GET[ 'action' ] ) { $query .= ' ORDER BY registered '; } elseif( $_GET[ 'sortby' ] == 'ID' ) { $query .= ' ORDER BY ' . $wpdb->blogs . '.blog_id '; - } elseif( $_GET[ 'sortby' ] == 'Last Updated' ) { + } elseif( $_GET[ 'sortby' ] == 'LastUpdated' ) { $query .= ' ORDER BY last_updated '; - } elseif( $_GET[ 'sortby' ] == 'Blog Name' ) { + } elseif( $_GET[ 'sortby' ] == 'BlogName' ) { $query .= ' ORDER BY domain '; } if( $_GET[ 'order' ] == 'DESC' ) { @@ -387,7 +387,7 @@ $sortby_url = "s=" . $_GET[ 's' ] . "&ip_address=" . $_GET[ 'ip_address' ]; <tr> <?php foreach($posts_columns as $column_display_name) { ?> - <th scope="col"><a href="wpmu-blogs.php?<?php echo $sortby_url ?>&sortby=<?php echo urlencode( $column_display_name ) ?>&<?php if( $_GET[ 'sortby' ] == $column_display_name ) { if( $_GET[ 'order' ] == 'DESC' ) { echo "order=ASC&" ; } else { echo "order=DESC&"; } } ?>start=<?php echo $start ?>"><?php echo $column_display_name; ?></a></th> + <th scope="col"><a href="wpmu-blogs.php?<?php echo $sortby_url ?>&sortby=<?php echo urlencode( str_replace( ' ', '', $column_display_name ) ) ?>&<?php if( $_GET[ 'sortby' ] == str_replace( ' ', '', $column_display_name ) ) { if( $_GET[ 'order' ] == 'DESC' ) { echo "order=ASC&" ; } else { echo "order=DESC&"; } } ?>start=<?php echo $start ?>"><?php echo $column_display_name; ?></a></th> <?php } ?> </tr> @@ -514,7 +514,7 @@ foreach($posts_columns as $column_name=>$column_display_name) { default: ?> - <td valign='top'><?php do_action('manage_posts_custom_column', $column_name, $id); ?></td> + <td valign='top'><?php do_action('manage_blogs_custom_column', $column_name, $id); ?></td> <?php break; } |