AesopInteractive / lasso

Code Repository for Editus (formerly Lasso) Commercial Plugin
https://edituswp.com
GNU General Public License v2.0
147 stars 25 forks source link

Preserve shortcodes of other plugins #108

Closed rhurling closed 8 years ago

rhurling commented 8 years ago

With this PR Lasso preserves most shortcodes of other plugins (I'm pretty sure it won't work with shortcodes inside html tags). See #107 for details

Sample Shortcode Plugin I used to make sure this PR works:

<?php
/*
Plugin Name: Current Time Shortcode
Author: Rouven Hurling
Version: 0.1
License: GPL
*/
function current_time_shortcode() {
    return date( 'H:i:s' );
}
add_shortcode('current_time', 'current_time_shortcode');

function hello_shortcode($attrs, $content = '') {
    return 'Hello, ' . $content;
}
add_shortcode('hello', 'hello_shortcode');
rhurling commented 8 years ago

Ah... This PR is probably against the wrong branch...

michaelbeil commented 8 years ago

PR against master is fine for now. We will take a closer look soon. Thanks much @rhurling!