Change taxonomy placeholders in events to "None"
This commit is contained in:
@@ -1312,7 +1312,7 @@ if ( !function_exists( 'sp_get_next_event' ) ) {
|
||||
}
|
||||
|
||||
if ( !function_exists( 'sp_taxonomy_field' ) ) {
|
||||
function sp_taxonomy_field( $taxonomy = 'category', $post = null, $multiple = false, $trigger = false ) {
|
||||
function sp_taxonomy_field( $taxonomy = 'category', $post = null, $multiple = false, $trigger = false, $placeholder = null ) {
|
||||
$obj = get_taxonomy( $taxonomy );
|
||||
if ( $obj ) {
|
||||
$post_type = get_post_type( $post );
|
||||
@@ -1335,7 +1335,7 @@ if ( !function_exists( 'sp_taxonomy_field' ) ) {
|
||||
'values' => 'term_id',
|
||||
'class' => 'sp-has-dummy widefat' . ( $trigger ? ' sp-ajax-trigger' : '' ),
|
||||
'chosen' => true,
|
||||
'placeholder' => __( 'All', 'sportspress' ),
|
||||
'placeholder' => $placeholder ? $placeholder : __( 'All', 'sportspress' ),
|
||||
);
|
||||
if ( $multiple ) {
|
||||
$args['property'] = 'multiple';
|
||||
|
||||
Reference in New Issue
Block a user