@@ -169,10 +169,10 @@ discard block |
||
| 169 | 169 | |
| 170 | 170 | if( 'gv_note_add' === $_POST['action'] ) { |
| 171 | 171 | |
| 172 | - if( ! GVCommon::has_cap( 'gravityview_add_entry_notes' ) ) { |
|
| 173 | - do_action( 'gravityview_log_error', __METHOD__ . ': The user isnt allowed to add entry notes.' ); |
|
| 174 | - return; |
|
| 175 | - } |
|
| 172 | + if( ! GVCommon::has_cap( 'gravityview_add_entry_notes' ) ) { |
|
| 173 | + do_action( 'gravityview_log_error', __METHOD__ . ': The user isnt allowed to add entry notes.' ); |
|
| 174 | + return; |
|
| 175 | + } |
|
| 176 | 176 | |
| 177 | 177 | $post = wp_unslash( $_POST ); |
| 178 | 178 | |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | * |
| 273 | 273 | * Verify permissions. Check expected $_POST. Parse args, then send to process_delete_notes |
| 274 | 274 | * |
| 275 | - * @since 1.17 |
|
| 275 | + * @since 1.17 |
|
| 276 | 276 | * |
| 277 | 277 | * @see process_delete_notes |
| 278 | 278 | * |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | 'subject-label' => __( 'Subject', 'gravityview' ), |
| 426 | 426 | 'subject' => __( 'Email subject', 'gravityview' ), |
| 427 | 427 | 'default-email-subject' => __( 'New entry note', 'gravityview' ), |
| 428 | - 'email-footer' => __( 'This note was sent from {url}', 'gravityview' ), |
|
| 428 | + 'email-footer' => __( 'This note was sent from {url}', 'gravityview' ), |
|
| 429 | 429 | 'also-email' => __( 'Also email this note to', 'gravityview' ), |
| 430 | 430 | 'error-add-note' => __( 'There was an error adding the note.', 'gravityview' ), |
| 431 | 431 | 'error-invalid' => __( 'The request was invalid. Refresh the page and try again.', 'gravityview' ), |
@@ -717,7 +717,7 @@ discard block |
||
| 717 | 717 | 'gv-note-to-custom' => '', |
| 718 | 718 | 'gv-note-subject' => '', |
| 719 | 719 | 'gv-note-content' => '', |
| 720 | - 'current-url' => '', |
|
| 720 | + 'current-url' => '', |
|
| 721 | 721 | ); |
| 722 | 722 | |
| 723 | 723 | $current_user = wp_get_current_user(); |
@@ -769,9 +769,9 @@ discard block |
||
| 769 | 769 | $message .= $this->get_email_footer( $email_footer, $is_html, $email_data ); |
| 770 | 770 | |
| 771 | 771 | /** |
| 772 | - * @filter `gravityview/field/notes/wpautop_email` Should the message content have paragraphs added automatically, if using HTML message format |
|
| 772 | + * @filter `gravityview/field/notes/wpautop_email` Should the message content have paragraphs added automatically, if using HTML message format |
|
| 773 | 773 | * @since 1.18 |
| 774 | - * @param bool $wpautop_email True: Apply wpautop() to the email message if using; False: Leave as entered (Default: true) |
|
| 774 | + * @param bool $wpautop_email True: Apply wpautop() to the email message if using; False: Leave as entered (Default: true) |
|
| 775 | 775 | */ |
| 776 | 776 | $wpautop_email = apply_filters( 'gravityview/field/notes/wpautop_email', true ); |
| 777 | 777 | |
@@ -791,12 +791,12 @@ discard block |
||
| 791 | 791 | } |
| 792 | 792 | |
| 793 | 793 | /** |
| 794 | - * Get the footer for Entry Note emails |
|
| 795 | - * |
|
| 796 | - * `{url}` is replaced by the URL of the page where the note form was embedded |
|
| 797 | - * |
|
| 798 | - * @since 1.18 |
|
| 799 | - * @see GravityView_Field_Notes::strings The default value of $message_footer is set here, with the key 'email-footer' |
|
| 794 | + * Get the footer for Entry Note emails |
|
| 795 | + * |
|
| 796 | + * `{url}` is replaced by the URL of the page where the note form was embedded |
|
| 797 | + * |
|
| 798 | + * @since 1.18 |
|
| 799 | + * @see GravityView_Field_Notes::strings The default value of $message_footer is set here, with the key 'email-footer' |
|
| 800 | 800 | * |
| 801 | 801 | * @param string $email_footer The message footer value |
| 802 | 802 | * @param bool $is_html True: Email is being sent as HTML; False: sent as text |
@@ -805,10 +805,10 @@ discard block |
||
| 805 | 805 | */ |
| 806 | 806 | private function get_email_footer( $email_footer = '', $is_html = true, $email_data = array() ) { |
| 807 | 807 | |
| 808 | - $output = ''; |
|
| 808 | + $output = ''; |
|
| 809 | 809 | |
| 810 | 810 | if( ! empty( $email_footer ) ) { |
| 811 | - $url = rgar( $email_data, 'current-url' ); |
|
| 811 | + $url = rgar( $email_data, 'current-url' ); |
|
| 812 | 812 | $url = html_entity_decode( $url ); |
| 813 | 813 | $url = site_url( $url ); |
| 814 | 814 | |