Ticket #18418: privatetext.18418.1.patch

File privatetext.18418.1.patch, 2.6 KB (added by danielbachhuber, 21 months ago)

Replace "Private" text with "Private to blog editors and administrators"

  • includes/class-wp-posts-list-table.php

     
    796796                                        <span class="title"><?php _e( 'Password' ); ?></span> 
    797797                                        <span class="input-text-wrap"><input type="text" name="post_password" class="inline-edit-password-input" value="" /></span> 
    798798                                </label> 
    799  
    800799                                <em style="margin:5px 10px 0 0" class="alignleft"> 
    801800                                        <?php 
    802801                                        /* translators: Between password field and private checkbox on post quick edit interface */ 
    803802                                        echo __( '&ndash;OR&ndash;' ); 
    804803                                        ?> 
    805804                                </em> 
     805                                <br /> 
    806806                                <label class="alignleft inline-edit-private"> 
    807807                                        <input type="checkbox" name="keep_private" value="private" /> 
    808                                         <span class="checkbox-title"><?php echo __( 'Private' ); ?></span> 
     808                                        <span class="checkbox-title"><?php echo __( 'Private to blog editors and administrators' ); ?></span> 
    809809                                </label> 
    810810                        </div> 
    811811 
  • includes/meta-boxes.php

     
    113113if ( 'private' == $post->post_status ) { 
    114114        $post->post_password = ''; 
    115115        $visibility = 'private'; 
    116         $visibility_trans = __('Private'); 
     116        $visibility_trans = __('Private to blog editors and administrators'); 
    117117} elseif ( !empty( $post->post_password ) ) { 
    118118        $visibility = 'password'; 
    119119        $visibility_trans = __('Password protected'); 
     
    143143<?php endif; ?> 
    144144<input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e('Password protected'); ?></label><br /> 
    145145<span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo esc_attr($post->post_password); ?>" /><br /></span> 
    146 <input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e('Private'); ?></label><br /> 
     146<input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e('Private to blog editors and administrators'); ?></label><br /> 
    147147 
    148148<p> 
    149149 <a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e('OK'); ?></a>