wrap a function in a check
This commit is contained in:
parent
b6d29f3e49
commit
adab29eefd
@ -103,6 +103,7 @@ class PluginWonderful {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function render_widget_control($adboxid) {
|
function render_widget_control($adboxid) {
|
||||||
|
if ($this->publisher_info !== false) {
|
||||||
foreach ($this->publisher_info->adboxes as $box) {
|
foreach ($this->publisher_info->adboxes as $box) {
|
||||||
if ($box->adboxid == $adboxid) {
|
if ($box->adboxid == $adboxid) {
|
||||||
echo '<input type="hidden" name="pw[_nonce]" value="' . wp_create_nonce("plugin-wonderful") . '" />';
|
echo '<input type="hidden" name="pw[_nonce]" value="' . wp_create_nonce("plugin-wonderful") . '" />';
|
||||||
@ -114,6 +115,7 @@ class PluginWonderful {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function handle_activation() {
|
function handle_activation() {
|
||||||
$this->adboxes_client->initialize();
|
$this->adboxes_client->initialize();
|
||||||
|
Loading…
Reference in New Issue
Block a user