Skip to content

Commit

Permalink
Move title_tags_invalid form args to base class
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Jan 3, 2017
1 parent 7f250f2 commit f75f3e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
18 changes: 0 additions & 18 deletions php/class-wp-adapter-js-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,24 +80,6 @@ public function enqueue_control_scripts() {
wp_enqueue_script( "customize-widget-form-{$this->id_base}" );
}

/**
* Get configuration data for the form.
*
* @return array
*/
public function get_form_args() {
return array_merge(
parent::get_form_args(),
array(
'l10n' => array(

// @todo Move this to the component level.
'title_tags_invalid' => __( 'Tags will be stripped from the title.', 'js-widgets' ),
),
)
);
}

/**
* Sanitize instance data.
*
Expand Down
8 changes: 7 additions & 1 deletion php/class-wp-js-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,12 @@ public function form_template() {
* @return array
*/
public function get_form_args() {
return array();
return array(
'l10n' => array(

// @todo Move this to the component level.
'title_tags_invalid' => __( 'Tags will be stripped from the title.', 'js-widgets' ),
),
);
}
}

0 comments on commit f75f3e3

Please sign in to comment.