Converts WP_Error instance into array suitable for passing into the
wp.customize.Notification JS model.
public prepare_setting_validity_for_js ( true | WP_Error $validity ) : true | array | ||
$validity | true | WP_Error | Setting validity. |
리턴 | true | array | If `$validity` was a WP_Error, the error codes will be array-mapped to their respective `message` and `data` to pass into the `wp.customize.Notification` JS model. |