| @@ 137-150 (lines=14) @@ | ||
| 134 | */ |
|
| 135 | function ee_deprecated_finalize_registration( EE_Registration $registration ) { |
|
| 136 | $action_ref = has_action( 'AHEE__EE_Registration__finalize__update_and_new_reg' ) ? 'AHEE__EE_Registration__finalize__update_and_new_reg' : NULL; |
|
| 137 | if ( $action_ref ) { |
|
| 138 | EE_Error::doing_it_wrong( |
|
| 139 | $action_ref, |
|
| 140 | sprintf( |
|
| 141 | __( 'This action is deprecated. It *may* work as an attempt to build in backwards compatibility. However, it is recommended to use the following new action: %1$s"%3$s" found in "%2$s"', 'event_espresso' ), |
|
| 142 | '<br />', |
|
| 143 | '/core/business/EE_Registration_Processor.class.php', |
|
| 144 | 'AHEE__EE_Registration_Processor__trigger_registration_status_changed_hook' |
|
| 145 | ), |
|
| 146 | '4.6.0', |
|
| 147 | E_USER_DEPRECATED |
|
| 148 | ); |
|
| 149 | do_action( 'AHEE__EE_Registration__finalize__update_and_new_reg', $registration, ( is_admin() && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ))); |
|
| 150 | } |
|
| 151 | } |
|
| 152 | add_action( 'AHEE__EE_Registration_Processor__trigger_registration_update_notifications', 'ee_deprecated_finalize_registration', 10, 1 ); |
|
| 153 | ||
| @@ 369-388 (lines=20) @@ | ||
| 366 | // let's pause to reflect on this... |
|
| 367 | $sc_reflector = new ReflectionClass( 'EES_' . $shortcode_class ); |
|
| 368 | // ensure that class is actually a shortcode |
|
| 369 | if ( |
|
| 370 | defined( 'WP_DEBUG' ) |
|
| 371 | && WP_DEBUG === true |
|
| 372 | && ! $sc_reflector->isSubclassOf( 'EES_Shortcode' ) |
|
| 373 | ) { |
|
| 374 | EE_Error::add_error( |
|
| 375 | sprintf( |
|
| 376 | __( |
|
| 377 | 'The requested %s shortcode is not of the class "EES_Shortcode". Please check your files.', |
|
| 378 | 'event_espresso' |
|
| 379 | ), |
|
| 380 | $shortcode_class |
|
| 381 | ), |
|
| 382 | __FILE__, |
|
| 383 | __FUNCTION__, |
|
| 384 | __LINE__ |
|
| 385 | ); |
|
| 386 | add_filter( 'FHEE_run_EE_the_content', '__return_true' ); |
|
| 387 | return; |
|
| 388 | } |
|
| 389 | // and pass the request object to the run method |
|
| 390 | $this->Registry->shortcodes->{$shortcode_class} = $sc_reflector->newInstance(); |
|
| 391 | // fire the shortcode class's run method, so that it can activate resources |
|