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.
Built from https://develop.svn.wordpress.org/trunk@55691


git-svn-id: http://core.svn.wordpress.org/trunk@55203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2023-04-27 13:14:23 +00:00
parent 86d5add906
commit 9953e9e51d
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ if ( ! current_user_can( 'manage_privacy_options' ) ) {
}
if ( isset( $_GET['tab'] ) && 'policyguide' === $_GET['tab'] ) {
require_once dirname( __FILE__ ) . '/privacy-policy-guide.php';
require_once __DIR__ . '/privacy-policy-guide.php';
return;
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.3-alpha-55690';
$wp_version = '6.3-alpha-55691';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.