Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (5 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r45424 r45590  
    11981198function get_post_type_archive_link( $post_type ) {
    11991199    global $wp_rewrite;
    1200     if ( ! $post_type_obj = get_post_type_object( $post_type ) ) {
     1200
     1201    $post_type_obj = get_post_type_object( $post_type );
     1202    if ( ! $post_type_obj ) {
    12011203        return false;
    12021204    }
     
    12571259    }
    12581260
    1259     if ( ! $link = get_post_type_archive_link( $post_type ) ) {
     1261    $link = get_post_type_archive_link( $post_type );
     1262    if ( ! $link ) {
    12601263        return false;
    12611264    }
     
    13391342 */
    13401343function get_edit_post_link( $id = 0, $context = 'display' ) {
    1341     if ( ! $post = get_post( $id ) ) {
     1344    $post = get_post( $id );
     1345    if ( ! $post ) {
    13421346        return;
    13431347    }
     
    13921396 */
    13931397function edit_post_link( $text = null, $before = '', $after = '', $id = 0, $class = 'post-edit-link' ) {
    1394     if ( ! $post = get_post( $id ) ) {
     1398    $post = get_post( $id );
     1399    if ( ! $post ) {
    13951400        return;
    13961401    }
    13971402
    1398     if ( ! $url = get_edit_post_link( $post->ID ) ) {
     1403    $url = get_edit_post_link( $post->ID );
     1404    if ( ! $url ) {
    13991405        return;
    14001406    }
     
    14351441    }
    14361442
    1437     if ( ! $post = get_post( $id ) ) {
     1443    $post = get_post( $id );
     1444    if ( ! $post ) {
    14381445        return;
    14391446    }
     
    16781685    global $wpdb;
    16791686
    1680     if ( ( ! $post = get_post() ) || ! taxonomy_exists( $taxonomy ) ) {
     1687    $post = get_post();
     1688    if ( ! $post || ! taxonomy_exists( $taxonomy ) ) {
    16811689        return null;
    16821690    }
     
    18601868 */
    18611869function get_adjacent_post_rel_link( $title = '%title', $in_same_term = false, $excluded_terms = '', $previous = true, $taxonomy = 'category' ) {
    1862     if ( $previous && is_attachment() && $post = get_post() ) {
     1870    $post = get_post();
     1871    if ( $previous && is_attachment() && $post ) {
    18631872        $post = get_post( $post->post_parent );
    18641873    } else {
     
    40844093
    40854094    $email_hash = '';
    4086     $user       = $email = false;
     4095    $user       = false;
     4096    $email      = false;
    40874097
    40884098    if ( is_object( $id_or_email ) && isset( $id_or_email->comment_ID ) ) {
Note: See TracChangeset for help on using the changeset viewer.