Changeset 3373472
- Timestamp:
- 10/06/2025 07:46:57 AM (5 months ago)
- Location:
- image-source-control-isc
- Files:
-
- 3 deleted
- 6 edited
- 53 copied
-
tags/3.6.0 (copied) (copied from image-source-control-isc/trunk)
-
tags/3.6.0/admin/admin.php (copied) (copied from image-source-control-isc/trunk/admin/admin.php)
-
tags/3.6.0/admin/assets/js/feedback.min.js (copied) (copied from image-source-control-isc/trunk/admin/assets/js/feedback.min.js)
-
tags/3.6.0/admin/assets/js/media-upload.min.js (copied) (copied from image-source-control-isc/trunk/admin/assets/js/media-upload.min.js)
-
tags/3.6.0/admin/assets/js/settings.js (copied) (copied from image-source-control-isc/trunk/admin/assets/js/settings.js)
-
tags/3.6.0/admin/assets/js/settings.min.js (copied) (copied from image-source-control-isc/trunk/admin/assets/js/settings.min.js)
-
tags/3.6.0/admin/assets/js/sources.js (copied) (copied from image-source-control-isc/trunk/admin/assets/js/sources.js)
-
tags/3.6.0/admin/assets/js/sources.min.js (copied) (copied from image-source-control-isc/trunk/admin/assets/js/sources.min.js)
-
tags/3.6.0/admin/assets/js/wp.media.view.AttachmentCompat.min.js (copied) (copied from image-source-control-isc/trunk/admin/assets/js/wp.media.view.AttachmentCompat.min.js)
-
tags/3.6.0/admin/includes/media-library-checks.php (copied) (copied from image-source-control-isc/trunk/admin/includes/media-library-checks.php) (2 diffs)
-
tags/3.6.0/admin/templates/settings/caption/divi.php (copied) (copied from image-source-control-isc/trunk/admin/templates/settings/caption/divi.php)
-
tags/3.6.0/admin/templates/settings/caption/elementor.php (copied) (copied from image-source-control-isc/trunk/admin/templates/settings/caption/elementor.php)
-
tags/3.6.0/admin/templates/settings/caption/overlay-included-images.php (copied) (copied from image-source-control-isc/trunk/admin/templates/settings/caption/overlay-included-images.php)
-
tags/3.6.0/admin/templates/settings/miscellaneous/elementor.php (deleted)
-
tags/3.6.0/admin/templates/settings/page-list/layout.php (copied) (copied from image-source-control-isc/trunk/admin/templates/settings/page-list/layout.php)
-
tags/3.6.0/admin/templates/settings/plugin/images-only.php (copied) (copied from image-source-control-isc/trunk/admin/templates/settings/plugin/images-only.php)
-
tags/3.6.0/admin/templates/settings/preview/caption-preview.html (copied) (copied from image-source-control-isc/trunk/admin/templates/settings/preview/caption-preview.html)
-
tags/3.6.0/admin/templates/sources/storage.php (copied) (copied from image-source-control-isc/trunk/admin/templates/sources/storage.php)
-
tags/3.6.0/admin/utils.php (copied) (copied from image-source-control-isc/trunk/admin/utils.php)
-
tags/3.6.0/includes/block-options/block-options.php (copied) (copied from image-source-control-isc/trunk/includes/block-options/block-options.php)
-
tags/3.6.0/includes/block-options/isc-image-block-edit-link.min.js (copied) (copied from image-source-control-isc/trunk/includes/block-options/isc-image-block-edit-link.min.js)
-
tags/3.6.0/includes/block-options/isc-image-block.min.js (copied) (copied from image-source-control-isc/trunk/includes/block-options/isc-image-block.min.js)
-
tags/3.6.0/includes/feedback.php (copied) (copied from image-source-control-isc/trunk/includes/feedback.php)
-
tags/3.6.0/includes/helpers.php (copied) (copied from image-source-control-isc/trunk/includes/helpers.php)
-
tags/3.6.0/includes/image-sources/Post_Meta (copied) (copied from image-source-control-isc/trunk/includes/image-sources/Post_Meta)
-
tags/3.6.0/includes/image-sources/admin.php (copied) (copied from image-source-control-isc/trunk/includes/image-sources/admin.php)
-
tags/3.6.0/includes/image-sources/admin/ajax.php (copied) (copied from image-source-control-isc/trunk/includes/image-sources/admin/ajax.php)
-
tags/3.6.0/includes/image-sources/admin/fields.php (copied) (copied from image-source-control-isc/trunk/includes/image-sources/admin/fields.php)
-
tags/3.6.0/includes/image-sources/admin/media-library-filters.php (copied) (copied from image-source-control-isc/trunk/includes/image-sources/admin/media-library-filters.php) (1 diff)
-
tags/3.6.0/includes/image-sources/admin/scripts.php (copied) (copied from image-source-control-isc/trunk/includes/image-sources/admin/scripts.php)
-
tags/3.6.0/includes/image-sources/analyze-html.php (copied) (copied from image-source-control-isc/trunk/includes/image-sources/analyze-html.php)
-
tags/3.6.0/includes/image-sources/image-sources.php (copied) (copied from image-source-control-isc/trunk/includes/image-sources/image-sources.php)
-
tags/3.6.0/includes/image-sources/renderer/global-list.php (copied) (copied from image-source-control-isc/trunk/includes/image-sources/renderer/global-list.php)
-
tags/3.6.0/includes/image-sources/utils.php (copied) (copied from image-source-control-isc/trunk/includes/image-sources/utils.php)
-
tags/3.6.0/includes/indexer.php (copied) (copied from image-source-control-isc/trunk/includes/indexer.php)
-
tags/3.6.0/includes/media-type-checker.php (copied) (copied from image-source-control-isc/trunk/includes/media-type-checker.php)
-
tags/3.6.0/includes/model.php (copied) (copied from image-source-control-isc/trunk/includes/model.php)
-
tags/3.6.0/includes/options.php (copied) (copied from image-source-control-isc/trunk/includes/options.php)
-
tags/3.6.0/includes/settings.php (copied) (copied from image-source-control-isc/trunk/includes/settings.php)
-
tags/3.6.0/includes/settings/sections/caption.php (copied) (copied from image-source-control-isc/trunk/includes/settings/sections/caption.php)
-
tags/3.6.0/includes/settings/sections/global-list.php (copied) (copied from image-source-control-isc/trunk/includes/settings/sections/global-list.php)
-
tags/3.6.0/includes/settings/sections/miscellaneous.php (copied) (copied from image-source-control-isc/trunk/includes/settings/sections/miscellaneous.php)
-
tags/3.6.0/includes/settings/sections/page-list.php (copied) (copied from image-source-control-isc/trunk/includes/settings/sections/page-list.php)
-
tags/3.6.0/includes/settings/sections/plugin-options.php (copied) (copied from image-source-control-isc/trunk/includes/settings/sections/plugin-options.php)
-
tags/3.6.0/includes/storage-model.php (modified) (1 diff)
-
tags/3.6.0/isc.php (copied) (copied from image-source-control-isc/trunk/isc.php) (2 diffs)
-
tags/3.6.0/js (deleted)
-
tags/3.6.0/lib/composer/autoload_classmap.php (copied) (copied from image-source-control-isc/trunk/lib/composer/autoload_classmap.php)
-
tags/3.6.0/lib/composer/autoload_static.php (copied) (copied from image-source-control-isc/trunk/lib/composer/autoload_static.php)
-
tags/3.6.0/public/assets/js/captions.js (copied) (copied from image-source-control-isc/trunk/public/assets/js/captions.js)
-
tags/3.6.0/public/assets/js/captions.min.js (copied) (copied from image-source-control-isc/trunk/public/assets/js/captions.min.js)
-
tags/3.6.0/public/public.php (copied) (copied from image-source-control-isc/trunk/public/public.php)
-
tags/3.6.0/public/views/global-list.php (copied) (copied from image-source-control-isc/trunk/public/views/global-list.php)
-
tags/3.6.0/public/views/image-source-box.php (copied) (copied from image-source-control-isc/trunk/public/views/image-source-box.php)
-
tags/3.6.0/readme.txt (copied) (copied from image-source-control-isc/trunk/readme.txt) (2 diffs)
-
tags/3.6.0/templates (deleted)
-
tags/3.6.0/uninstall.php (copied) (copied from image-source-control-isc/trunk/uninstall.php)
-
trunk/admin/includes/media-library-checks.php (modified) (2 diffs)
-
trunk/includes/image-sources/admin/media-library-filters.php (modified) (1 diff)
-
trunk/includes/storage-model.php (modified) (1 diff)
-
trunk/isc.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-source-control-isc/tags/3.6.0/admin/includes/media-library-checks.php
r3357773 r3373472 14 14 */ 15 15 public function __construct() { 16 add_action( 'add_meta_boxes ', [ $this, 'add_warning_meta_box' ], 10, 2);16 add_action( 'add_meta_boxes_attachment', [ $this, 'add_warning_meta_box' ] ); 17 17 } 18 18 … … 20 20 * Add a warning meta box when the GUID domain or path does not match the attachment metadata. 21 21 * 22 * @param string $post_type Post type. 23 * @param \WP_Post $post Attachment post object. 22 * @param \WP_Post $post Attachment post object. 24 23 */ 25 public function add_warning_meta_box( $post_type,\WP_Post $post ) {26 if ( 'attachment' !== $post_type) {24 public function add_warning_meta_box( \WP_Post $post ) { 25 if ( ! $this->has_guid_domain_mismatch( $post ) && ! $this->has_guid_path_mismatch( $post ) ) { 27 26 return; 28 27 } 29 28 30 // Only add the meta box if there's any kind of GUID mismatch. 31 if ( $this->has_guid_domain_mismatch( $post ) || $this->has_guid_path_mismatch( $post ) ) { 32 add_meta_box( 33 'isc-error-check', 34 __( 'Error', 'image-source-control-isc' ), 35 [ $this, 'render_warning_meta_box' ], 36 'attachment', 37 'side', 38 'high' 39 ); 40 } 29 add_meta_box( 30 'isc-error-check', 31 __( 'Error', 'image-source-control-isc' ), 32 [ $this, 'render_warning_meta_box' ], 33 'attachment', 34 'side', 35 'high' 36 ); 41 37 } 42 38 -
image-source-control-isc/tags/3.6.0/includes/image-sources/admin/media-library-filters.php
r3357773 r3373472 57 57 $filter = isset( $_GET['isc_filter'] ) ? sanitize_text_field( wp_unslash( $_GET['isc_filter'] ) ) : ''; 58 58 59 // Add image type check if images_only is enabled 60 if ( \ISC\Media_Type_Checker::enabled_images_only_option() ) {59 // Add image type check if images_only is enabled and a filter for image sources is checked 60 if ( $filter && \ISC\Media_Type_Checker::enabled_images_only_option() ) { 61 61 $query->set( 'post_mime_type', 'image%' ); 62 62 } -
image-source-control-isc/tags/3.6.0/includes/storage-model.php
r2674029 r3373472 179 179 180 180 $this->storage = $storage; 181 update_option( $this->option_slug, $storage, true ); 181 // autoload is false since this can get quite large 182 update_option( $this->option_slug, $storage, false ); 182 183 } 183 184 -
image-source-control-isc/tags/3.6.0/isc.php
r3357773 r3373472 2 2 /** 3 3 * Plugin Name: Image Source Control Lite 4 * Version: 3. 5.04 * Version: 3.6.0 5 5 * Plugin URI: https://imagesourcecontrol.com/ 6 6 * Description: Image Source Control saves the source of an image, lists them and warns if it is missing. … … 30 30 } 31 31 32 define( 'ISCVERSION', '3. 5.0' );32 define( 'ISCVERSION', '3.6.0' ); 33 33 define( 'ISCNAME', 'Image Source Control' ); 34 34 define( 'ISCDIR', basename( __DIR__ ) ); -
image-source-control-isc/tags/3.6.0/readme.txt
r3357773 r3373472 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 3. 5.06 Stable tag: 3.6.0 7 7 Requires PHP: 7.4 8 8 License: GPLv3 or later … … 167 167 == Changelog == 168 168 169 = 3.6.0 = 170 171 * Feature (Pro): Execute the Indexer for Unused Images as a logged-in user; enable this option if your site is (partially) hidden behind a login or user capabilities 172 * Feature (Pro): Optionally run the indexer only on un-indexed instead of all posts 173 * Improvement (Pro): Added labels for icons in the Unused Images list for better clarity 174 * Improvement (Pro): An image is no longer considered “used” if the attached post is moved to the trash; previously, only fully deleting the post did that 175 * Fix: Prevent a fatal error on comment edit pages 176 * Fiv: The Images-only option caused non-images (e.g., PDFs) to no longer show in the media library 177 * Dev: Disables autoload of the `isc_storage` option 178 169 179 = 3.5.0 = 170 180 -
image-source-control-isc/trunk/admin/includes/media-library-checks.php
r3357773 r3373472 14 14 */ 15 15 public function __construct() { 16 add_action( 'add_meta_boxes ', [ $this, 'add_warning_meta_box' ], 10, 2);16 add_action( 'add_meta_boxes_attachment', [ $this, 'add_warning_meta_box' ] ); 17 17 } 18 18 … … 20 20 * Add a warning meta box when the GUID domain or path does not match the attachment metadata. 21 21 * 22 * @param string $post_type Post type. 23 * @param \WP_Post $post Attachment post object. 22 * @param \WP_Post $post Attachment post object. 24 23 */ 25 public function add_warning_meta_box( $post_type,\WP_Post $post ) {26 if ( 'attachment' !== $post_type) {24 public function add_warning_meta_box( \WP_Post $post ) { 25 if ( ! $this->has_guid_domain_mismatch( $post ) && ! $this->has_guid_path_mismatch( $post ) ) { 27 26 return; 28 27 } 29 28 30 // Only add the meta box if there's any kind of GUID mismatch. 31 if ( $this->has_guid_domain_mismatch( $post ) || $this->has_guid_path_mismatch( $post ) ) { 32 add_meta_box( 33 'isc-error-check', 34 __( 'Error', 'image-source-control-isc' ), 35 [ $this, 'render_warning_meta_box' ], 36 'attachment', 37 'side', 38 'high' 39 ); 40 } 29 add_meta_box( 30 'isc-error-check', 31 __( 'Error', 'image-source-control-isc' ), 32 [ $this, 'render_warning_meta_box' ], 33 'attachment', 34 'side', 35 'high' 36 ); 41 37 } 42 38 -
image-source-control-isc/trunk/includes/image-sources/admin/media-library-filters.php
r3357773 r3373472 57 57 $filter = isset( $_GET['isc_filter'] ) ? sanitize_text_field( wp_unslash( $_GET['isc_filter'] ) ) : ''; 58 58 59 // Add image type check if images_only is enabled 60 if ( \ISC\Media_Type_Checker::enabled_images_only_option() ) {59 // Add image type check if images_only is enabled and a filter for image sources is checked 60 if ( $filter && \ISC\Media_Type_Checker::enabled_images_only_option() ) { 61 61 $query->set( 'post_mime_type', 'image%' ); 62 62 } -
image-source-control-isc/trunk/includes/storage-model.php
r2674029 r3373472 179 179 180 180 $this->storage = $storage; 181 update_option( $this->option_slug, $storage, true ); 181 // autoload is false since this can get quite large 182 update_option( $this->option_slug, $storage, false ); 182 183 } 183 184 -
image-source-control-isc/trunk/isc.php
r3357773 r3373472 2 2 /** 3 3 * Plugin Name: Image Source Control Lite 4 * Version: 3. 5.04 * Version: 3.6.0 5 5 * Plugin URI: https://imagesourcecontrol.com/ 6 6 * Description: Image Source Control saves the source of an image, lists them and warns if it is missing. … … 30 30 } 31 31 32 define( 'ISCVERSION', '3. 5.0' );32 define( 'ISCVERSION', '3.6.0' ); 33 33 define( 'ISCNAME', 'Image Source Control' ); 34 34 define( 'ISCDIR', basename( __DIR__ ) ); -
image-source-control-isc/trunk/readme.txt
r3357773 r3373472 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 3. 5.06 Stable tag: 3.6.0 7 7 Requires PHP: 7.4 8 8 License: GPLv3 or later … … 167 167 == Changelog == 168 168 169 = 3.6.0 = 170 171 * Feature (Pro): Execute the Indexer for Unused Images as a logged-in user; enable this option if your site is (partially) hidden behind a login or user capabilities 172 * Feature (Pro): Optionally run the indexer only on un-indexed instead of all posts 173 * Improvement (Pro): Added labels for icons in the Unused Images list for better clarity 174 * Improvement (Pro): An image is no longer considered “used” if the attached post is moved to the trash; previously, only fully deleting the post did that 175 * Fix: Prevent a fatal error on comment edit pages 176 * Fiv: The Images-only option caused non-images (e.g., PDFs) to no longer show in the media library 177 * Dev: Disables autoload of the `isc_storage` option 178 169 179 = 3.5.0 = 170 180
Note: See TracChangeset
for help on using the changeset viewer.