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

@@ -104,7 +104,7 @@ class SportsPress_Icons {
if ( ! $id || ! $value ) return $icons;
$icon = get_post_meta( $id, 'sp_icon', true );
if ( null !== $icon && in_array( $icon, $this->icons ) ) {
$title = sp_get_single_name( $id );
$title = sp_get_singular_name( $id );
$color = get_post_meta( $id, 'sp_color', true );
preg_match( '#\((.*?)\)#', $value, $match );
if ( ! empty( $match ) && isset( $match[1] ) ) {