diff --git a/classes/LBRY_Admin.php b/classes/LBRY_Admin.php index 8578b91..2fb5031 100644 --- a/classes/LBRY_Admin.php +++ b/classes/LBRY_Admin.php @@ -25,6 +25,7 @@ class LBRY_Admin */ public function create_options_page() { + add_menu_page( __( 'LBRYPress Settings', 'lbrypress' ), __( 'LBRYPress', 'lbrypress' ), @@ -68,7 +69,7 @@ class LBRY_Admin { // Register the LBRY Setting array register_setting( - LBRY_SETTINGS_GROUP, + 'lbry_general_settings', LBRY_SETTINGS, array( $this, 'sanitize_general_settings' ) ); @@ -115,7 +116,6 @@ class LBRY_Admin /** - * Speech Admin Page settings */ @@ -275,7 +275,7 @@ class LBRY_Admin } printf( - '', + '', LBRY_LICENSE, LBRY_SETTINGS, $options diff --git a/classes/LBRY_Network.php b/classes/LBRY_Network.php index a32db37..cb83950 100644 --- a/classes/LBRY_Network.php +++ b/classes/LBRY_Network.php @@ -82,6 +82,8 @@ class LBRY_Network $will_publish = (isset($_POST[LBRY_WILL_PUBLISH]) ? $_POST[LBRY_WILL_PUBLISH] : false); $new_channel = (isset($_POST[LBRY_POST_CHANNEL]) ? $_POST[LBRY_POST_CHANNEL] : null); $cur_channel = get_post_meta($post_id, LBRY_POST_CHANNEL, true); + $license = $_POST[LBRY_POST_PUB_LICENSE]; + $cur_license = get_post_meta( $post_id, LBRY_POST_PUB_LICENSE, true ); // Update meta acordingly if (!$will_publish) {