WordPress.org

Plugin Directory

Changeset 279921


Ignore:
Timestamp:
08/23/10 22:05:46 (4 years ago)
Author:
ryan
Message:

Use BAENAME for post slug. Props Akinori MUSHA. see #WP11422

Location:
movabletype-importer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • movabletype-importer/trunk/movabletype-importer.php

    r247848 r279921  
    66Author: wordpressdotorg 
    77Author URI: http://wordpress.org/ 
    8 Version: 0.2 
    9 Stable tag: 0.2 
     8Version: 0.3 
     9Stable tag: 0.3 
    1010License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1111*/ 
     
    446446                $blog = trim( substr($line, strlen("BLOG NAME:")) ); 
    447447                $ping->comment_author = $blog; 
     448            } else if ( 0 === strpos($line, "BASENAME:") ) { 
     449                $post_name = trim( substr($line, strlen("BASENAME:")) ); 
     450                $post->post_name = $post_name; 
    448451            } else { 
    449452                // Processing multi-line field, check context. 
  • movabletype-importer/trunk/readme.txt

    r243546 r279921  
    2727= 0.1 = 
    2828* Initial release 
     29 
     30= 0.3 = 
     31* Use BASENAME, if present, as the slug for the post. 
     32 
     33== Upgrade Notice == 
     34 
     35= 0.3 = 
     36Use BASENAME for post slugs. 
Note: See TracChangeset for help on using the changeset viewer.