WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36462, comment 7


Ignore:
Timestamp:
05/23/2016 11:06:19 PM (5 years ago)
Author:
SeBsZ
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36462, comment 7

    initial v1  
    33I've added two hidden fields in meta-boxes.php, one for comment_status and the other for ping_status. Then I removed the code in post.php where it closes the comments and ping_status if the POST data is missing.
    44
    5 I checked and by default, if the POST data is missing both fields are set to what they currently are, so nothing is changed in that case. Then if the POST data does exist, then it'll set the accordingly. This is exactly what we want.
     5I checked and by default, if the POST data is missing both fields are set to what they currently are, so nothing is changed in that case. Then if the POST data does exist, both fields are set accordingly. This is exactly what we want.
    66
    77Of course this is just for these two checkboxes, this should probably be expanded to work for other checkboxes so I'm not sure how to go about that here.