le.', $function, $version ); /** * Fires when a deprecated function is called. * * @since 7.3.0 */ do_action( 'deprecated_function_run', $function, $replacement, $version ); $log_error = false; // If headers have not been sent yet, log to avoid breaking the request. if ( ! headers_sent() ) { $log_error = true; } // If the $trigger_error_version was not yet reached, only log the error. if ( version_compare( $this->package->get_version(), $trigger_error_version, '<' ) ) { $log_error = true; } /** * Filters whether to trigger an error for deprecated functions. (Same as WP core) * * @since 7.3.0 * * @param bool $trigger Whether to trigger the error for deprecated functions. Default true. */ if ( ! apply_filters( 'deprecated_function_trigger_error', true ) ) { $log_error = true; } if ( $log_error ) { // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log error_log( $error_message ); } else { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, WordPress.PHP.DevelopmentFunctions.error_log_trigger_error trigger_error( $error_message, E_USER_DEPRECATED ); } } /** * Register payment method integrations with the container. */ protected function register_payment_methods() { $this->container->register( Cheque::class, function( Container $container ) { $asset_api = $container->get( AssetApi::class ); return new Cheque( $asset_api ); } ); $this->container->register( PayPal::class, function( Container $container ) { $asset_api = $container->get( AssetApi::class ); return new PayPal( $asset_api ); } ); $this->container->register( BankTransfer::class, function( Container $container ) { $asset_api = $container->get( AssetApi::class ); return new BankTransfer( $asset_api ); } ); $this->container->register( CashOnDelivery::class, function( Container $container ) { $asset_api = $container->get( AssetApi::class ); return new CashOnDelivery( $asset_api ); } ); } } WordPress › fout

Er heeft zich een kritieke fout voorgedaan op deze site.

Meer informatie over probleemoplossing in WordPress.