| @@ -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 ) |