wip prof check page now handle the success message on paiement

This commit is contained in:
asus
2024-03-07 21:34:48 +01:00
parent 5e28bf3059
commit f870f77a2c
9 changed files with 80 additions and 54 deletions

View File

@@ -25,7 +25,6 @@ if (!defined('ABSPATH')) {
* Default false.
*/
function wp_image_editor( $post_id, $msg = false ) {
error_log("------1");
$nonce = wp_create_nonce( "image_editor-$post_id" );
$meta = wp_get_attachment_metadata( $post_id );
@@ -39,7 +38,6 @@ error_log("------1");
die( __( 'Image data does not exist. Please re-upload the image.' ) );
}
error_log("------2");
$sizer = $big > 600 ? 600 / $big : 1;
@@ -67,7 +65,6 @@ error_log("------2");
*/
$edit_thumbnails_separately = (bool) apply_filters( 'image_edit_thumbnails_separately', false );
error_log("------3");
?>
<div class="imgedit-wrap wp-clearfix">
@@ -291,7 +288,6 @@ error_log("------3");
<?php
if ( $edit_thumbnails_separately && $thumb && $sub_sizes ) {
$thumb_img = wp_constrain_dimensions( $thumb['width'], $thumb['height'], 160, 120 );
error_log("------4");
?>
@@ -346,7 +342,6 @@ error_log("------4");
<div class="hidden" id="imgedit-leaving-<?php echo $post_id; ?>"><?php _e( "There are unsaved changes that will be lost. 'OK' to continue, 'Cancel' to return to the Image Editor." ); ?></div>
</div>
<?php
error_log("------5");
}
@@ -361,7 +356,6 @@ error_log("------5");
* @return bool True on success, false on failure.
*/
function wp_stream_image( $image, $mime_type, $attachment_id ) {
error_log("------1");
if ( $image instanceof WP_Image_Editor ) {
@@ -443,7 +437,6 @@ error_log("------1");
* }
*/
function wp_save_image_file( $filename, $image, $mime_type, $post_id ) {
error_log("------1");
if ( $image instanceof WP_Image_Editor ) {
@@ -534,7 +527,6 @@ error_log("------1");
* @return float|int Image preview ratio.
*/
function _image_get_preview_ratio( $w, $h ) {
error_log("------1");
$max = max( $w, $h );
return $max > 600 ? ( 600 / $max ) : 1;
@@ -553,7 +545,6 @@ error_log("------1");
* @return resource|GdImage|false GD image resource or GdImage instance, false otherwise.
*/
function _rotate_image_resource( $img, $angle ) {
error_log("------1");
_deprecated_function( __FUNCTION__, '3.5.0', 'WP_Image_Editor::rotate()' );
@@ -583,7 +574,6 @@ error_log("------1");
* @return resource|GdImage (maybe) flipped image resource or GdImage instance.
*/
function _flip_image_resource( $img, $horz, $vert ) {
error_log("------1");
_deprecated_function( __FUNCTION__, '3.5.0', 'WP_Image_Editor::flip()' );
@@ -620,7 +610,6 @@ error_log("------1");
* @return resource|GdImage (maybe) cropped image resource or GdImage instance.
*/
function _crop_image_resource( $img, $x, $y, $w, $h ) {
error_log("------1");
$dst = wp_imagecreatetruecolor( $w, $h );
@@ -644,7 +633,6 @@ error_log("------1");
* @return WP_Image_Editor WP_Image_Editor instance with changes applied.
*/
function image_edit_apply_changes( $image, $changes ) {
error_log("------1");
if ( is_gd_image( $image ) ) {
/* translators: 1: $image, 2: WP_Image_Editor */
@@ -781,7 +769,6 @@ error_log("------1");
* @return bool True on success, false on failure.
*/
function stream_preview_image( $post_id ) {
error_log("------1");
$post = get_post( $post_id );
@@ -823,7 +810,6 @@ error_log("------1");
* @return stdClass Image restoration message object.
*/
function wp_restore_image( $post_id ) {
error_log("------1");
$meta = wp_get_attachment_metadata( $post_id );
$file = get_attached_file( $post_id );
@@ -919,7 +905,6 @@ error_log("------1");
* @return stdClass
*/
function wp_save_image( $post_id ) {
error_log("------1");
$_wp_additional_image_sizes = wp_get_additional_image_sizes();