Making WordPress.org

Changeset 12231


Ignore:
Timestamp:
11/09/2022 09:46:34 PM (20 months ago)
Author:
coffee2code
Message:

Photo Directory, Uploads: Add link to upload form that points to current user's photo archive.

See #6537.

File:
1 edited

Legend:

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

    r12140 r12231  
    868868        if ( is_page( self::SUBMIT_PAGE_SLUG ) ) {
    869869            $content .= apply_filters( 'wporg_photos_pre_upload_form', $content );
     870
     871            if ( User::count_published_photos( get_current_user_id() ) ) {
     872                $content .= sprintf(
     873                    /* translators: %s: URL to current user's photo archive. */
     874                    '<p>' . __( 'View <a href="%s">your archive of photos</a> to see what you&#8217;ve already had published.', 'wporg-photos' ) . '</p>',
     875                    get_author_posts_url( get_current_user_id() )
     876                );
     877            }
    870878
    871879            $content .= '<fieldset id="wporg-photo-upload">';
Note: See TracChangeset for help on using the changeset viewer.