WP_Customize_Nav_Menu_Item_Setting::js_value()
Prepares the value for editing on the client.
Return
(array|false) Value prepared for the client.
Source
File: wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
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. |