芝麻web文件管理V1.00
编辑当前文件:/home/ephorei/www/wp-content/plugins/background-image-cropper/background-image-cropper.php
value(); if ( $value ) { // Get the attachment model for the existing file. $attachment_id = attachment_url_to_postid( $value ); if ( $attachment_id ) { $this->json['attachment'] = wp_prepare_attachment_for_js( $attachment_id ); } } } } $wp_customize->register_control_type( 'WP_Customize_Cropped_Background_Image_Control' ); $wp_customize->remove_control( 'background_image' ); $wp_customize->add_control( new WP_Customize_Cropped_Background_Image_Control( $wp_customize, 'background_image', array( 'section' => 'background_image', 'label' => __( 'Background Image' ), 'priority' => 0, 'flex_width' => true, 'flex_height' => true, 'width' => 1920, 'height' => 1080, ) ) ); }