Single => Singular

This commit is contained in:
Brian Miyaji
2017-01-08 18:12:27 +11:00
parent 2dabeef64d
commit b61d2e1cc8
6 changed files with 13 additions and 13 deletions

View File

@@ -163,10 +163,10 @@ function sp_get_performance( $post = 0 ) {
return $event->performance();
}
function sp_get_single_name( $post = 0 ) {
$single = get_post_meta( $post, 'sp_single', true );
if ( '' !== $single ) {
return $single;
function sp_get_singular_name( $post = 0 ) {
$singular = get_post_meta( $post, 'sp_singular', true );
if ( '' !== $singular ) {
return $singular;
} else {
return get_the_title( $post );
}