Changeset 12492 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php
- Timestamp:
- 03/24/2023 05:11:34 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php
r12336 r12492 129 129 if ( ! in_array( get_post_status( $post ), [ 'rejected', 'closed' ], true ) ) { 130 130 echo wp_kses_post( get_plugin_status_notice( $post ) ); 131 } ;131 } 132 132 } 133 133 … … 636 636 } 637 637 } 638 639 /** 640 * Displays a persistent notice to the plugin author. 641 */ 642 function the_author_notice( $post = null ) { 643 $post = get_post( $post ); 644 645 if ( ! current_user_can( 'plugin_admin_edit', $post->ID ) ) { 646 return; 647 } 648 649 $notice = get_post_meta( $post->ID, '_author_notice', true ); 650 651 if ( $notice && $notice['type'] && $notice['html'] ) { 652 printf( 653 '<div class="notice notice-alt notice-%s">%s</div>', 654 esc_attr( $notice['type'] ), 655 '<p><strong>' . __( 'A note from the Plugin Review team, visible only to the plugin author & committers.', 'wporg-plugins' ) . '</strong></p>' . 656 wp_kses_post( $notice['html'] ) // Should have wrapping <p> tags. 657 ); 658 } 659 }
Note: See TracChangeset
for help on using the changeset viewer.