Make WordPress Core

Changeset 60480


Ignore:
Timestamp:
07/17/2025 11:55:53 AM (5 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove redundant check in insert_with_markers().

The check in the elseif branch would always be true, as the preceding if is for ! $found_marker.

Follow-up to [34740].

Props justlevine.
See #63268.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r60416 r60480  
    206206        if ( ! $found_marker ) {
    207207            $pre_lines[] = $line;
    208         } elseif ( $found_marker && $found_end_marker ) {
     208        } elseif ( $found_end_marker ) {
    209209            $post_lines[] = $line;
    210210        } else {
Note: See TracChangeset for help on using the changeset viewer.