projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f83236
)
Members only page ID option retrieved correctly
author
Laury GvR
<laury@gaslightmedia.com>
Thu, 11 May 2017 19:26:01 +0000
(15:26 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Thu, 11 May 2017 19:26:01 +0000
(15:26 -0400)
The option for the members only page ID tried to use a constant
where it should have used a string, causing an error on plugin
activation.
setup/adminHooks.php
patch
|
blob
|
history
diff --git
a/setup/adminHooks.php
b/setup/adminHooks.php
index
67e2bd5
..
26bc68c
100644
(file)
--- a/
setup/adminHooks.php
+++ b/
setup/adminHooks.php
@@
-55,7
+55,7
@@
$menuExists = wp_get_nav_menu_object( $menuName );
// If it doesn't exist, let's create it.
if( !$menuExists){
- $membersOnlyPageID = get_option(
GLM_MEMBERS_PLUGIN_MEMBERS_ONLY_ID
);
+ $membersOnlyPageID = get_option(
'GLM_MEMBERS_PLUGIN_MEMBERS_ONLY_ID'
);
//
$menu_id = wp_create_nav_menu($menuName);