Making WordPress.org

Changeset 11687


Ignore:
Timestamp:
03/21/2022 09:36:01 PM (4 years ago)
Author:
coffee2code
Message:

Photo Directory, Photo: Discontinue auto-suggesting colors.

The process is often inaccurate and rarely ever thorough. Since mods have to intervene with colors, it's just easier to manually set them all rather than needing to set some or all and possibly also unsetting others.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/photo.php

    r11679 r11687  
    9393                add_action( 'wporg_photos_photo_upload_complete',   [ __CLASS__, 'get_analysis' ] );
    9494                add_action( 'wporg_photos_photo_analysis_complete', [ __CLASS__, 'assign_categories' ], 11 );
    95                 add_action( 'wporg_photos_photo_analysis_complete', [ __CLASS__, 'assign_colors' ], 11 );
     95                // Disabled until such time as it can be improved, assuming that's worthwhile.
     96                //add_action( 'wporg_photos_photo_analysis_complete', [ __CLASS__, 'assign_colors' ], 11 );
    9697                add_action( 'wporg_photos_photo_analysis_complete', [ __CLASS__, 'assign_tags' ] );
    9798                add_action( 'wporg_photos_photo_upload_complete',   [ __CLASS__, 'set_orientation' ] );
Note: See TracChangeset for help on using the changeset viewer.