Skip to content

Commit

Permalink
Rename blog_ids() to get_blog_ids()
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbetz committed Jun 20, 2012
1 parent 166c447 commit fd22351
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions includes/class-vip-user-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function column_email($item){

function column_sites($item){
$blogs = get_blogs_of_user($item->ID);
$crossreference = $this->blog_ids();
$crossreference = $this->get_blog_ids();
$sites = '';
foreach ( $blogs as $blog )
if( in_array($blog->userblog_id, $crossreference) ) {
Expand Down Expand Up @@ -103,7 +103,7 @@ function process_bulk_action() {
}

// TODO: replace with blog stickers API
function blog_ids() {
function get_blog_ids() {
$user_id = get_current_user_id();
$blogs = get_blogs_of_user($user_id, false);
$blog_ids = array();
Expand Down Expand Up @@ -137,7 +137,7 @@ function prepare_items() {

$this->process_bulk_action();

$blog_ids = $this->blog_ids();
$blog_ids = $this->get_blog_ids();

$meta_query = array();
$meta_query['relation'] = 'OR';
Expand Down Expand Up @@ -201,7 +201,7 @@ function inline_edit() {
<span class="title inline-edit-categories-label"><?php _e( 'Sites', 'vip-dashboard' ) ?></span>

<ul class="cat-checklist category-checklist">
<?php foreach ( $this->blog_ids() as $id ): ?>
<?php foreach ( $this->get_blog_ids() as $id ): ?>
<?php $blog = get_blog_details($id); ?>
<li><label class="selectit"><input id='blog-<?php echo esc_attr($blog->blog_id); ?>' type=checkbox name=blogs[] value='<?php echo esc_attr($blog->blog_id); ?>'> <?php echo esc_html($blog->blogname); ?></label></li>
<?php endforeach; ?>
Expand Down Expand Up @@ -257,7 +257,7 @@ function bulk_remove() {
<span class="title inline-edit-categories-label"><?php _e( 'Sites', 'vip-dashboard' ) ?></span>

<ul class="cat-checklist category-checklist">
<?php foreach ( $this->blog_ids() as $id ): ?>
<?php foreach ( $this->get_blog_ids() as $id ): ?>
<?php $blog = get_blog_details($id); ?>
<li><label class="selectit"><input id='blog-<?php echo esc_attr($blog->blog_id); ?>' type=checkbox name=blogs[] value='<?php echo esc_attr($blog->blog_id); ?>'> <?php echo esc_html($blog->blogname); ?></label></li>
<?php endforeach; ?>
Expand Down
2 changes: 1 addition & 1 deletion vip-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function add_users_form() { ?>
<fieldset>
<?php
$vip_users_table = new VIP_User_Table();
$blogs = $vip_users_table->blog_ids();
$blogs = $vip_users_table->get_blog_ids();

foreach ( $blogs as $id ) {
$blog = get_blog_details($id);
Expand Down

0 comments on commit fd22351

Please sign in to comment.