diff --git a/ebor_cpt.php b/ebor_cpt.php index eeb2027..3942018 100755 --- a/ebor_cpt.php +++ b/ebor_cpt.php @@ -27,28 +27,7 @@ function ebor_framework_cpt_init(){ function ebor_framework_cpt_add_options_page(){ $theme = wp_get_theme(); //add_options_page( $theme->get( 'Name' ) . ' Post Type Options', $theme->get( 'Name' ) . ' Post Type Options', 'manage_options', __FILE__, 'ebor_framework_cpt_render_form'); - $ebor_admin_page = add_options_page( $theme->get( 'Name' ) . __( ' CPT Options', 'pivot' ), $theme->get( 'Name' ) . __( ' CPT Options', 'pivot' ), 'manage_options', __FILE__, 'ebor_framework_cpt_render_form'); - - // Adds ebor_help_tab when ebor_framework_cpt_add_options_page loads - add_action('load-'.$ebor_admin_page, 'ebor_admin_add_help_tab'); - } -} - -// Add Help Tab with instructions -if(!( function_exists('ebor_admin_add_help_tab') )){ - function ebor_admin_add_help_tab() { - $screen = get_current_screen(); - - $permalinks_url = ''; - - // Add my_help_tab if current screen is My Admin Page - $screen->add_help_tab( array( - 'id' => 'ebor_help_tab', - 'title' => __('Instructions', 'ebor-framework'), - 'content' => '

' . __( 'Enter the URL slug you want to use for the registered post types bellow.', 'ebor-framework') . '

', - '

' . __( 'DO-NOT: use numbers, spaces, capital letters or special characters.', 'ebor-framework') . '

', - - ) ); + add_options_page( $theme->get( 'Name' ) . __( ' CPT Options', 'pivot' ), $theme->get( 'Name' ) . __( ' CPT Options', 'pivot' ), 'manage_options', __FILE__, 'ebor_framework_cpt_render_form'); } } diff --git a/git-updater.php b/git-updater.php index 0872ebe..efd5df9 100644 --- a/git-updater.php +++ b/git-updater.php @@ -115,10 +115,10 @@ public function plugin_popup( $result, $action, $args ) { $this->get_repository_info(); // Get our repo info - date_default_timezone_set('America/Sao_Paulo'); + //date_default_timezone_set('America/Sao_Paulo'); - $date_added = new DateTime( $this->github_response['created_at'] ); // convert UNIX timestamp to PHP DateTime - $date_added->format('Y-m-d'); // output = 2017-12-15 + //$date_added = new DateTime( $this->github_response['created_at'] ); // convert UNIX timestamp to PHP DateTime + //$date_added->format('Y-m-d'); // output = 2017-12-15 // Set it to an array $plugin = array(