mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
86d5add906
commit
9953e9e51d
@ -14,7 +14,7 @@ if ( ! current_user_can( 'manage_privacy_options' ) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $_GET['tab'] ) && 'policyguide' === $_GET['tab'] ) {
|
if ( isset( $_GET['tab'] ) && 'policyguide' === $_GET['tab'] ) {
|
||||||
require_once dirname( __FILE__ ) . '/privacy-policy-guide.php';
|
require_once __DIR__ . '/privacy-policy-guide.php';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user