Changeset 1958385
- Timestamp:
- 10/18/2018 12:20:06 AM (7 years ago)
- Location:
- terms-before-download/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
terms-before-download.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
terms-before-download/trunk/readme.txt
r981678 r1958385 3 3 Tags: download,terms,eula,license 4 4 Requires at least: 3.5 5 Tested up to: 4. 05 Tested up to: 4.9.8 6 6 Stable tag: trunk 7 7 License: GPL2 … … 68 68 == Changelog == 69 69 70 = 1.0.1 = 71 * Added support for nested shortcodes on the terms page 72 70 73 = 1.0.0 = 71 74 * Initial release -
terms-before-download/trunk/terms-before-download.php
r939315 r1958385 2 2 /** 3 3 * Plugin Name: Terms Before Download 4 * Plugin URI: http ://helgeklein.com/free-tools/terms-download/4 * Plugin URI: https://helgeklein.com/free-tools/terms-download/ 5 5 * Description: Shows a popup dialog with terms and conditions (EULA) that must be accepted before a file can be downloaded 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Helge Klein 8 * Author URI: http ://helgeklein.com8 * Author URI: https://helgeklein.com 9 9 * License: GPL2 10 10 */ … … 64 64 $terms_page = get_post ($terms_page_id, "OBJECT", "display"); 65 65 66 // Get the terms page content 67 $terms_page_content = $terms_page->post_content;66 // Get the terms page content, allowing for nested shortcodes 67 $terms_page_content = do_shortcode ($terms_page->post_content); 68 68 // Convert double line breaks into paragraphs, replacing \n with <br /> to the string 69 69 $terms_page_content = wpautop($terms_page_content);
Note: See TracChangeset
for help on using the changeset viewer.