{"id":17130092,"date":"2023-10-17T13:20:06","date_gmt":"2023-10-17T13:20:06","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/type-issue\/"},"modified":"2023-10-17T13:20:06","modified_gmt":"2023-10-17T13:20:06","slug":"type-issue","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/type-issue\/","title":{"rendered":"Type issue"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Now that we are in a new area of PHP with more and more static types. <br \/>There are 2 function calls to <code>wp_transition_post_status<\/code> which wants 3 parameters new status, old status and a post. Of which the last one should be a post Object. However, there is one call that passes a post array instead of a WP_Post class instance. (edcal.php:1129)<br \/><br \/>Would it be possible to change that? Thanks \ud83d\ude42 <\/p>\n","protected":false},"template":"","class_list":["post-17130092","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17130092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17130092\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17130092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}