@@ 1329-1330 (lines=2) @@ | ||
1326 | ||
1327 | $fn = (array) $field_name; |
|
1328 | $args = array_merge( $fn, (array) $args ); |
|
1329 | if ( ! method_exists( $this, $callback ) ) { |
|
1330 | throw new EE_Error( |
|
1331 | sprintf( |
|
1332 | __( |
|
1333 | 'The method named "%s" given as the callback param in "display_in_my_timezone" does not exist. Please check your spelling', |
@@ 657-658 (lines=2) @@ | ||
654 | //process addressees for each context. Child classes will have to have methods for each context defined to handle the processing of the data object within them |
|
655 | foreach ( $this->_contexts as $context => $details ) { |
|
656 | $xpctd_method = '_' . $context . '_addressees'; |
|
657 | if ( !method_exists( $this, $xpctd_method ) ) |
|
658 | throw new EE_Error( sprintf( __('The data for %1$s message type cannot be prepared because there is no set method for doing so. The expected method name is "%2$s" please doublecheck the %1$s message type class and make sure that method is present', 'event_espresso'), $this->label['singular'], $xpctd_method) ); |
|
659 | $this->_addressees[$context] = call_user_func( array( $this, $xpctd_method ) ); |
|
660 | } |
|
661 | return true; //data was processed successfully. |
@@ 1905-1907 (lines=3) @@ | ||
1902 | } |
|
1903 | /** @type WPDB $wpdb */ |
|
1904 | global $wpdb; |
|
1905 | if( ! method_exists( $wpdb, $wpdb_method ) ){ |
|
1906 | throw new EE_Error( sprintf( __( 'There is no method named "%s" on Wordpress\' $wpdb object','event_espresso' ), $wpdb_method ) ); |
|
1907 | } |
|
1908 | if( WP_DEBUG ){ |
|
1909 | $old_show_errors_value = $wpdb->show_errors; |
|
1910 | $wpdb->show_errors( FALSE ); |