Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #55877, comment 4


Ignore:
Timestamp:
05/31/2022 06:36:56 PM (2 years ago)
Author:
rafiahmedd
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55877, comment 4

    v1 v2  
    1 @mukesh27 it looks good. I just have a suggestion here, I think it will be good if we make our if condition like this {{{#!php
     1@mukesh27 it looks good. I just have a suggestion here, I think it will be good if we make our **if** condition like this
    22
    33{{{
    4 <?php
    54if (  ! empty( $post_type_object )  && ! $update && 'pending' === $post_status && ! current_user_can( $post_type_object->cap->publish_posts ) )
    6 }}}
    75}}}
    86