array_pop => array_shift

This commit is contained in:
Brian Miyaji
2014-08-24 18:20:30 +10:00
parent 43e771f002
commit 2a2c27ab19
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ class SP_Meta_Box_Staff_Details {
$roles = get_the_terms( $post->ID, 'sp_role' );
if ( $roles ):
$term = array_pop( $roles );
$term = array_shift( $roles );
$role = $term->term_id;
else:
$role = null;