Changeset 1946963
- Timestamp:
- 09/25/2018 07:24:55 PM (8 years ago)
- Location:
- post-state-tags
- Files:
-
- 3 edited
- 2 copied
-
tags/2.0.3 (copied) (copied from post-state-tags/tags/2.0.2)
-
tags/2.0.3/libraries/class.settings-api.php (modified) (1 diff)
-
tags/2.0.3/readme.txt (copied) (copied from post-state-tags/tags/2.0.2/readme.txt) (2 diffs)
-
trunk/libraries/class.settings-api.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-state-tags/tags/2.0.3/libraries/class.settings-api.php
r1938861 r1946963 106 106 if ( isset($section['desc']) && !empty($section['desc']) ) { 107 107 $section['desc'] = '<div class="inside">' . $section['desc'] . '</div>'; 108 $callback = create_function('', 'echo "' . str_replace( '"', '\"', $section['desc'] ) . '";'); 108 $desc = $section['desc']; 109 $callback = function() use ($desc) { 110 echo $desc; 111 }; // semi-colon because this is a captured function 112 109 113 } else if ( isset( $section['callback'] ) ) { 110 114 $callback = $section['callback']; -
post-state-tags/tags/2.0.3/readme.txt
r1941756 r1946963 5 5 Requires at least: 3.8 6 6 Tested up to: 4.9.8 7 Stable tag: 2.0. 27 Stable tag: 2.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 98 98 == Changelog == 99 99 100 = 2.0.3 = 101 * Replaced create_function in Settings API library with anonymous function 102 100 103 = 2.0.2 = 101 104 * Fixed a bug in the migration check for install and version -
post-state-tags/trunk/libraries/class.settings-api.php
r1938863 r1946963 106 106 if ( isset($section['desc']) && !empty($section['desc']) ) { 107 107 $section['desc'] = '<div class="inside">' . $section['desc'] . '</div>'; 108 $callback = create_function('', 'echo "' . str_replace( '"', '\"', $section['desc'] ) . '";'); 108 $desc = $section['desc']; 109 $callback = function() use ($desc) { 110 echo $desc; 111 }; // semi-colon because this is a captured function 112 109 113 } else if ( isset( $section['callback'] ) ) { 110 114 $callback = $section['callback']; -
post-state-tags/trunk/readme.txt
r1941756 r1946963 5 5 Requires at least: 3.8 6 6 Tested up to: 4.9.8 7 Stable tag: 2.0. 27 Stable tag: 2.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 98 98 == Changelog == 99 99 100 = 2.0.3 = 101 * Replaced create_function in Settings API library with anonymous function 102 100 103 = 2.0.2 = 101 104 * Fixed a bug in the migration check for install and version
Note: See TracChangeset
for help on using the changeset viewer.