Replace global options with individual option check

This commit is contained in:
Brian Miyaji
2014-03-28 21:07:39 +11:00
parent 31ab02b3c1
commit cdab219f41
11 changed files with 8 additions and 31 deletions

View File

@@ -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,

View File

@@ -1,6 +1,4 @@
<?php
global $sportspress_options;
if ( ! isset( $id ) )
$id = get_the_ID();

View File

@@ -1,6 +1,4 @@
<?php
global $sportspress_options;
$defaults = array(
'id' => get_the_ID(),
'number' => -1,

View File

@@ -1,6 +1,4 @@
<?php
global $sportspress_options;
$defaults = array(
'id' => get_the_ID(),
'number' => -1,

View File

@@ -1,6 +1,4 @@
<?php
global $sportspress_options;
$defaults = array(
'id' => get_the_ID(),
'number' => -1,

View File

@@ -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,
);