Changeset 3350
- Timestamp:
- 06/14/2016 09:59:58 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
r3335 r3350 33 33 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ) ); 34 34 add_filter( 'admin_head-edit.php', array( $this, 'plugin_posts_list_table' ) ); 35 add_action( 'edit_form_top', array( $this, 'show_permalink' ) ); 35 36 add_action( 'admin_notices', array( $this, 'add_post_status_notice' ) ); 36 37 add_action( 'all_admin_notices', array( $this, 'admin_notices' ) ); … … 285 286 wp_redirect( add_query_arg( array( 'settings-updated' => true ), $send_back ) ); 286 287 exit; 288 } 289 290 /** 291 * Displays a link to the plugin page when it's published. 292 * 293 * @param \WP_Post $post The current post object. 294 */ 295 public function show_permalink( $post ) { 296 if ( 'publish' === $post->post_status ) { 297 echo get_sample_permalink_html( $post ); 298 } 287 299 } 288 300
Note: See TracChangeset
for help on using the changeset viewer.