Make WordPress Core

Ticket #43071: 43071.diff

File 43071.diff, 640 bytes (added by NathanAtmoz, 7 years ago)
  • src/wp-admin/includes/meta-boxes.php

    diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php
    index 703c1ab..de41a6f 100644
    a b do_action( 'post_submitbox_minor_actions', $post ); 
    112112?>
    113113</span>
    114114<?php
    115 if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) {
     115if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish || current_user_can( 'edit_post', $post->ID ) ) {
    116116        $private_style = '';
    117117        if ( 'private' == $post->post_status ) {
    118118                $private_style = 'style="display:none"';