Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

replace image_id_from_url() with new method save group() #502

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helpers/cmb_Meta_Box_types.php
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ public function file() {

// If there is no ID saved yet, try to get it from the url
if ( $meta_value && ! $_id_value ) {
$_id_value = cmb_Meta_Box::image_id_from_url( esc_url_raw( $meta_value ) );
$_id_value = cmb_Meta_Box::save_group( esc_url_raw( $meta_value ) );
}

echo $this->input( array(
Expand Down