Changeset 3371425
- Timestamp:
- 10/01/2025 09:31:46 PM (6 months ago)
- Location:
- ownerrez
- Files:
-
- 6 edited
- 1 copied
-
tags/1.2.4 (copied) (copied from ownerrez/trunk)
-
tags/1.2.4/ownerrez.php (modified) (2 diffs)
-
tags/1.2.4/public/class-ownerrez-shortcodes.php (modified) (3 diffs)
-
tags/1.2.4/readme.txt (modified) (3 diffs)
-
trunk/ownerrez.php (modified) (2 diffs)
-
trunk/public/class-ownerrez-shortcodes.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ownerrez/tags/1.2.4/ownerrez.php
r3340609 r3371425 17 17 * Plugin URI: https://www.ownerrez.com/support/wordpress 18 18 * Description: The official WordPress plugin for the OwnerRez API. 19 * Version: 1.2. 319 * Version: 1.2.4 20 20 * Author: OwnerRez, Inc. 21 21 * Author URI: https://www.ownerrez.com/ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('OWNERREZ_VERSION', '1.2. 3');38 define('OWNERREZ_VERSION', '1.2.4'); 39 39 40 40 /** -
ownerrez/tags/1.2.4/public/class-ownerrez-shortcodes.php
r3340609 r3371425 24 24 25 25 /** 26 * Fields that should not be auto-formatted to title case 27 * 28 * @since 1.2.4 29 * @access private 30 * @var array $excludedFields The fields that should not be auto-formatted to title case. 31 */ 32 const excludedFields = [ "headline" ]; 33 34 /** 26 35 * The ID of this plugin. 27 36 * … … 172 181 $output = join(", ", $output); 173 182 } 174 else if (is_string($output) && stripos($field, 'description') === false ) // === so 0 doesn't match183 else if (is_string($output) && stripos($field, 'description') === false && !in_array($field, self::excludedFields)) // === so 0 doesn't match 175 184 { 176 185 $output = $this->camelToTitle($output); … … 180 189 return "[Unknown field: " . esc_html($field) . ". No such field found for type: " . esc_html($attrs["type"]) . "]"; 181 190 } 182 191 183 192 return $output; 184 193 } -
ownerrez/tags/1.2.4/readme.txt
r3340609 r3371425 3 3 Requires at least: 5.4 4 4 Tested up to: 6.6.0 5 Stable tag: 1.2. 35 Stable tag: 1.2.4 6 6 License: MIT 7 7 License URI: https://github.com/ownerrez/orez-wp/blob/master/LICENSE … … 32 32 33 33 == Changelog == 34 = 1.2.3 34 = 1.2.4 = 35 - Do not attempt to camel-to-title case convert the headline field 36 37 = 1.2.3 = 35 38 - Do not attempt to camel-to-title case convert the description fields 36 39 37 = 1.2.2 40 = 1.2.2 = 38 41 - Escape parameters in error messages 39 42 … … 55 58 - Render numeric shortcode values without a format using default format instead of "[Unknown]" 56 59 57 = 1.1.16 = 60 = 1.1.16 = 58 61 - Provide clearer error messages during registration. 59 62 -
ownerrez/trunk/ownerrez.php
r3340609 r3371425 17 17 * Plugin URI: https://www.ownerrez.com/support/wordpress 18 18 * Description: The official WordPress plugin for the OwnerRez API. 19 * Version: 1.2. 319 * Version: 1.2.4 20 20 * Author: OwnerRez, Inc. 21 21 * Author URI: https://www.ownerrez.com/ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('OWNERREZ_VERSION', '1.2. 3');38 define('OWNERREZ_VERSION', '1.2.4'); 39 39 40 40 /** -
ownerrez/trunk/public/class-ownerrez-shortcodes.php
r3340609 r3371425 24 24 25 25 /** 26 * Fields that should not be auto-formatted to title case 27 * 28 * @since 1.2.4 29 * @access private 30 * @var array $excludedFields The fields that should not be auto-formatted to title case. 31 */ 32 const excludedFields = [ "headline" ]; 33 34 /** 26 35 * The ID of this plugin. 27 36 * … … 172 181 $output = join(", ", $output); 173 182 } 174 else if (is_string($output) && stripos($field, 'description') === false ) // === so 0 doesn't match183 else if (is_string($output) && stripos($field, 'description') === false && !in_array($field, self::excludedFields)) // === so 0 doesn't match 175 184 { 176 185 $output = $this->camelToTitle($output); … … 180 189 return "[Unknown field: " . esc_html($field) . ". No such field found for type: " . esc_html($attrs["type"]) . "]"; 181 190 } 182 191 183 192 return $output; 184 193 } -
ownerrez/trunk/readme.txt
r3340609 r3371425 3 3 Requires at least: 5.4 4 4 Tested up to: 6.6.0 5 Stable tag: 1.2. 35 Stable tag: 1.2.4 6 6 License: MIT 7 7 License URI: https://github.com/ownerrez/orez-wp/blob/master/LICENSE … … 32 32 33 33 == Changelog == 34 = 1.2.3 34 = 1.2.4 = 35 - Do not attempt to camel-to-title case convert the headline field 36 37 = 1.2.3 = 35 38 - Do not attempt to camel-to-title case convert the description fields 36 39 37 = 1.2.2 40 = 1.2.2 = 38 41 - Escape parameters in error messages 39 42 … … 55 58 - Render numeric shortcode values without a format using default format instead of "[Unknown]" 56 59 57 = 1.1.16 = 60 = 1.1.16 = 58 61 - Provide clearer error messages during registration. 59 62
Note: See TracChangeset
for help on using the changeset viewer.