Make WordPress Core


Ignore:
Timestamp:
10/08/2020 09:13:57 PM (4 years ago)
Author:
SergeyBiryukov
Message:

General: Replace older-style PHP type conversion functions with type casts.

This improves performance, readability, and consistency throughout core.

  • intval()(int)
  • strval()(string)
  • floatval()(float)

Props ayeshrajans.
Fixes #42918.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/widgets.php

    r48939 r49108  
    483483                'widget-width'  => '250',
    484484                'widget-height' => '200',
    485                 'widget_number' => strval( $widget_number ),
     485                'widget_number' => (string) $widget_number,
    486486                'multi_number'  => '',
    487487                'add_new'       => '',
Note: See TracChangeset for help on using the changeset viewer.