WordPress.org

Make WordPress Core

Ticket #8993: add trailing slash to numeric example and auto-pop.diff

File add trailing slash to numeric example and auto-pop.diff, 1.0 KB (added by simonwheatley, 5 years ago)

Patch to add trailing slash to the numeric permalink example and auto-pop code

  • Users/simon/Projects/WordPress-Bleeding/site/wordpress/wp-admin/options-permalink.php

     
    141141        '', 
    142142        $prefix . '/%year%/%monthnum%/%day%/%postname%/', 
    143143        $prefix . '/%year%/%monthnum%/%postname%/', 
    144         $prefix . '/archives/%post_id%' 
     144        $prefix . '/archives/%post_id%/' 
    145145        ); 
    146146?> 
    147147<h3><?php _e('Common settings'); ?></h3> 
     
    160160        </tr> 
    161161        <tr> 
    162162                <th><label><input name="selection" type="radio" value="<?php echo $structures[3]; ?>" class="tog" <?php checked($structures[3], $permalink_structure); ?> /> <?php _e('Numeric'); ?></label></th> 
    163                 <td><code><?php echo get_option('home') . $prefix  ; ?>/archives/123</code></td> 
     163                <td><code><?php echo get_option('home') . $prefix  ; ?>/archives/123/</code></td> 
    164164        </tr> 
    165165        <tr> 
    166166                <th>