|
@@ 1085-1089 (lines=5) @@
|
| 1082 |
|
|
| 1083 |
|
$postcurr_images[] = str_replace(array('http://','https://'),'',$uploads['baseurl'] . $file_path);
|
| 1084 |
|
|
| 1085 |
|
if ($menu_order == 1) {
|
| 1086 |
|
|
| 1087 |
|
$wpdb->query($wpdb->prepare("UPDATE " . $table . " SET featured_image = %s where post_id =%d", array($file_path, $post_id)));
|
| 1088 |
|
|
| 1089 |
|
}
|
| 1090 |
|
|
| 1091 |
|
// Set up options array to add this file as an attachment
|
| 1092 |
|
$attachment = array();
|
|
@@ 1130-1131 (lines=2) @@
|
| 1127 |
|
)
|
| 1128 |
|
);
|
| 1129 |
|
|
| 1130 |
|
if ($menu_order == 1)
|
| 1131 |
|
$wpdb->query($wpdb->prepare("UPDATE " . $table . " SET featured_image = %s where post_id =%d", array($split_img_path[1], $post_id)));
|
| 1132 |
|
|
| 1133 |
|
}
|
| 1134 |
|
|