Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
groucho75 committed Apr 21, 2016
1 parent fa59d45 commit fb0de8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions pages/alo-easymail-admin-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,14 @@
foreach ( $roles as $key )
{
if ( $key == 'administrator' ) continue; // skip admin

if ( $role_options && in_array( $key, $role_options ) )
{
foreach ( $caps as $cap ) ${'role_'.$key}->add_cap( $cap );
foreach ( $caps as $cap ) ${'role_'.$key}->add_cap( $cap );
}
else
{
foreach ( $caps as $cap ) ${'role_'.$key}->remove_cap( $cap );
foreach ( $caps as $cap ) ${'role_'.$key}->remove_cap( $cap );
}
}

Expand Down
10 changes: 5 additions & 5 deletions pages/alo-easymail-admin-subscribers.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

<?php // action and feedback

// order default
if ( empty( $_GET["sortby"] ) ) {
$_GET["sortby"] = "join_date";
}

// Base link
$link_base = "edit.php?post_type=newsletter&page=alo-easymail/pages/alo-easymail-admin-subscribers.php";

Expand Down Expand Up @@ -85,11 +90,6 @@
$offset = ($page - 1) * $items_per_page;
}

// order default
if( !isset($_GET['sortby']) ) {
$_GET['sortby'] = 'join_date'; //'ID';
}

// string to search
$s = ( isset( $_GET[ 's' ] ) ) ? esc_sql ( trim( $_GET[ 's' ] ) ) : "";
$filter_list = ( isset( $_GET[ 'filter_list' ] ) ) ? absint( $_GET[ 'filter_list' ] ) : "";
Expand Down

0 comments on commit fb0de8c

Please sign in to comment.