Changeset 12787
- Timestamp:
- 08/01/2023 10:45:26 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/photo.php
r12730 r12787 172 172 * though it appears to be related to the image files themselves and doesn't 173 173 * affect all files. Perhaps the stream is not a seekable as the 174 * `exif_read_data()` docs suggest it needs to be.174 * `exif_read_data()` docs suggest it needs to be. 175 175 * 176 176 * This function essentially copies `wp_read_image_metadata()`. If that … … 179 179 * - A check was added to the very beginning to bail early if EXIF had been extracted. 180 180 * - The calls to `exif_read_data()` have been commented out and a call to 181 * `self::exif_read_data_as_data_stream()` as been added instead.181 * `self::exif_read_data_as_data_stream()` has been added instead. 182 182 * 183 183 * Look for 'Start of retry_exif_read() specific changes here. ' to denote the … … 453 453 * of a known photo as obviously the provided hash 454 454 * would match itself. 455 * @return bool True i sthe MD5 hash matches one for an existing photo.455 * @return bool True if the MD5 hash matches one for an existing photo. 456 456 */ 457 457 public static function hash_exists( $hash ) { … … 478 478 * false. 479 479 * @return array|false Associative array of analysis info or false if the 480 * image was invalid or no tdata was retrieved.480 * image was invalid or no data was retrieved. 481 481 */ 482 482 public static function fetch_analysis_from_api( $image_id, $force = false ) { … … 514 514 * false. 515 515 * @return array|false Associative array of analysis info or false if the 516 * image was invalid or no tdata was retrieved.516 * image was invalid or no data was retrieved. 517 517 */ 518 518 public static function get_analysis( $image_id, $force = false ) { … … 818 818 * @param int $post_id The ID of the photo post type post. 819 819 * @param array $skip_likelihoods Likelihoods to skip due to not being of concern. 820 * Default ['very_unlikely', 'unlikely']. 820 821 * @return array 821 822 */ … … 1001 1002 1002 1003 if ( get_current_user_id() === $moderator_id ) { 1003 $link = '<b> you</b>';1004 $link = '<b>' . __( 'you', 'wporg-photos' ) . '</b>'; 1004 1005 } else { 1005 1006 $link = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.