Ticket #34509: 34509.1.patch
File 34509.1.patch, 2.5 KB (added by , 5 years ago) |
---|
-
wp-admin/options-permalink.php
167 167 <form name="form" action="options-permalink.php" method="post"> 168 168 <?php wp_nonce_field('update-permalink') ?> 169 169 170 <p><?php _e('By default WordPress uses web <abbr title="Universal Resource Locator">URL</abbr>s which have question marks and lots of numbersin them; however, WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="https://codex.wordpress.org/Using_Permalinks">number of tags are available</a>, and here are some examples to get you started.'); ?></p>170 <p><?php _e('By default WordPress uses web <abbr title="Universal Resource Locator">URL</abbr>s which have the day and name in them; however, WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="https://codex.wordpress.org/Using_Permalinks">number of tags are available</a>, and here are some examples to get you started.'); ?></p> 171 171 172 172 <?php 173 173 if ( is_multisite() && ! is_subdomain_install() && is_main_site() && 0 === strpos( $permalink_structure, '/blog/' ) ) { … … 187 187 <h2 class="title"><?php _e('Common Settings'); ?></h2> 188 188 <table class="form-table permalink-structure"> 189 189 <tr> 190 <th><label><input name="selection" type="radio" value="" <?php checked('', $permalink_structure); ?> /> <?php _e(' Default'); ?></label></th>190 <th><label><input name="selection" type="radio" value="" <?php checked('', $permalink_structure); ?> /> <?php _e('Post ID'); ?></label></th> 191 191 <td><code><?php echo get_option('home'); ?>/?p=123</code></td> 192 192 </tr> 193 193 <tr> 194 <th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[1]); ?>" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Day and name '); ?></label></th>194 <th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[1]); ?>" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Day and name (Default)'); ?></label></th> 195 195 <td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td> 196 196 </tr> 197 197 <tr>