Skip to content

Commit

Permalink
Fix the last set of errors to get the plugin running
Browse files Browse the repository at this point in the history
  • Loading branch information
ingeniumed committed Jul 3, 2024
1 parent 2d83c46 commit 06dbe65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions modules/settings/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public function __construct() {
*/
public function init() {
add_action( 'admin_init', array( $this, 'helper_settings_validate_and_save' ), 100 );
add_action( 'admin_init', array( $this, 'register_settings' ) );

add_action( 'admin_print_styles', array( $this, 'action_admin_print_styles' ) );
add_action( 'admin_print_scripts', array( $this, 'action_admin_print_scripts' ) );
Expand Down Expand Up @@ -156,7 +155,7 @@ public function print_default_header( $current_module ) {
<div class="wrap vip-workflow-admin">
<?php if ( 'settings' != $current_module->name ) : ?>
<?php echo wp_kses_post( $page_icon ); ?>
<h2><a href="<?php echo esc_url( EDIT_FLOW_SETTINGS_PAGE ); ?>"><?php _e( 'VIP Workflow', 'vip-workflow' ); ?></a>:&nbsp;<?php echo esc_attr( $current_module->title ); ?><?php echo ( isset( $display_text ) ? wp_kses_post( $display_text ) : '' ); ?></h2>
<h2><a href="<?php echo esc_url( VIP_WORKFLOW_SETTINGS_PAGE ); ?>"><?php _e( 'VIP Workflow', 'vip-workflow' ); ?></a>:&nbsp;<?php echo esc_attr( $current_module->title ); ?><?php echo ( isset( $display_text ) ? wp_kses_post( $display_text ) : '' ); ?></h2>
<?php else : ?>
<?php echo wp_kses_post( $page_icon ); ?>
<h2><?php _e( 'VIP Workflow', 'vip-workflow' ); ?><?php echo ( isset( $display_text ) ? wp_kses_post( $display_text ) : '' ); ?></h2>
Expand Down
2 changes: 1 addition & 1 deletion vip-workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function vip_workflow_print_incompatibility_notice() {
define( 'VIP_WORKFLOW_VERSION', '0.0.1' );
define( 'VIP_WORKFLOW_ROOT', __DIR__ );
define( 'VIP_WORKFLOW_URL', plugins_url( '/', __FILE__ ) );
define( 'VIP_WORKFLOW_SETTINGS_PAGE', add_query_arg( 'page', 'vip-workflow-settings', get_admin_url( null, 'admin.php' ) ) );
define( 'VIP_WORKFLOW_SETTINGS_PAGE', add_query_arg( 'page', 'vw-settings', get_admin_url( null, 'admin.php' ) ) );

// ToDo: Let's revisit if we want to instantiate the class here or not. Thinking we should move it elsewhere and keep this class simple.

Expand Down

0 comments on commit 06dbe65

Please sign in to comment.