Changeset 12492
- Timestamp:
- 03/24/2023 05:11:34 AM (22 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
r12489 r12492 64 64 65 65 add_action( 'save_post', array( __NAMESPACE__ . '\Metabox\Release_Confirmation', 'save_post' ) ); 66 add_action( 'save_post', array( __NAMESPACE__ . '\Metabox\Author_Notice', 'save_post' ) ); 66 67 } 67 68 … … 472 473 array( __NAMESPACE__ . '\Metabox\Commits', 'display' ), 473 474 'plugin', 'normal', 'low' 475 ); 476 477 add_meta_box( 478 'plugin-author-notice', 479 __( 'Author Notice (Displayed on the plugins page to Plugin Authors)', 'wporg-plugins' ), 480 array( __NAMESPACE__ . '\Metabox\Author_Notice', 'display' ), 481 'plugin', 'normal', 'high' 474 482 ); 475 483 } -
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 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
r12319 r12492 25 25 26 26 <header class="plugin-header"> 27 <?php the_author_notice(); ?> 27 28 <?php the_active_plugin_notice(); ?> 28 29 <?php the_unconfirmed_releases_notice(); ?>
Note: See TracChangeset
for help on using the changeset viewer.