WordPress.org

Make WordPress Core

Ticket #34509: 34509.1.patch

File 34509.1.patch, 2.5 KB (added by juhise, 5 years ago)
  • wp-admin/options-permalink.php

     
    167167<form name="form" action="options-permalink.php" method="post">
    168168<?php wp_nonce_field('update-permalink') ?>
    169169
    170   <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="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>
    171171
    172172<?php
    173173if ( is_multisite() && ! is_subdomain_install() && is_main_site() && 0 === strpos( $permalink_structure, '/blog/' ) ) {
     
    187187<h2 class="title"><?php _e('Common Settings'); ?></h2>
    188188<table class="form-table permalink-structure">
    189189        <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>
    191191                <td><code><?php echo get_option('home'); ?>/?p=123</code></td>
    192192        </tr>
    193193        <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>
    195195                <td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td>
    196196        </tr>
    197197        <tr>