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.

git-svn-id: https://develop.svn.wordpress.org/trunk@55691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2023-04-27 13:12:11 +00:00
parent 250250d35e
commit f6e523329b

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;
}