Skip to content

Commit 35315df

Browse files
committed
Merge pull request #17 from ThatGerber/hotfix
Fixed issue where settings were not being called.
2 parents fde31ab + 510a7c4 commit 35315df

File tree

4 files changed

+25
-17
lines changed

4 files changed

+25
-17
lines changed

includes/helper_functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function dfp_get_url() {
231231
* @return array|string|int|bool
232232
*/
233233
function dfp_get_settings_value( $setting ) {
234-
$option_array = get_option( 'DFP_Ad_Positions' );
234+
$option_array = get_option( 'DFP_Ads_Settings' );
235235

236236
return $option_array[$setting];
237237
}

plugin.php

+15-15
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,31 @@
1212
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
1313
* Text Domain: dfp-ads
1414
* Github Plugin URI: https://github.com/ThatGerber/dfp-ads
15-
* GitHub Branch: master
16-
* Version: 0.2.0
15+
* GitHub Branch: stable
16+
* Version: 0.2.1
1717
*
1818
* The Plugin File
1919
*
2020
* @link http://www.chriswgerber.com/dfp-ads
2121
* @since 0.0.1
2222
* @subpackage DFP-Ads
2323
*/
24-
define( 'EPG_AD_PLUGIN_VER', '0.2.0' );
24+
define( 'EPG_AD_PLUGIN_VER', '0.2.1' );
2525

2626
/* Autoload */
2727
require_once 'vendor/autoload.php';
2828

2929
/* Library */
30-
include( 'includes/helper_functions.php' );
31-
include( 'includes/abstract.dfp_ads_form.php' );
32-
include( 'includes/class.dfp_ads.php' );
33-
include( 'includes/class.dfp_ads_post_type.php' );
34-
include( 'includes/class.dfp_ads_input.php' );
35-
include( 'includes/class.dfp_ad_position.php' );
36-
include( 'includes/class.dfp_ads_settings_form.php' );
37-
include( 'includes/class.dfp_ads_import_form.php' );
38-
include( 'includes/class.dfp_ads_admin.php' );
39-
include( 'widget/widget.ad_position.php' );
30+
include 'includes/helper_functions.php';
31+
include 'includes/abstract.dfp_ads_form.php';
32+
include 'includes/class.dfp_ads.php';
33+
include 'includes/class.dfp_ads_post_type.php';
34+
include 'includes/class.dfp_ads_input.php';
35+
include 'includes/class.dfp_ad_position.php';
36+
include 'includes/class.dfp_ads_settings_form.php';
37+
include 'includes/class.dfp_ads_import_form.php';
38+
include 'includes/class.dfp_ads_admin.php';
39+
include 'widget/widget.ad_position.php';
4040

4141
/*
4242
* Initialization for Post Type
@@ -62,13 +62,13 @@
6262
/* Begin creating the new ads objects */
6363
$dfp_ads = new DFP_Ads();
6464
$dfp_ads->dir_uri = plugins_url( null, __FILE__ );
65-
$dfp_ads->set_account_id( dfp_get_settings_value( 'dfp_property_code' ) ); // = '/35190362/';
65+
$dfp_ads->set_account_id( dfp_get_settings_value( 'dfp_property_code' ) );
6666

6767
/*
6868
* Enqueues the styles and scripts into WordPress. When this action runs
6969
* it also will grab all of the positions and other filtered in information
7070
*/
71-
add_action( 'wp_enqueue_scripts', array($dfp_ads, 'scripts_and_styles') );
71+
add_action( 'wp_enqueue_scripts', array( $dfp_ads, 'scripts_and_styles' ) );
7272

7373
/* Sets Menu Position. Default 20 */
7474
add_filter( 'dfp_ads_menu_position', ( function( $pos ) { return 79; }), 10 );

readme.md

+4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ Submit your questions at [chriswgerber.com/contact/](http://www.chriswgerber.com
8585
<a name="Changelog"></a>
8686
## Changelog
8787

88+
### 0.2.1
89+
90+
* Fixed issue where settings were not being called.
91+
8892
### 0.2.0
8993

9094
* Added functionality for importing DFP Ads

readme.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== DFP Ad Manager ===
22

3-
Stable tag: trunk
3+
Stable tag: 0.2.1
44
Contributors: chriswgerber
55
Requires at least: 3.0.0
66
Tested up to: 4.2.2
@@ -56,6 +56,10 @@ Submit your questions at [chriswgerber.com/contact/](http://www.chriswgerber.com
5656

5757
== Changelog ==
5858

59+
= 0.2.1
60+
61+
* Fixed issue where settings were not being called.
62+
5963
= 0.2.0
6064

6165
* Added functionality for importing DFP Ads

0 commit comments

Comments
 (0)