Changeset 7129 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
- Timestamp:
- 04/18/2018 04:31:36 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
r7128 r7129 405 405 elseif ( in_array( $post->post_status, array( 'pending', 'spam' ) ) ) : 406 406 407 /* translators: Number of hours the user should wait for a pending post to get approved before contacting moderators. */ 408 $moderation_timeframe = (int) __( '96', 'wporg-forums' ); 409 if ( ! $moderation_timeframe ) { 410 $moderation_timeframe = 96; 411 } 412 407 413 if ( $is_user_blocked ) { 408 414 // Blocked users get a generic message with no call to action or moderation timeframe. 409 415 $notices[] = __( 'This post has been held for moderation by our automated system.', 'wporg-forums' ); 410 } elseif ( $hours_passed > 96) {416 } elseif ( $hours_passed > $moderation_timeframe ) { 411 417 $notice_class = 'warning'; 412 418 $notices[] = sprintf( 413 /* translators: %s: https://make.wordpress.org/chat/*/419 /* translators: %s: WordPress Slack URL */ 414 420 __( 'This post was held for moderation by our automated system but has taken longer than expected to get approved. Please come to the #forums channel on <a href="%s">WordPress Slack</a> and let us know. Provide a link to the post.', 'wporg-forums' ), 415 'https://make.wordpress.org/chat/'421 esc_url( __( 'https://make.wordpress.org/chat/', 'wporg-forums' ) ) 416 422 ); 417 423 } else {
Note: See TracChangeset
for help on using the changeset viewer.