Make WordPress Core


Ignore:
Timestamp:
10/18/2020 05:25:10 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Replace alias PHP functions with the canonical names.

Using the canonical function name for PHP functions is strongly recommended, as aliases may be deprecated or removed without (much) warning.

This replaces all uses of the following:

  • join() with implode()
  • sizeof() with count()
  • is_writeable() with is_writable()
  • doubleval() with a (float) cast

In part, this is a follow-up to #47746.

Props jrf.
See #50767.

File:
1 edited

Legend:

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

    r48111 r49193  
    302302                    <div class="notice notice-warning inline">
    303303                        <p>
    304                             <?php if ( is_writeable( $file ) ) : ?>
     304                            <?php if ( is_writable( $file ) ) : ?>
    305305                                <strong><?php _e( 'Caution:' ); ?></strong>
    306306                            <?php endif; ?>
     
    310310                <?php endif; ?>
    311311            </div>
    312             <?php if ( is_writeable( $file ) ) : ?>
     312            <?php if ( is_writable( $file ) ) : ?>
    313313                <p class="submit">
    314314                    <?php submit_button( __( 'Update File' ), 'primary', 'submit', false ); ?>
Note: See TracChangeset for help on using the changeset viewer.