Changeset 1227 for trunk/wp-admin/options-permalink.php
- Timestamp:
- 05/05/2004 07:34:41 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options-permalink.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-permalink.php
r1203 r1227 26 26 update_option('permalink_structure', $_POST['permalink_structure']); 27 27 $permalink_structure = $_POST['permalink_structure']; 28 29 update_option('category_base', $_POST['category_base']); 30 $category_base = $_POST['category_base']; 28 31 } else { 29 32 $permalink_structure = get_settings('permalink_structure'); 33 $category_base = get_settings('category_base'); 30 34 } 31 35 … … 44 48 <h2><?php _e('Edit Permalink Structure') ?></h2> 45 49 <?php _e('<p>WordPress offers you the ability to create a custom URI structure for your permalinks and archives. The following “tags” are available:</p>')?> 46 <ul> 47 <li><code>%year%</code> --- <?php _e('The year of the post, 4 digits, for example <code>2004</code>') ?> </li> 48 <li><code>%monthnum%</code> --- <?php _e('Month of the year, for example <code>05</code>') ?></li> 49 <li><code>%day% </code>--- <?php _e('Day of the month, for example <code>28</code>') ?></li> 50 <li><code>%postname%</code> --- <?php _e('A sanitized version of the title of the post. So “This Is A Great Post!” becomes “<code>this-is-a-great-post</code>” in the URI') ?> </li> 51 <li><code>%post_id%</code> --- <?php _e('The unique ID # of the post, for example <code>423</code>') ?></li> 52 </ul> 50 51 <dl> 52 <dt><code>%year%</code></dt> 53 <dd> 54 <?php _e('The year of the post, 4 digits, for example <code>2004</code>') ?> 55 </dd> 56 <dt><code>%monthnum%</code></dt> 57 <dd> 58 <?php _e('Month of the year, for example <code>05</code>') ?> 59 </dd> 60 <dt><code>%day%</code></dt> 61 <dd> 62 <?php _e('Day of the month, for example <code>28</code>') ?> 63 </dd> 64 <dt><code>%hour%</code></dt> 65 <dd> 66 <?php _e('Hour of the day, for example <code>15</code>') ?> 67 </dd> 68 <dt><code>%minute%</code></dt> 69 <dd> 70 <?php _e('Minute of the hour, for example <code>43</code>') ?> 71 </dd> 72 <dt><code>%second%</code></dt> 73 <dd> 74 <?php _e('Second of the minute, for example <code>33</code>') ?> 75 </dd> 76 <dt><code>%postname%</code></dt> 77 <dd> 78 <?php _e('A sanitized version of the title of the post. So “This Is A Great Post!” becomes “<code>this-is-a-great-post</code>” in the URI') ?> 79 </dd> 80 <dt><code>%post_id%</code></dt> 81 <dd> 82 <?php _e('The unique ID # of the post, for example <code>423</code>') ?> 83 </dd> 84 </dl> 85 53 86 <?php _e('<p>So for example a value like:</p> 54 87 <p><code>/archives/%year%/%monthnum%/%day%/%postname%/</code> </p> … … 59 92 <p>If you use this option you can ignore the mod_rewrite rules. </p>') ?> 60 93 <form name="form" action="options-permalink.php" method="post"> 61 < ?php _e('<p>Use the template tags above to create a virtual site structure:</p>') ?>94 <p><?php _e('Use the template tags above to create a virtual site structure:') ?></p> 62 95 <p> 63 96 <input name="permalink_structure" type="text" style="width: 98%;" value="<?php echo $permalink_structure; ?>" /> 64 97 </p> 98 <p><?php _e('Enter a path without templates for your categories:') ?> FIXME[THIS WORDING MAKES NO SENSE]</p> 99 <p> 100 <input name="category_base" type="text" style="width: 98%;" value="<?php echo $category_base; ?>" /> 101 </p> 65 102 <p class="submit"> 66 103 <input type="submit" name="submit" value="<?php _e('Update Permalink Structure »') ?>">
Note: See TracChangeset
for help on using the changeset viewer.