Making WordPress.org

Changeset 13816


Ignore:
Timestamp:
06/13/2024 08:13:19 PM (10 months ago)
Author:
coffee2code
Message:

Photo Directory, Uploads: Add link to Make/Photos post for help on what constitutes good ALT text.

Props samalderson.

File:
1 edited

Legend:

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

    r13815 r13816  
    925925                . "</div>\n"
    926926                . sprintf(
    927                     '[%s name="post_content" class="textarea" id="ug_content" description="%s" required="required" aria-required="true" maxlength="%d" help="%s"]' . "\n",
     927                    '[%s name="post_content" class="textarea" id="ug_content" description="%s" required="required" aria-required="true" maxlength="%d"]' . "\n",
    928928                    $description_shortcode,
    929929                    esc_attr( __( 'Alternative Text (required)', 'wporg-photos' ) ),
     930                    self::MAX_LENGTH_DESCRIPTION
     931                )
     932                . '<p class="ugc-help">'
     933                . sprintf(
     934                    __( 'Describe what can be seen in the photo for the benefit of those without sight. May be edited by moderators. Maximum of %d characters. No HTML. <a href="%s">Learn more about alternative text.</a>', 'wporg-photos' ),
    930935                    self::MAX_LENGTH_DESCRIPTION,
    931                     esc_attr( sprintf( __( 'Describe what can be seen in the photo for the benefit of those without sight. May be edited by moderators. Maximum of %d characters. No HTML.', 'wporg-photos' ), self::MAX_LENGTH_DESCRIPTION ) )
     936                    'https://make.wordpress.org/photos/2024/02/02/alt-text-for-wordpress-photos/'
    932937                )
     938                . '</p>' . "\n"
    933939                . '<div class="upload-checkbox-wrapper">' . "\n";
    934940
Note: See TracChangeset for help on using the changeset viewer.