Plugin Directory

Changeset 442657


Ignore:
Timestamp:
09/23/2011 05:04:51 PM (15 years ago)
Author:
dexxaye
Message:

0.8.5 Commit

Location:
auto-url/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • auto-url/trunk/auto-url.php

    r439221 r442657  
    55  Plugin URI: http://www.bunchacode.com/programming/auto-url
    66  Description: generates customized permalinks according to post types, categories and tags
    7   Version: 0.8
     7  Version: 0.8.5
    88  Author: FunkyDude
    99  Author URI: http://www.bunchacode.com
     
    185185    foreach ($patternGroups as $type => $group) {
    186186        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             }
    195187            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
    196197                if (!strstr($p, '%id%') && !strstr($p, '%name%') && !strstr($p, '%namepath%')) {
    197198                    return array(
     
    494495
    495496    if ($p->post_type == 'page') {
    496         if ($i = array_search('%namepath%', $patterns)) {
     497        if ($i = array_search('%name%', $patterns)) {
    497498            $values[$i] = auto_url_get_page_path($p->post_id);
    498499        }
  • auto-url/trunk/readme.txt

    r439221 r442657  
    44Requires at least: 3.1
    55Tested up to: 3.2.1
    6 Stable tag: 0.8
     6Stable tag: 0.8.5
    77
    88Auto URL generates customized permalinks according to post types, categories and tags
Note: See TracChangeset for help on using the changeset viewer.