Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- admin/includes/meta-boxes.orig.php 2018-01-25 00:37:50.000000000 +0000
- +++ admin/includes/meta-boxes.php 2018-02-06 13:30:25.636242200 +0000
- @@ -123,6 +123,17 @@
- 'flamingo-trash-inbound-message_' . $post->id );
- ?><a class="submitdelete deletion" href="<?php echo $delete_link; ?>"><?php echo esc_html( $delete_text ); ?></a><?php } ?>
- +<?php
- + if ( current_user_can( 'flamingo_delete_inbound_message', $post->id ) ) {
- + $spam_text = __( 'Mark as Spam', 'flamingo' );
- +
- + $spam_link = admin_url(
- + sprintf( 'admin.php?page=flamingo_inbound&post=%s&action=spam', $post->id ) );
- + $spam_link = wp_nonce_url( $spam_link,
- + 'flamingo-spam-inbound-message_' . $post->id );
- +
- +?><p><a class="submitdelete spam" href="<?php echo $spam_link; ?>"><?php echo esc_html( $spam_text ); ?></a></p><?php } ?>
- +
- </div>
- <div id="publishing-action">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement