Changeset 47219 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r47198 r47219 193 193 $email = apply_filters( 'comment_email', $comment->comment_author_email, $comment ); 194 194 195 if ( ( ! empty( $email ) ) && ( $email != '@') ) {196 $display = ( $linktext != '') ? $linktext : $email;195 if ( ( ! empty( $email ) ) && ( '@' !== $email ) ) { 196 $display = ( '' != $linktext ) ? $linktext : $email; 197 197 $return = $before; 198 198 $return .= sprintf( '<a href="%1$s">%2$s</a>', esc_url( 'mailto:' . $email ), esc_html( $display ) ); … … 377 377 function get_comment_author_url_link( $linktext = '', $before = '', $after = '', $comment = 0 ) { 378 378 $url = get_comment_author_url( $comment ); 379 $display = ( $linktext != '') ? $linktext : $url;379 $display = ( '' != $linktext ) ? $linktext : $url; 380 380 $display = str_replace( 'http://www.', '', $display ); 381 381 $display = str_replace( 'http://', '', $display ); … … 926 926 $output = str_replace( '%', number_format_i18n( $number ), $more ); 927 927 } 928 } elseif ( $number == 0) {928 } elseif ( 0 == $number ) { 929 929 $output = ( false === $zero ) ? __( 'No Comments' ) : $zero; 930 930 } else { // Must be one. … … 2139 2139 * the comment permalink. 2140 2140 */ 2141 } elseif ( $cpage == 1) {2141 } elseif ( 1 == $cpage ) { 2142 2142 $parsed_args['cpage'] = ''; 2143 2143 } else {
Note: See TracChangeset
for help on using the changeset viewer.