WordPress.org

Make WordPress Core

Ticket #2001: options-permalink.php.2.diff

File options-permalink.php.2.diff, 2.3 KB (added by thechris, 10 years ago)

Updated patch

  • wp-admin/options-permalink.php

     
    143143checked="checked" 
    144144<?php } ?> 
    145145 />  
    146 <?php _e('Custom, specify below'); ?>    
     146<?php _e('Custom, specify below'); ?><br />  
     147  <div class="wrap"> 
     148    <p> 
     149    <?php _e('<strong>About Custom Permalinks:</strong><br />A permalink structure is made up of a number of variables such as %year%, %monthnum%, %day, %postname%. Your structure can be made up in any way you choose, however these rules should be followed for correct operation.<br /><br />&raquo; The structure should begin with a /<br />&raquo; Each variable should be seperated by a /<br />&raquo; A permalink should end with %post_id% or %postname%, this makes sure that the permalink navigates to individul posts.<br /><br />'); ?> 
     150    <?php _e('A <a href="http://codex.wordpress.org/Using_Permalinks">large number of tags</a> are avaliable and the following examples should give you some ideas.<br /><br />&raquo; /%post_id%/ will gives URLs such as "' . get_settings('home') . $prefix . '/234"<br />&raquo; /%author%/%category%/%postname%/ will gives URLs such as "' . get_settings('home') . $prefix . '/' . 'some-author/interesting-catagory/sample-post/' . '"<br />&raquo; /%author%/%year%/%monthnum%/%day%/%post_id%/ will gives URLs such as "' . get_settings('home') . $prefix . '/some-author/' . date('Y') . '/' . date('m') . '/' . date('d') . '/342/"'); ?> 
     151    </p> 
     152  </div> 
    147153</label> 
    148154<br /> 
    149155</p> 
    150156<p id="customstructure"><?php _e('Custom structure'); ?>: <input name="permalink_structure" id="permalink_structure" type="text" class="code" style="width: 60%;" value="<?php echo $permalink_structure; ?>" size="50" /></p> 
    151157 
     158 
    152159<h3><?php _e('Optional'); ?></h3> 
    153160<?php if ($is_apache) : ?> 
    154161        <p><?php _e('If you like, you may enter a custom prefix for your category URIs here. For example, <code>/taxonomy/tags</code> would make your category links like <code>http://example.org/taxonomy/tags/uncategorized/</code>. If you leave this blank the default will be used.') ?></p> 
     
    174181 
    175182</div> 
    176183 
    177 <?php require('./admin-footer.php'); ?> 
    178  No newline at end of file 
     184<?php require('./admin-footer.php'); ?>