public/wordpress/wp-content/plugins/wp-courseware/includes/functions/deprecated.php
/**
 * Wrapper for _doing_it_wrong.
 *
 * @since 4.3.0
 *
 * @param string $function The function used.
 * @param string $message The message to log
 * @param string $version The version the message was added in.
 */


@param string $function The function used.
@param string $message The message to log
@param string $version The version the message was added in.
@param string $function The function used . @param string $message The message to log @param string $version The version the message was added in .
function wpcw_doing_it_wrong( $function, $message, $version ) {
	$message .= ' Backtrace: ' . wp_debug_backtrace_summary();
	if ( wpcw_is_ajax() ) {
		do_action( 'doing_it_wrong_run', $function, $message, $version );
		error_log( "{$function} was called incorrectly. {$message}. This message was added in version {$version}." );
	} else {
		_doing_it_wrong( $function, $message, $version );
	}
}
function wpcw_doing_it_wrong ( $ function , $ message , $ version ) { $ message .= ' Backtrace: ' . wp_debug_backtrace_summary ( ) ; if ( wpcw_is_ajax ( ) ) { do_action ( 'doing_it_wrong_run' , $ function , $ message , $ version ) ; error_log ( " { $ function }  was called incorrectly.  { $ message } . This message was added in version  { $ version } . " ) ; } else { _doing_it_wrong ( $ function , $ message , $ version ) ; } }
Wrapper for _doing_it_wrong.
Wrapper for _doing_it_wrong .