Add braces around a Docblock in an if statement, although not required by PHP, this is required by our coding standards for readability.
Introduced in 3.9 with r27365 Merges [30886] to the 4.1 branch. See #25905 Built from https://develop.svn.wordpress.org/branches/4.1@30943 git-svn-id: http://core.svn.wordpress.org/branches/4.1@30932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
de9f42c952
commit
7486afd1f0
|
@ -52,8 +52,7 @@ function get_option( $option, $default = false ) {
|
|||
if ( ! defined( 'WP_INSTALLING' ) ) {
|
||||
// prevent non-existent options from triggering multiple queries
|
||||
$notoptions = wp_cache_get( 'notoptions', 'options' );
|
||||
if ( isset( $notoptions[$option] ) )
|
||||
|
||||
if ( isset( $notoptions[ $option ] ) ) {
|
||||
/**
|
||||
* Filter the default value for an option.
|
||||
*
|
||||
|
@ -65,6 +64,7 @@ function get_option( $option, $default = false ) {
|
|||
* in the database.
|
||||
*/
|
||||
return apply_filters( 'default_option_' . $option, $default );
|
||||
}
|
||||
|
||||
$alloptions = wp_load_alloptions();
|
||||
|
||||
|
|
Loading…
Reference in New Issue