Plugin Directory

Changeset 3373472


Ignore:
Timestamp:
10/06/2025 07:46:57 AM (5 months ago)
Author:
webzunft
Message:

version 3.6.0

Location:
image-source-control-isc
Files:
3 deleted
6 edited
53 copied

Legend:

Unmodified
Added
Removed
  • image-source-control-isc/tags/3.6.0/admin/includes/media-library-checks.php

    r3357773 r3373472  
    1414     */
    1515    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' ] );
    1717    }
    1818
     
    2020     * Add a warning meta box when the GUID domain or path does not match the attachment metadata.
    2121     *
    22      * @param string   $post_type Post type.
    23      * @param \WP_Post $post      Attachment post object.
     22     * @param \WP_Post $post Attachment post object.
    2423     */
    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 ) ) {
    2726            return;
    2827        }
    2928
    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        );
    4137    }
    4238
  • image-source-control-isc/tags/3.6.0/includes/image-sources/admin/media-library-filters.php

    r3357773 r3373472  
    5757        $filter = isset( $_GET['isc_filter'] ) ? sanitize_text_field( wp_unslash( $_GET['isc_filter'] ) ) : '';
    5858
    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() ) {
    6161            $query->set( 'post_mime_type', 'image%' );
    6262        }
  • image-source-control-isc/tags/3.6.0/includes/storage-model.php

    r2674029 r3373472  
    179179
    180180        $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 );
    182183    }
    183184
  • image-source-control-isc/tags/3.6.0/isc.php

    r3357773 r3373472  
    22/**
    33 * Plugin Name: Image Source Control Lite
    4  * Version: 3.5.0
     4 * Version: 3.6.0
    55 * Plugin URI: https://imagesourcecontrol.com/
    66 * Description: Image Source Control saves the source of an image, lists them and warns if it is missing.
     
    3030}
    3131
    32 define( 'ISCVERSION', '3.5.0' );
     32define( 'ISCVERSION', '3.6.0' );
    3333define( 'ISCNAME', 'Image Source Control' );
    3434define( 'ISCDIR', basename( __DIR__ ) );
  • image-source-control-isc/tags/3.6.0/readme.txt

    r3357773 r3373472  
    44Requires at least: 6.0
    55Tested up to: 6.8
    6 Stable tag: 3.5.0
     6Stable tag: 3.6.0
    77Requires PHP: 7.4
    88License: GPLv3 or later
     
    167167== Changelog ==
    168168
     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
    169179= 3.5.0 =
    170180
  • image-source-control-isc/trunk/admin/includes/media-library-checks.php

    r3357773 r3373472  
    1414     */
    1515    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' ] );
    1717    }
    1818
     
    2020     * Add a warning meta box when the GUID domain or path does not match the attachment metadata.
    2121     *
    22      * @param string   $post_type Post type.
    23      * @param \WP_Post $post      Attachment post object.
     22     * @param \WP_Post $post Attachment post object.
    2423     */
    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 ) ) {
    2726            return;
    2827        }
    2928
    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        );
    4137    }
    4238
  • image-source-control-isc/trunk/includes/image-sources/admin/media-library-filters.php

    r3357773 r3373472  
    5757        $filter = isset( $_GET['isc_filter'] ) ? sanitize_text_field( wp_unslash( $_GET['isc_filter'] ) ) : '';
    5858
    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() ) {
    6161            $query->set( 'post_mime_type', 'image%' );
    6262        }
  • image-source-control-isc/trunk/includes/storage-model.php

    r2674029 r3373472  
    179179
    180180        $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 );
    182183    }
    183184
  • image-source-control-isc/trunk/isc.php

    r3357773 r3373472  
    22/**
    33 * Plugin Name: Image Source Control Lite
    4  * Version: 3.5.0
     4 * Version: 3.6.0
    55 * Plugin URI: https://imagesourcecontrol.com/
    66 * Description: Image Source Control saves the source of an image, lists them and warns if it is missing.
     
    3030}
    3131
    32 define( 'ISCVERSION', '3.5.0' );
     32define( 'ISCVERSION', '3.6.0' );
    3333define( 'ISCNAME', 'Image Source Control' );
    3434define( 'ISCDIR', basename( __DIR__ ) );
  • image-source-control-isc/trunk/readme.txt

    r3357773 r3373472  
    44Requires at least: 6.0
    55Tested up to: 6.8
    6 Stable tag: 3.5.0
     6Stable tag: 3.6.0
    77Requires PHP: 7.4
    88License: GPLv3 or later
     
    167167== Changelog ==
    168168
     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
    169179= 3.5.0 =
    170180
Note: See TracChangeset for help on using the changeset viewer.