Closed Vrishabhsk closed 6 months ago
@Vrishabhsk I've assigned this to @majick777 for pickup. He'll take a look at this and we'll get a fix out shortly.
@Vrishabhsk Thanks for reporting, this fix is available in the development version for download: https://github.com/netmix/radio-station/tree/develop/ and will be included in the 2.5.8 release.
Describe the bug The function radio_station_post_save_data that is hooked to the action save_post uses the wrong sanitization function to sanitize the value for $_POST[ post_showblog_id ] ( uses sanitize_text_field instead of a array_map or map_deep function ). Due to this, the array passed in $_POST[ post_showblog_id ] is converted to empty string and the meta value is not stored for the post.
To Reproduce Steps to reproduce the behavior:
post_showblog_id
keyExpected behavior If correct sanitization was used as mentioned above the post meta would be saved and shown in the DB. Also when the post is reloaded the selected shows in the Inspector Controls will be shown
Additional context