Replace global options with individual option check
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
global $sportspress_options;
|
||||
$primary_result = sp_array_value( $sportspress_options, 'sportspress_primary_result', null );
|
||||
$primary_result = get_option( 'sportspress_primary_result', null );
|
||||
|
||||
$defaults = array(
|
||||
'number' => -1,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<?php
|
||||
global $sportspress_options;
|
||||
|
||||
if ( ! isset( $id ) )
|
||||
$id = get_the_ID();
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<?php
|
||||
global $sportspress_options;
|
||||
|
||||
$defaults = array(
|
||||
'id' => get_the_ID(),
|
||||
'number' => -1,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<?php
|
||||
global $sportspress_options;
|
||||
|
||||
$defaults = array(
|
||||
'id' => get_the_ID(),
|
||||
'number' => -1,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<?php
|
||||
global $sportspress_options;
|
||||
|
||||
$defaults = array(
|
||||
'id' => get_the_ID(),
|
||||
'number' => -1,
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
if ( ! isset( $id ) )
|
||||
$id = get_the_ID();
|
||||
|
||||
global $sportspress_options;
|
||||
|
||||
$defaults = array(
|
||||
'show_nationality_flag' => get_option( 'sportspress_player_show_flag', 'yes' ) == 'yes' ? true : false,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user