Prepares the value for editing on the client.
Source
public function js_value() {
$value = parent::js_value();
if ( is_array( $value ) && isset( $value['original_title'] ) ) {
// Decode entities for the sake of displaying the original title as a placeholder.
$value['original_title'] = html_entity_decode( $value['original_title'], ENT_QUOTES, get_bloginfo( 'charset' ) );
}
return $value;
}
Changelog
| Version | Description |
|---|---|
| 6.8.3 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.