Make WordPress Core

Ticket #22027: permalink.patch

File permalink.patch, 1.3 KB (added by enapupe, 14 years ago)
  • wp-admin/options-permalink.php

     
    186186        2 => $prefix . '/%year%/%monthnum%/%postname%/',
    187187        3 => $prefix . '/' . _x( 'archives', 'sample permalink base' ) . '/%post_id%',
    188188        4 => $prefix . '/%postname%/',
     189        5 => $prefix . '/%category%/%postname%/',
    189190);
    190191?>
    191192<h3><?php _e('Common Settings'); ?></h3>
    … …  
    211212                <td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td>
    212213        </tr>
    213214        <tr>
     215                <th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[5]); ?>" class="tog" <?php checked($structures[5], $permalink_structure); ?> /> <?php _e('Post category and name'); ?></label></th>
     216                <td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'sample-category/sample-post', 'sample permalink structure' ) . '/'; ?></code></td>
     217        </tr>
     218        <tr>
    214219                <th>
    215220                        <label><input name="selection" id="custom_selection" type="radio" value="custom" class="tog" <?php checked( !in_array($permalink_structure, $structures) ); ?> />
    216221                        <?php _e('Custom Structure'); ?>