From 241cabc7e4cb392cc81829691efdff199521b987 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 4 Sep 2018 22:21:01 -0600 Subject: [PATCH] Rename function --- inc/actors.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/actors.php b/inc/actors.php index 1edaade..4ddd956 100644 --- a/inc/actors.php +++ b/inc/actors.php @@ -14,7 +14,7 @@ function get_actor_by_slug ( $slug ) { $row = $wpdb->get_row( $wpdb->prepare( 'SELECT * FROM activitypub_actors WHERE slug = %s', $slug ) ); - return get_user_from_row( $row ); + return get_actor_from_row( $row ); } function get_actor_id( $slug ) { @@ -24,7 +24,7 @@ function get_actor_id( $slug ) { ) ); } -function get_user_from_row( $row ) { +function get_actor_from_row( $row ) { switch ( $row->type ) { case "user": $user = get_user_by( 'slug', $row->slug );