Making WordPress.org

Ticket #3218: 3218.2.diff

File 3218.2.diff, 6.3 KB (added by audrasjb, 7 years ago)

3218: add help text for topic tags using aria-describedby attribute

  • buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-topic.php

    diff --git a/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-topic.php b/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-topic.php
    index bcf44fa..e41ddf1 100644
    a b  
    9797
    9898                                        <p>
    9999                                                <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />
    100                                                 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
     100                                                <em id="bbp_topic_tags_desc"><?php esc_html_e( 'Separate tags with commas.', 'wporg-forums' ); ?></em><br />
     101                                                <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" aria-describedby="bbp_topic_tags_desc" <?php disabled( bbp_is_topic_spam() ); ?> />
    101102                                        </p>
    102103
    103104                                        <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?>
  • buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php

    diff --git a/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php b/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php
    index bacfce6..9302cc9 100644
    a b  
    9898
    9999                                        <p>
    100100                                                <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />
    101                                                 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
     101                                                <em id="bbp_topic_tags_desc"><?php esc_html_e( 'Separate tags with commas.', 'wporg-forums' ); ?></em><br />
     102                                                <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" aria-describedby="bbp_topic_tags_desc" <?php disabled( bbp_is_topic_spam() ); ?> />
    102103                                        </p>
    103104
    104105                                        <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?>
  • buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php

    diff --git a/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php b/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php
    index 83a4697..665aa6d 100644
    a b  
    9898
    9999                                        <p>
    100100                                                <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />
    101                                                 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
     101                                                <em id="bbp_topic_tags_desc"><?php esc_html_e( 'Separate tags with commas.', 'wporg-forums' ); ?></em><br />
     102                                                <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" aria-describedby="bbp_topic_tags_desc" <?php disabled( bbp_is_topic_spam() ); ?> />
    102103                                        </p>
    103104
    104105                                        <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?>
  • wordpress.org/public_html/wp-content/themes/pub/wporg-forums/bbpress/form-topic.php

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/bbpress/form-topic.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/bbpress/form-topic.php
    index 77642d8..5131c07 100644
    a b  
    111111
    112112                                        <p>
    113113                                                <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'wporg-forums' ); ?></label><br />
    114                                                 <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
     114                                                <em id="bbp_topic_tags_desc"><?php esc_html_e( 'Separate tags with commas.', 'wporg-forums' ); ?></em><br />
     115                                                <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" aria-describedby="bbp_topic_tags_desc" <?php disabled( bbp_is_topic_spam() ); ?> />
    115116                                        </p>
    116117
    117118                                        <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?>
  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php
    index 5fae96e..e756673 100644
    a b if ( bbp_is_reply_edit() ) : ?> 
    9191
    9292                                                <p>
    9393                                                        <label for="bbp_topic_tags"><?php esc_html_e( 'Tags:', 'wporg-forums' ); ?></label><br />
    94                                                         <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
     94                                                        <em id="bbp_topic_tags_desc"><?php esc_html_e( 'Separate tags with commas.', 'wporg-forums' ); ?></em><br />
     95                                                        <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" aria-describedby="bbp_topic_tags_desc" <?php disabled( bbp_is_topic_spam() ); ?> />
    9596                                                </p>
    9697
    9798                                                <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?>
  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic.php

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic.php
    index a1115ea..3acde8b 100644
    a b  
    141141                                                                _e( 'Topic Tags:', 'wporg-forums' );
    142142                                                        }
    143143                                                ?></label><br />
    144                                                 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
     144                                                <em id="bbp_topic_tags_desc"><?php esc_html_e( 'Separate tags with commas.', 'wporg-forums' ); ?></em><br />
     145                                                <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" aria-describedby="bbp_topic_tags_desc" <?php disabled( bbp_is_topic_spam() ); ?> />
    145146                                        </p>
    146147
    147148                                        <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?>