Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
- Timestamp:
- 12/19/2017 04:22:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
r6119 r6287 55 55 ) : 56 56 if ( UPLOAD_ERR_OK === $_FILES['zip_file']['error'] ) : 57 $uploader = new Upload_Handler ;57 $uploader = new Upload_Handler(); 58 58 $upload_result = $uploader->process_upload(); 59 59 … … 76 76 77 77 <div class="plugin-queue-message notice notice-info notice-alt"> 78 <p><?php 79 if ( 1 === ( $plugins->new + $plugins->pending ) ) { 80 _e( 'Currently there is 1 plugin in the review queue.', 'wporg-plugins' ); 78 <p> 79 <?php 80 if ( 1 === ( $plugins->new + $plugins->pending ) ) { 81 _e( 'Currently there is 1 plugin in the review queue.', 'wporg-plugins' ); 82 } else { 83 printf( 84 _n( 85 'Currently there are %1$s plugins in the review queue, %2$s of which is awaiting its initial review.', 86 'Currently there are %1$s plugins in the review queue, %2$s of which are awaiting their initial review.', 87 $plugins->new, 88 'wporg-plugins' 89 ), 90 '<strong>' . ( $plugins->new + $plugins->pending ) . '</strong>', 91 '<strong>' . $plugins->new . '</strong>' 92 ); 93 } 94 ?> 95 </p> 96 </div> 97 98 <?php if ( $submitted_counts->total ) : ?> 99 100 <div class="plugin-queue-message notice notice-warning notice-alt"> 101 <p> 102 <?php 103 if ( 1 === $submitted_counts->total ) { 104 _e( 'You already have a plugin in the review queue. Please wait for it to be approved before submitting any more.', 'wporg-plugins' ); 81 105 } else { 82 106 printf( 83 107 _n( 84 ' Currently there are %1$s plugins in the review queue, %2$s of which is awaiting its initial review.',85 ' Currently there are %1$s plugins in the review queue, %2$s of which are awaiting their initial review.',86 $ plugins->new,108 'You have %1$s plugins in the review queue, %2$s is being actively reviewed. Please wait for them to be approved before submitting any more.', 109 'You have %1$s plugins in the review queue, %2$s are being actively reviewed. Please wait for them to be approved before submitting any more.', 110 $submitted_counts->pending, 87 111 'wporg-plugins' 88 112 ), 89 '<strong>' . ( $plugins->new + $plugins->pending ). '</strong>',90 '<strong>' . $ plugins->new. '</strong>'113 '<strong>' . $submitted_counts->total . '</strong>', 114 '<strong>' . $submitted_counts->pending . '</strong>' 91 115 ); 92 116 } 93 ?></p> 94 </div> 95 96 <?php if ( $submitted_counts->total ) : ?> 97 98 <div class="plugin-queue-message notice notice-warning notice-alt"> 99 <p><?php 100 if ( 1 === $submitted_counts->total ) { 101 _e( 'You already have a plugin in the review queue. Please wait for it to be approved before submitting any more.', 'wporg-plugins' ); 102 } else { 103 printf( 104 _n( 105 'You have %1$s plugins in the review queue, %2$s is being actively reviewed. Please wait for them to be approved before submitting any more.', 106 'You have %1$s plugins in the review queue, %2$s are being actively reviewed. Please wait for them to be approved before submitting any more.', 107 $submitted_counts->pending, 108 'wporg-plugins' 109 ), 110 '<strong>' . $submitted_counts->total . '</strong>', 111 '<strong>' . $submitted_counts->pending . '</strong>' 112 ); 113 } 114 ?></p> 115 116 <ul><?php 117 foreach ( $submitted_plugins as $plugin ) { 118 echo '<li>' . esc_html( $plugin->post_title ) . ' — ' . $plugin->status . "</li>\n"; 119 } 120 ?></ul> 121 122 <p><?php 117 ?> 118 </p> 119 120 <ul> 121 <?php 122 foreach ( $submitted_plugins as $plugin ) { 123 echo '<li>' . esc_html( $plugin->post_title ) . ' — ' . $plugin->status . "</li>\n"; 124 } 125 ?> 126 </ul> 127 128 <p> 129 <?php 123 130 /* translators: %s: plugins@wordpress.org */ 124 printf( __( 'Please wait at least 7 business days before asking for an update status from <a href="mailto:%1$s">%1$s</a>.', 'wporg-plugins' ), 131 printf( 132 __( 'Please wait at least 7 business days before asking for an update status from <a href="mailto:%1$s">%1$s</a>.', 'wporg-plugins' ), 125 133 'plugins@wordpress.org' 126 134 ); 127 ?></p> 135 ?> 136 </p> 128 137 </div> 129 138 … … 137 146 <?php wp_nonce_field( 'wporg-plugins-upload' ); ?> 138 147 <input type="hidden" name="action" value="upload"/> 139 <?php /* <fieldset> 148 <?php 149 /* 150 <fieldset> 140 151 <legend><?php _e( 'Select categories (up to 3)', 'wporg-plugins' ); ?></legend> 141 152 <ul class="category-checklist"> 142 153 <?php wp_terms_checklist( 0, array( 'taxonomy' => 'plugin_category' ) ); ?> 143 154 </ul> 144 </fieldset> */ ?> 155 </fieldset> */ 156 ?> 145 157 146 158 <input type="file" id="zip_file" class="plugin-file" name="zip_file" size="25" accept=".zip"/> … … 175 187 <p><?php printf( __( 'Before you can upload a new plugin, <a href="%s">please log in</a>.', 'wporg-plugins' ), esc_url( wp_login_url() ) ); ?></p> 176 188 177 <?php endif; // is_user_logged_in() 189 <?php 190 endif; // is_user_logged_in() 178 191 179 192 return ob_get_clean();
Note: See TracChangeset
for help on using the changeset viewer.