Plugin Directory

Changeset 1921914


Ignore:
Timestamp:
08/09/2018 12:54:18 AM (8 years ago)
Author:
minosystem
Message:

タグに全角スペースが入っていた場合一つの文字となっていた不具合を修正

Location:
article-importer/trunk
Files:
3 edited

Legend:

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

    r1915062 r1921914  
    66Author: kijitsuku
    77Author URI: https://kijitsuku.work/
    8 Version: 1.1
     8Version: 1.2
    99License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    1010*/
     
    8888                $ArticleDate = $csvData[6];
    8989                $TemplateInfo = $csvData[7];
     90
     91                $Tags = mb_convert_kana($Tags, 's');
     92                $allTags = explode( " ", $Tags );
    9093               
    9194                $post_categories = term_exists($Category, 'category');
     
    147150                  'post_title'            => $Title,
    148151                  'post_name'             => $postname,
    149                   'tags_input'             => $Tags,
     152                  'tags_input'             => $allTags,
    150153                );
    151154               
  • article-importer/trunk/readme.txt

    r1915063 r1921914  
    55Requires at least: 4.9
    66Tested up to: 4.9
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838== Changelog ==
    3939
     40= 1.2 =
     41全角スペースがあった場合タグが一つの文字で認識されていたため修正
     42
    4043= 1.1 =
    4144Column 'Remars' add
  • article-importer/trunk/sample/articles_sample.csv

    r1915061 r1921914  
    1 Sample Title,,,Categorys,"Tag1, Tag2, Tag3",Remarks,2020-07-26 16:37,<p>ようこそ!</p><h3>{{{タイトル}}}</h3><p>記事のカテゴリ:{{{カテゴリ}}}</p><p>記事のタグ:{{{タグ}}}</p>{{{備考}}}
     1Sample Title,,,Categorys,"Tag1 Tag2 Tag3",Remarks,2020-07-26 16:37,<p>ようこそ!</p><h3>{{{タイトル}}}</h3><p>記事のカテゴリ:{{{カテゴリ}}}</p><p>記事のタグ:{{{タグ}}}</p>{{{備考}}}
Note: See TracChangeset for help on using the changeset viewer.