Changeset 442657
- Timestamp:
- 09/23/2011 05:04:51 PM (15 years ago)
- Location:
- auto-url/trunk
- Files:
-
- 2 edited
-
auto-url.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
auto-url/trunk/auto-url.php
r439221 r442657 5 5 Plugin URI: http://www.bunchacode.com/programming/auto-url 6 6 Description: generates customized permalinks according to post types, categories and tags 7 Version: 0.8 7 Version: 0.8.5 8 8 Author: FunkyDude 9 9 Author URI: http://www.bunchacode.com … … 185 185 foreach ($patternGroups as $type => $group) { 186 186 foreach ($group as $i => $p) { 187 if ($type == 'type' && $i == 'media') {188 if (!strstr($p, '%id%')) {189 return array(190 'result' => false,191 'message' => 'Post type media must contain %id% token in pattern.'192 );193 }194 }195 187 if (strlen(trim($p))) { 188 if ($type == 'type' && $i == 'media') { 189 if (!strstr($p, '%id%')) { 190 return array( 191 'result' => false, 192 'message' => 'Post type media must contain %id% token in pattern.' 193 ); 194 } 195 } 196 196 197 if (!strstr($p, '%id%') && !strstr($p, '%name%') && !strstr($p, '%namepath%')) { 197 198 return array( … … 494 495 495 496 if ($p->post_type == 'page') { 496 if ($i = array_search('%name path%', $patterns)) {497 if ($i = array_search('%name%', $patterns)) { 497 498 $values[$i] = auto_url_get_page_path($p->post_id); 498 499 } -
auto-url/trunk/readme.txt
r439221 r442657 4 4 Requires at least: 3.1 5 5 Tested up to: 3.2.1 6 Stable tag: 0.8 6 Stable tag: 0.8.5 7 7 8 8 Auto URL generates customized permalinks according to post types, categories and tags
Note: See TracChangeset
for help on using the changeset viewer.