Changes between Version 1 and Version 2 of Ticket #55877, comment 4
- Timestamp:
- 05/31/2022 06:36:56 PM (2 years ago)
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 {{{#!php1 @mukesh27 it looks good. I just have a suggestion here, I think it will be good if we make our **if** condition like this 2 2 3 3 {{{ 4 <?php5 4 if ( ! empty( $post_type_object ) && ! $update && 'pending' === $post_status && ! current_user_can( $post_type_object->cap->publish_posts ) ) 6 }}}7 5 }}} 8 6