WordPress.org

Make WordPress Core

Ticket #20172: options-permalink.php.patch

File options-permalink.php.patch, 1.2 KB (added by imshashank, 2 years ago)

Permalink Patch

  • options-permalink.php

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