Changeset 3062873
- Timestamp:
- 04/02/2024 07:00:45 PM (2 years ago)
- Location:
- tenandtwo-xslt-processor/trunk
- Files:
-
- 7 edited
-
changelog.txt (modified) (2 diffs)
-
includes/shortcode.php (modified) (6 diffs)
-
includes/xsl.php (modified) (1 diff)
-
languages/tenandtwo-xslt-processor.pot (modified) (2 diffs)
-
readme.md (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
tenandtwo-xslt-processor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tenandtwo-xslt-processor/trunk/changelog.txt
r3046647 r3062873 4 4 5 5 6 ## [1.0.3] - 2024-04-02 6 7 ## [1.0.2] - 2024-03-06 7 8 ## [1.0.1] - 2024-03-06 … … 12 13 - readme.txt 13 14 - includes/cli.php : finalize transform_xml(), select_xml(), select_csv() 15 - languages/tenandtwo-xslt-processor.pot 16 - tested with WP 6.5 14 17 15 18 -
tenandtwo-xslt-processor/trunk/includes/shortcode.php
r3045975 r3062873 35 35 if (!shortcode_exists('xslt_transform_xml')) 36 36 { add_shortcode( 'xslt_transform_xml', array('XSLT_Processor_Shortcode', 'xslt_transform_xml') ); } 37 else if (WP_DEBUG)37 elseif (WP_DEBUG) 38 38 { trigger_error(__METHOD__." : shortcode 'xslt_transform_xml' already exists", E_USER_NOTICE); } 39 39 40 40 if (!shortcode_exists('xslt_transform_alias')) 41 41 { add_shortcode( 'xslt_transform_alias', array('XSLT_Processor_Shortcode', 'xslt_transform_xml') ); } 42 else if (WP_DEBUG)42 elseif (WP_DEBUG) 43 43 { trigger_error(__METHOD__." : shortcode 'xslt_transform_alias' already exists", E_USER_NOTICE); } 44 44 } … … 47 47 if (!shortcode_exists('xslt_select_xml')) 48 48 { add_shortcode( 'xslt_select_xml', array('XSLT_Processor_Shortcode', 'xslt_select_xml') ); } 49 else if (WP_DEBUG)49 elseif (WP_DEBUG) 50 50 { trigger_error(__METHOD__." : shortcode 'xslt_select_xml' already exists", E_USER_NOTICE); } 51 51 } … … 54 54 if (!shortcode_exists('xslt_select_csv')) 55 55 { add_shortcode( 'xslt_select_csv', array('XSLT_Processor_Shortcode', 'xslt_select_csv') ); } 56 else if (WP_DEBUG)56 elseif (WP_DEBUG) 57 57 { trigger_error(__METHOD__." : shortcode 'xslt_select_csv' already exists", E_USER_NOTICE); } 58 58 } … … 142 142 if (!empty($url_parts['scheme']) && !empty($url_parts['host'])) { 143 143 $attrs['xml_url'] = $attrs['xml']; 144 } else if (!empty($path_parts['basename']) && !empty($path_parts['extension'])) {144 } elseif (!empty($path_parts['basename']) && !empty($path_parts['extension'])) { 145 145 $attrs['xml_file'] = $url_parts['path']; 146 } else if (is_numeric($attrs['xml'])) {146 } elseif (is_numeric($attrs['xml'])) { 147 147 $attrs['xml_id'] = $attrs['xml']; 148 148 } else { … … 157 157 if (!empty($url_parts['scheme']) && !empty($url_parts['host'])) { 158 158 $attrs['xsl_url'] = $attrs['xsl']; 159 } else if (!empty($path_parts['basename']) && !empty($path_parts['extension'])) {159 } elseif (!empty($path_parts['basename']) && !empty($path_parts['extension'])) { 160 160 $attrs['xsl_file'] = $url_parts['path']; 161 } else if (is_numeric($attrs['xsl'])) {161 } elseif (is_numeric($attrs['xsl'])) { 162 162 $attrs['xsl_id'] = $attrs['xsl']; 163 163 } else { … … 338 338 if (!empty($url_parts['scheme']) && !empty($url_parts['host'])) { 339 339 $attrs['xml_url'] = $attrs['xml']; 340 } else if (!empty($path_parts['basename']) && !empty($path_parts['extension'])) {340 } elseif (!empty($path_parts['basename']) && !empty($path_parts['extension'])) { 341 341 $attrs['xml_file'] = $url_parts['path']; 342 } else if (is_numeric($attrs['xml'])) {342 } elseif (is_numeric($attrs['xml'])) { 343 343 $attrs['xml_id'] = $attrs['xml']; 344 344 } else { -
tenandtwo-xslt-processor/trunk/includes/xsl.php
r3045975 r3062873 185 185 $this->releaseProcessor( $idx, $release_params ); 186 186 187 if (WP_DEBUG )187 if (WP_DEBUG && !empty($outfile)) 188 188 { 189 189 $msg = __METHOD__." : "; -
tenandtwo-xslt-processor/trunk/languages/tenandtwo-xslt-processor.pot
r3046386 r3062873 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Ten&Two XSLT Processor 1.0. 0\n"5 "Project-Id-Version: Ten&Two XSLT Processor 1.0.3\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/tenandtwo-xslt-processor\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 3-05T22:27:03+00:00\n"12 "POT-Creation-Date: 2024-04-02T18:42:16+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" -
tenandtwo-xslt-processor/trunk/readme.md
r3047374 r3062873 1 1 # Ten&Two XSLT Processor 2 2 3 **Contributors:** tenandtwo 4 **Donate link:** 5 **Tags:** xml, xsl, xslt, csv, shortcode 6 **Requires at least:** 5.2 7 **Tested up to:** 6. 48 **Requires PHP:** 7.4 9 **Stable tag:** 1.0. 210 **License:** GPLv2 or later 11 **License URI:** https://www.gnu.org/licenses/gpl-2.0.html 3 **Contributors:** tenandtwo 4 **Donate link:** 5 **Tags:** xml, xsl, xslt, csv, shortcode 6 **Requires at least:** 5.2 7 **Tested up to:** 6.5 8 **Requires PHP:** 7.4 9 **Stable tag:** 1.0.3 10 **License:** GPLv2 or later 11 **License URI:** https://www.gnu.org/licenses/gpl-2.0.html 12 12 13 13 … … 150 150 The XSLT Processor plugin includes a number of useful XSL templates that you can include and use in your own projects. They are grouped into five files. 151 151 152 - **date.xsl** : `date-format`, `date-microtime` 152 - **date.xsl** : `date-format`, `date-microtime` 153 153 - **file.xsl** : `file-exists-local`, `file-exists-remote` 154 154 - **string.xsl** : `string-replace`, `string-upper`, `string-lower`, `string-title-case`, `string-trim`, `string-rtrim`, `string-ltrim`, `string-maxlength`, `string-maxwords`, `string-add-slashes`, `string-urlencode`, `string-strip-tags`, `string-nl2br`, `string-entity-decode`, `string-to-nodeset` … … 189 189 190 190 > "This extension requires the libxml PHP extension. This means passing the **--with-libxml**, or prior to PHP 7.4 the **--enable-libxml**, configuration flag, although this is implicitly accomplished because libxml is enabled by default. 191 > 191 > 192 192 > This extension uses libxslt which can be found at » [http://xmlsoft.org/XSLT/](http://xmlsoft.org/XSLT/). libxslt version 1.1.0 or greater is required." 193 193 -
tenandtwo-xslt-processor/trunk/readme.txt
r3047374 r3062873 4 4 Tags: xml, xsl, xslt, csv, shortcode 5 5 Requires at least: 5.2 6 Tested up to: 6. 46 Tested up to: 6.5 7 7 Requires PHP: 7.4 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
tenandtwo-xslt-processor/trunk/tenandtwo-xslt-processor.php
r3046647 r3062873 13 13 * Plugin URI: https://wordpress.org/plugins/tenandtwo-xslt-processor/ 14 14 * Description: Transform and display XML from local and remote sources using PHP's XSL extension. 15 * Version: 1.0. 215 * Version: 1.0.3 16 16 * Requires PHP: 7.4 17 17 * Requires at least: 5.2
Note: See TracChangeset
for help on using the changeset viewer.