Making WordPress.org

Changeset 12787


Ignore:
Timestamp:
08/01/2023 10:45:26 PM (3 years ago)
Author:
coffee2code
Message:

Photo Directory, Photo: Improve some inline docs.

File:
1 edited

Legend:

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

    r12730 r12787  
    172172     * though it appears to be related to the image files themselves and doesn't
    173173     * 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.
    175175     *
    176176     * This function essentially copies `wp_read_image_metadata()`. If that
     
    179179     * - A check was added to the very beginning to bail early if EXIF had been extracted.
    180180     * - 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.
    182182     *
    183183     * Look for 'Start of retry_exif_read() specific changes here. ' to denote the
     
    453453     *                     of a known photo as obviously the provided hash
    454454     *                     would match itself.
    455      * @return bool True is the MD5 hash matches one for an existing photo.
     455     * @return bool True if the MD5 hash matches one for an existing photo.
    456456     */
    457457    public static function hash_exists( $hash ) {
     
    478478     *                       false.
    479479     * @return array|false   Associative array of analysis info or false if the
    480      *                       image was invalid or not data was retrieved.
     480     *                       image was invalid or no data was retrieved.
    481481     */
    482482    public static function fetch_analysis_from_api( $image_id, $force = false ) {
     
    514514     *                       false.
    515515     * @return array|false   Associative array of analysis info or false if the
    516      *                       image was invalid or not data was retrieved.
     516     *                       image was invalid or no data was retrieved.
    517517     */
    518518    public static function get_analysis( $image_id, $force = false ) {
     
    818818     * @param int   $post_id          The ID of the photo post type post.
    819819     * @param array $skip_likelihoods Likelihoods to skip due to not being of concern.
     820     *                                Default ['very_unlikely', 'unlikely'].
    820821     * @return array
    821822     */
     
    10011002
    10021003        if ( get_current_user_id() === $moderator_id ) {
    1003             $link = '<b>you</b>';
     1004            $link = '<b>' . __( 'you', 'wporg-photos' ) . '</b>';
    10041005        } else {
    10051006            $link = sprintf(
Note: See TracChangeset for help on using the changeset viewer.