Make WordPress Core

Changeset 55691

Timestamp:
04/27/2023 01:12:11 PM (16 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use __DIR__ magic constant in wp-admin/options-privacy.php.

This replaces the only remaining instance of dirname( __FILE__ ) in core to avoid the performance overhead of a function call.

Follow-up to [47198], [50161], [50631].

Props hztyfoon, rudlinkon.
Fixes #58207.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-privacy.php

    r55412 r55691  
    1515
    1616if ( isset( $_GET['tab'] ) && 'policyguide' === $_GET['tab'] ) {
    17     require_once dirname( __FILE__ ) . '/privacy-policy-guide.php';
     17    require_once . '/privacy-policy-guide.php';
    1818    return;
    1919}
Note: See TracChangeset for help on using the changeset viewer.