Skip to content

Commit

Permalink
WYSIWYGs now support default arg.
Browse files Browse the repository at this point in the history
I noticed that we were passing some default text in and the current field wasn't supporting that so I fixed it here:
  • Loading branch information
Devin Walker committed Feb 24, 2017
1 parent 9cf9160 commit 91e6923
Show file tree
Hide file tree
Showing 2 changed files with 312 additions and 282 deletions.
8 changes: 3 additions & 5 deletions includes/admin/forms/class-metabox-form-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,11 @@ function get_settings() {
),
),
array(
'name' => esc_html__( 'Goal Achieved Message', 'give' ),
'desc' => esc_html__( 'Do you want to display a custom message when the goal is closed? If none is provided the default message will be displayed', 'give' ),
'name' => __( 'Goal Achieved Message', 'give' ),
'desc' => __( 'Do you want to display a custom message when the goal is closed?', 'give' ),
'id' => $prefix . 'form_goal_achieved_message',
'type' => 'wysiwyg',
'attributes' => array(
'placeholder' => esc_attr__( 'Thank you to all our donors, we have met our fundraising goal.', 'give' ),
),
'default' => __( 'Thank you to all our donors, we have met our fundraising goal.', 'give' ),
),
array(
'name' => 'donation_goal_docs',
Expand Down
Loading

0 comments on commit 91e6923

Please sign in to comment.