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/src/wp-admin/network/site-settings.php

    r47853 r49108  
    1818get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() );
    1919
    20 $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
     20$id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;
    2121
    2222if ( ! $id ) {
Note: See TracChangeset for help on using the changeset viewer.