Skip to content

Commit

Permalink
Remove date placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola committed Oct 5, 2017
1 parent 31e41ae commit 8ead7ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion includes/CMB2/includes/types/CMB2_Type_Text_Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public function render() {
'value' => isset( $_GET['post'] ) ? ( get_post_meta( $_GET['post'], 'sermon_date_auto', true ) ? '' : $this->field->get_timestamp_format() ) : '',
'desc' => $this->_desc(),
'js_dependencies' => array( 'jquery-ui-core', 'jquery-ui-datepicker' ),
'placeholder' => isset( $_GET['post'] ) ? ( get_post_meta( $_GET['post'], 'sermon_date_auto', true ) ? $this->field->get_timestamp_format() : '' ) : $this->field->get_timestamp_format( 'date_format', time() ),
) );

if ( false === strpos( $args['class'], 'timepicker' ) ) {
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
* Fix a PHP notice on new sermon creation
* Fix sermon date not saving on first save
* Fix sermons preached before 09/09/2001 not showing up
* Fix confusion regarding date field (remove placeholder value)

### 2.8 ###
* Add better support for templating plugins (Elementor and Visual Composer, to mention some)
Expand Down

0 comments on commit 8ead7ca

Please sign in to comment.