Plugin Directory

Changeset 3139330


Ignore:
Timestamp:
08/21/2024 11:17:08 PM (19 months ago)
Author:
mdawaffe
Message:

Some minor linting. Not comprehensive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • email-post-changes/trunk/class.email-post-changes.php

    r3139326 r3139330  
    7474
    7575        // Transitioning from an Auto Draft to Published shouldn't result in a notification.
    76         if ( $post_before->post_status === 'auto-draft' && $post_after->post_status === 'publish' )
    77             return;
     76        if ( $post_before->post_status === 'auto-draft' && $post_after->post_status === 'publish' ) {
     77            return;
     78        }
    7879
    7980        // If we're purely saving a draft, and don't have the draft option enabled, skip. If we're transitioning one way or the other, send a notification.
     
    8687        }
    8788
    88         if ( !in_array( $post_before->post_type, $options['post_types'] ) )
    89             return;
     89        if ( !in_array( $post_before->post_type, $options['post_types'] ) ) {
     90            return;
     91        }
    9092
    9193        $this->left_post = $post_before;
     
    98100        }
    99101
    100         if ( !$this->left_post || !$this->right_post )
    101             return;
     102        if ( !$this->left_post || !$this->right_post ) {
     103            return;
     104        }
    102105
    103106        $html_diffs = array();
     
    139142        $the_permalink = esc_url( get_permalink( $this->right_post->ID ) );
    140143        $the_edit_link = esc_url( get_edit_post_link( $this->right_post->ID ) );
    141 
    142144
    143145        // Send email
     
    191193            $html_diff_head .= '<p>' . sprintf( $head_sprintf,
    192194                esc_html( $the_author ),
    193                     "<a href='$the_permalink'>" . esc_html( $the_title ) . '</a>',
     195                "<a href='$the_permalink'>" . esc_html( $the_title ) . '</a>',
    194196                "<a href='$the_edit_link'>" . __( '[edit]' ) . '</a>',
    195197                $post_type_label,
Note: See TracChangeset for help on using the changeset viewer.