extra field for title, used for importing
This commit is contained in:
parent
4d998aefb8
commit
d3827cca14
|
@ -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) {
|
||||||
|
|
|
@ -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')),
|
||||||
|
|
Loading…
Reference in New Issue