PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 3.11.0
Image Source Control Lite – Show Image Credits and Captions v3.11.0
3.12.0 3.11.0 trunk 1.1 1.1.1 1.1.2 1.1.2.1 1.1.3 1.10 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.2 1.2.0.1 1.2.0.2 1.2.0.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.4.1 1.3.5 All 110 releases
← All changes | includes/model.php +0 -12 trunk3.11.0 View file →
@@ -84,12 +84,8 @@
84 84 }
85 85 $own = ( isset( $attachment['isc_image_source_own'] ) ) ? $attachment['isc_image_source_own'] : '';
86 86 self::save_field( $post['ID'], 'isc_image_source_own', $own );
87 87
88 - if ( isset( $attachment['isc_ai_label'] ) ) {
89 - self::save_field( $post['ID'], \ISC\Image_Sources\Ai_Labels::META_KEY, \ISC\Image_Sources\Ai_Labels::sanitize_label( $attachment['isc_ai_label'] ) );
90 - }
91 -
92 88 if ( isset( $attachment['isc_image_licence'] ) ) {
93 89 self::save_field( $post['ID'], 'isc_image_licence', sanitize_text_field( $attachment['isc_image_licence'] ) );
94 90 }
95 91
@@ -261,15 +257,8 @@
261 257 WHERE mt1.post_id = wp_posts.ID
262 258 AND mt1.meta_key = 'isc_image_source_own'
263 259 AND mt1.meta_value = '1'
264 260 )
265 - AND NOT EXISTS (
266 - SELECT 1
267 - FROM {$wpdb->postmeta} AS mt_ai
268 - WHERE mt_ai.post_id = wp_posts.ID
269 - AND mt_ai.meta_key = 'isc_ai_label'
270 - AND mt_ai.meta_value IN ('ai', 'ai-modified', 'ai-generated')
271 - )
272 261 AND (
273 262 EXISTS (
274 263 SELECT 1
275 264 FROM {$wpdb->postmeta} AS wp_postmeta
@@ -659,9 +648,8 @@
659 648 'isc_image_source',
660 649 'isc_image_source_url',
661 650 'isc_image_license',
662 651 'isc_image_source_own',
663 - \ISC\Image_Sources\Ai_Labels::META_KEY,
664 652 'isc_image_posts',
665 653 'isc_possible_usages',
666 654 'isc_possible_usages_last_check',
667 655 ];