Shortcode filter is bad
-
Hi,
Please make the pro/lite version shortcode filter overwritable:this:
if (!Empty($attributes['id']) && Post::isGallery($attributes['id'])){ $attributes['columns'] = Gallery_Post_Type::getMeta('columns', Null, $attributes['id']); $attributes['size'] = Gallery_Post_Type::getMeta('image_size', Null, $attributes['id']); }
should be:
if (!Empty($attributes['id']) && Post::isGallery($attributes['id'])){ $attributes['columns'] = $attributes['columns'] ? $attributes['columns'] : Gallery_Post_Type::getMeta('columns', Null, $attributes['id']); $attributes['size'] = $attributes['size'] ? $attributes['size'] : Gallery_Post_Type::getMeta('image_size', Null, $attributes['id']); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Shortcode filter is bad’ is closed to new replies.