Making WordPress.org


Ignore:
Timestamp:
09/23/2014 06:30:18 PM (11 years ago)
Author:
coffee2code
Message:

Code Reference: rename 'Examples' to 'User Contributed Notes' in an appropriate fashion wherever present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/comments.php

    r768 r868  
    4040                 * See wporg_developer_comment() in inc/template-tags.php for more.
    4141                 */
    42                 wp_list_comments( array( 'callback' => 'wporg_developer_example' ) );
     42                wp_list_comments( array( 'callback' => 'wporg_developer_user_note' ) );
    4343            ?>
    4444        </ol><!-- .comment-list -->
     
    5454    <?php endif; // have_comments() ?>
    5555
    56     <?php if ( DevHub\can_user_post_example( false, get_the_ID() ) ) : ?>
     56    <?php if ( DevHub\can_user_post_note( false, get_the_ID() ) ) : ?>
    5757
    58     <p id="add-example" style="display:none;"><a href=""><?php _e( 'Have an example to add?', 'wporg' ); ?></a></p>
     58    <p id="add-user-note" style="display:none;"><a href=""><?php _e( 'Have a note to contribute?', 'wporg' ); ?></a></p>
    5959
    6060    <?php comment_form( array(
    61         'comment_field'       => '<p class="comment-form-comment"><label for="comment">' . _x( 'Add Example', 'noun', 'wporg' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
    62         'comment_notes_after' => '<p class="examples-are-gpl">' .
     61        'comment_field'       => '<p class="comment-form-comment"><label for="comment">' . _x( 'Add Note', 'noun', 'wporg' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
     62        'comment_notes_after' => '<p>' .
     63            __( 'Notes should supplement code reference entries, for example examples, tips, explanations, use-cases, and best practices.', 'wporg' ) .
     64            '</p><p>' .
     65            __( 'Do not use this form for support requests, discussions, spam, bug reports, complaints, or self-promotion. Entries of this nature will be deleted.', 'wporg' ) .
     66            '</p><p>' .
     67            sprintf( __( 'You can enter text and code. Code should be wrapped in the %s shortcode.', 'wporg' ), '[code][/code]' ) .
     68            '</p><p class="user-notes-are-gpl">' .
    6369            sprintf( __( '<strong>NOTE:</strong> All contributions are licensed under <a href="%s">GFDL</a> and are moderated before appearing on the site.', 'wporg' ), 'https://gnu.org/licenses/fdl.html' ) .
    64             '</p><p>' .
    65             __( 'The entirety of your submission is considered a code example. Any included non-code text should be formatted as code comments.', 'wporg' ) .
    6670            '</p>',
    67         'label_submit'        => __( 'Add Example', 'wporg' ),
    68         'must_log_in'         => '<p>' . sprintf( __( 'You must <a href="%s">log in</a> before being able to submit an example.', 'wporg' ), 'https://wordpress.org/support/bb-login.php' ) . '</p>',
     71        'label_submit'        => __( 'Add Note', 'wporg' ),
     72        'must_log_in'         => '<p>' . sprintf( __( 'You must <a href="%s">log in</a> before being able to contribute a note.', 'wporg' ), 'https://wordpress.org/support/bb-login.php' ) . '</p>',
    6973        'title_reply'         =>  '', //'Add Example'
    7074    ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.