Changeset 12107 for sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/rejection.php
- Timestamp:
- 10/07/2022 06:20:28 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/rejection.php
r11686 r12107 848 848 echo '<label for="moderator_note_to_user">' . __( '(Optional) Note to user:', 'wporg-photos' ); 849 849 echo '<p class="description"><em>' . __( 'Included in approval/rejection email.', 'wporg-photos' ) . '</em></p>'; 850 // Currently no email is sent if photo changes state from being published, so don't allow the field to be set. 851 $is_note_to_user_disabled = $is_disabled || ( 'publish' === get_post_status( $post ) ); 852 echo '<textarea id="moderator_note_to_user" name="moderator_note_to_user" rows="4"' . disabled( true, $is_note_to_user_disabled, false ) . '>'; 850 echo '<textarea id="moderator_note_to_user" name="moderator_note_to_user" rows="4"' . disabled( true, $is_disabled, false ) . '>'; 853 851 echo esc_textarea( self::get_moderator_note_to_user( $post ) ); 854 852 echo '</textarea>';
Note: See TracChangeset
for help on using the changeset viewer.