Make WordPress Core


Ignore:
Timestamp:
06/20/2020 01:16:45 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Replace echo sprintf() with printf().

See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/plugin-editor.php

    r47894 r48111  
    198198        if ( is_writeable( $real_file ) ) {
    199199            /* translators: %s: Plugin file name. */
    200             echo sprintf( __( 'Editing %s (active)' ), '<strong>' . esc_html( $file ) . '</strong>' );
     200            printf( __( 'Editing %s (active)' ), '<strong>' . esc_html( $file ) . '</strong>' );
    201201        } else {
    202202            /* translators: %s: Plugin file name. */
    203             echo sprintf( __( 'Browsing %s (active)' ), '<strong>' . esc_html( $file ) . '</strong>' );
     203            printf( __( 'Browsing %s (active)' ), '<strong>' . esc_html( $file ) . '</strong>' );
    204204        }
    205205    } else {
    206206        if ( is_writeable( $real_file ) ) {
    207207            /* translators: %s: Plugin file name. */
    208             echo sprintf( __( 'Editing %s (inactive)' ), '<strong>' . esc_html( $file ) . '</strong>' );
     208            printf( __( 'Editing %s (inactive)' ), '<strong>' . esc_html( $file ) . '</strong>' );
    209209        } else {
    210210            /* translators: %s: Plugin file name. */
    211             echo sprintf( __( 'Browsing %s (inactive)' ), '<strong>' . esc_html( $file ) . '</strong>' );
     211            printf( __( 'Browsing %s (inactive)' ), '<strong>' . esc_html( $file ) . '</strong>' );
    212212        }
    213213    }
Note: See TracChangeset for help on using the changeset viewer.