PluginProbe
ShiftController Employee Shift Scheduling / 4.9.66
ShiftController Employee Shift Scheduling v4.9.66
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | hc3/_wordpress/abstract/plugin.php +4 -12 4.9.964.9.66 View file →
@@ -1,10 +1,7 @@
1 1 <?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
2 -if (!defined('HC3_VERSION')) {
3 - define( 'HC3_VERSION', 103 );
4 -}
2 +define( 'HC3_VERSION', 103 );
5 3
6 -if (!class_exists('HC3_Abstract_Plugin')) {
7 4 abstract class HC3_Abstract_Plugin
8 5 {
9 6 public static $instance;
10 7
@@ -364,11 +361,8 @@
364 361
365 362 $request->setRealSlug( $slug );
366 363
367 364 $slug = $requestMethod . ':' . $slug;
368 - if( 'get:myschedule/dates' == $slug ){
369 - $slug = 'post:myschedule/dates';
370 - }
371 365
372 366 // first acl
373 367 $acl = $root->make('HC3_Acl');
374 368 if( ! $acl->check($slug, $requestParams) ){
@@ -470,13 +464,12 @@
470 464 echo $out;
471 465 }
472 466 else {
473 467 if( ! headers_sent() ){
474 - if( defined('HC3_PROFILER') && HC3_PROFILER ){
468 + if( 0 && defined('HC3_PROFILER') && HC3_PROFILER ){
475 469 $html = "REDIRECT<br><a href=\"$to\">$to</a>";
476 - // echo $html;
477 - return $html;
478 - // exit;
470 + echo $html;
471 + exit;
479 472 }
480 473 else {
481 474 wp_redirect( $to );
482 475 }
@@ -722,9 +715,8 @@
722 715 public function root()
723 716 {
724 717 return $this->dic;
725 718 }
726 -}
727 719 }
728 720
729 721 if( ! function_exists('_print_r') ){
730 722 function _print_r( $thing )