Changeset 13980
- Timestamp:
- 08/19/2024 10:26:56 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/uploads.php
r13816 r13980 81 81 // Enqueue scripts. 82 82 add_action( 'wp_enqueue_scripts', [ __CLASS__, 'wp_enqueue_scripts' ] ); 83 84 83 85 // Disable upload form and show message if user not allowed to upload. 84 86 add_filter( 'the_content', [ __CLASS__, 'insert_upload_disallowed_notice' ], 1 ); … … 888 890 if ( is_page( self::SUBMIT_PAGE_SLUG ) ) { 889 891 $content .= apply_filters( 'wporg_photos_pre_upload_form', $content ); 890 891 if ( User::count_published_photos( get_current_user_id() ) ) {892 $content .= sprintf(893 /* translators: %s: URL to current user's photo archive. */894 '<p>' . __( 'View <a href="%s">your archive of photos</a> to see what you’ve already had published.', 'wporg-photos' ) . '</p>',895 get_author_posts_url( get_current_user_id() )896 );897 }898 892 899 893 $content .= '<fieldset id="wporg-photo-upload">'; … … 1015 1009 return $transforms; 1016 1010 } 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1017 1045 } 1018 1046
Note: See TracChangeset
for help on using the changeset viewer.