WordPress.org

Make WordPress Core

Ticket #29872: 29872.diff

File 29872.diff, 2.2 KB (added by kpdesign, 4 years ago)

Add available tags span

  • src/wp-admin/options-permalink.php

     
    181181<form name="form" action="options-permalink.php" method="post">
    182182<?php wp_nonce_field('update-permalink') ?>
    183183
    184   <p><?php _e('By default WordPress uses web <abbr title="Universal Resource Locator">URL</abbr>s which have question marks and lots of numbers 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="http://codex.wordpress.org/Using_Permalinks">number of tags are available</a>, and here are some examples to get you started.'); ?></p>
     184  <p><?php _e('By default, WordPress uses web <abbr title="Universal Resource Locator">URL</abbr>s which have question marks and lots of numbers 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. Here are some examples to get you started.'); ?></p>
    185185
    186186<?php
    187187if ( is_multisite() && !is_subdomain_install() && is_main_site() ) {
     
    229229                <td>
    230230                        <code><?php echo get_option('home') . $blog_prefix; ?></code>
    231231                        <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo esc_attr($permalink_structure); ?>" class="regular-text code" />
     232                        <p><a href="http://codex.wordpress.org/Using_Permalinks#Structure_Tags" target="blank"><?php _e('Available tags:'); ?></a> <code title="4-digit year of the post">%year%</code>, <code title="2-digit month of the year">%monthnum%</code>, <code title="day of the month">%day%</code>, <code title="hour of the day">%hour%</code>, <code title="minute of the hour">%minute%</code>, <code title="second of the minute">%second%</code>, <code title="the unique post ID">%post_id%</code>, <code title="post slug">%postname%</code>, <code title="category slug">%category%</code>, <code title="sanitized author name">%author%</code></p>
    232233                </td>
    233234        </tr>
    234235</table>