Changeset 43571 for trunk/src/wp-admin/options-writing.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-writing.php
r42343 r43571 70 70 <label for="use_smilies"> 71 71 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked( '1', get_option( 'use_smilies' ) ); ?> /> 72 <?php _e( 'Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display' ); ?></label><br />72 <?php _e( 'Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display' ); ?></label><br /> 73 73 <label for="use_balanceTags"><input name="use_balanceTags" type="checkbox" id="use_balanceTags" value="1" <?php checked( '1', get_option( 'use_balanceTags' ) ); ?> /> <?php _e( 'WordPress should correct invalidly nested XHTML automatically' ); ?></label> 74 74 </fieldset></td> … … 108 108 <?php 109 109 if ( get_option( 'link_manager_enabled' ) ) : 110 ?>110 ?> 111 111 <tr> 112 112 <th scope="row"><label for="default_link_category"><?php _e( 'Default Link Category' ); ?></label></th> 113 113 <td> 114 <?php115 wp_dropdown_categories(116 array(117 'hide_empty' => 0,118 'name' => 'default_link_category',119 'orderby' => 'name',120 'selected' => get_option( 'default_link_category' ),121 'hierarchical' => true,122 'taxonomy' => 'link_category',123 )124 );125 ?>114 <?php 115 wp_dropdown_categories( 116 array( 117 'hide_empty' => 0, 118 'name' => 'default_link_category', 119 'orderby' => 'name', 120 'selected' => get_option( 'default_link_category' ), 121 'hierarchical' => true, 122 'taxonomy' => 'link_category', 123 ) 124 ); 125 ?> 126 126 </td> 127 127 </tr> … … 137 137 /** This filter is documented in wp-admin/options.php */ 138 138 if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { 139 ?>139 ?> 140 140 <h2 class="title"><?php _e( 'Post via email' ); ?></h2> 141 141 <p> 142 <?php143 printf(144 /* translators: 1, 2, 3: examples of random email addresses */145 __( 'To post to WordPress by email you must set up a secret email account with POP3 access. Any mail received at this address will be posted, so it’s a good idea to keep this address very secret. Here are three random strings you could use: %1$s, %2$s, %3$s.' ),146 sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ),147 sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ),148 sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) )149 );150 ?>142 <?php 143 printf( 144 /* translators: 1, 2, 3: examples of random email addresses */ 145 __( 'To post to WordPress by email you must set up a secret email account with POP3 access. Any mail received at this address will be posted, so it’s a good idea to keep this address very secret. Here are three random strings you could use: %1$s, %2$s, %3$s.' ), 146 sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ), 147 sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ), 148 sprintf( '<kbd>%s</kbd>', wp_generate_password( 8, false ) ) 149 ); 150 ?> 151 151 </p> 152 152 … … 172 172 <th scope="row"><label for="default_email_category"><?php _e( 'Default Mail Category' ); ?></label></th> 173 173 <td> 174 <?php175 wp_dropdown_categories(176 array(177 'hide_empty' => 0,178 'name' => 'default_email_category',179 'orderby' => 'name',180 'selected' => get_option( 'default_email_category' ),181 'hierarchical' => true,182 )183 );184 ?>185 </td> 186 </tr> 187 <?php do_settings_fields( 'writing', 'post_via_email' ); ?>174 <?php 175 wp_dropdown_categories( 176 array( 177 'hide_empty' => 0, 178 'name' => 'default_email_category', 179 'orderby' => 'name', 180 'selected' => get_option( 'default_email_category' ), 181 'hierarchical' => true, 182 ) 183 ); 184 ?> 185 </td> 186 </tr> 187 <?php do_settings_fields( 'writing', 'post_via_email' ); ?> 188 188 </table> 189 189 <?php } ?> … … 198 198 */ 199 199 if ( apply_filters( 'enable_update_services_configuration', true ) ) { 200 ?>200 ?> 201 201 <h2 class="title"><?php _e( 'Update Services' ); ?></h2> 202 202 203 <?php if ( 1 == get_option( 'blog_public' ) ) : ?>203 <?php if ( 1 == get_option( 'blog_public' ) ) : ?> 204 204 205 205 <p><label for="ping_sites"> 206 <?php206 <?php 207 207 printf( 208 208 /* translators: %s: Codex URL */ … … 210 210 __( 'https://codex.wordpress.org/Update_Services' ) 211 211 ); 212 ?>212 ?> 213 213 </label></p> 214 214 215 215 <textarea name="ping_sites" id="ping_sites" class="large-text code" rows="3"><?php echo esc_textarea( get_option( 'ping_sites' ) ); ?></textarea> 216 216 217 <?php else : ?>217 <?php else : ?> 218 218 219 219 <p> 220 <?php220 <?php 221 221 printf( 222 222 /* translators: 1: Codex URL, 2: Reading Settings URL */ … … 225 225 'options-reading.php' 226 226 ); 227 ?>227 ?> 228 228 </p> 229 229 230 <?php endif; ?>230 <?php endif; ?> 231 231 <?php } // enable_update_services_configuration ?> 232 232
Note: See TracChangeset
for help on using the changeset viewer.