extra field for title, used for importing

This commit is contained in:
John Bintz 2010-02-07 21:42:06 -05:00
parent 4d998aefb8
commit d3827cca14
2 changed files with 2 additions and 3 deletions

View File

@ -167,11 +167,9 @@ class ComicPressBackendFilesystemFactory {
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd
function _replace_wordpress_url($post, $type) { return untrailingslashit(get_option('home')); } function _replace_wordpress_url($post, $type) { return untrailingslashit(get_option('home')); }
function _replace_filename($post, $type) { return $this->_filename; } function _replace_filename($post, $type) { return $this->_filename; }
function _replace_type($post, $type) { return $type; } function _replace_type($post, $type) { return $type; }
function _replace_title($post, $type) { return "*"; }
function _replace_upload_path($post, $type) { return get_option('upload_path'); } function _replace_upload_path($post, $type) { return get_option('upload_path'); }
function _replace_type_folder($post, $type) { function _replace_type_folder($post, $type) {

View File

@ -140,6 +140,7 @@ class ComicPressBackendFilesystemFactoryTest extends PHPUnit_Framework_TestCase
array('%test%/comic/*.jpg', array('/comic/*.jpg')), array('%test%/comic/*.jpg', array('/comic/*.jpg')),
array('%wordpress%/%type%/*.jpg', array('/wordpress/comic/*.jpg')), array('%wordpress%/%type%/*.jpg', array('/wordpress/comic/*.jpg')),
array('%wordpress%/%type-folder%/*.jpg', array('/wordpress/comic-folder/*.jpg')), array('%wordpress%/%type-folder%/*.jpg', array('/wordpress/comic-folder/*.jpg')),
array('%wordpress%/%type-folder%/%title%.jpg', array('/wordpress/comic-folder/*.jpg')),
array('%wordpress%/comic/%date-Y-m-d%*.jpg', array('/wordpress/comic/2009-01-01*.jpg')), array('%wordpress%/comic/%date-Y-m-d%*.jpg', array('/wordpress/comic/2009-01-01*.jpg')),
array('%wordpress%/comic/%date-Ymd%*.jpg', array('/wordpress/comic/20090101*.jpg')), array('%wordpress%/comic/%date-Ymd%*.jpg', array('/wordpress/comic/20090101*.jpg')),
array('%wordpress%/comic/%date-Y%/%date-Y-m-d%*.jpg', array('/wordpress/comic/2009/2009-01-01*.jpg')), array('%wordpress%/comic/%date-Y%/%date-Y-m-d%*.jpg', array('/wordpress/comic/2009/2009-01-01*.jpg')),