Plugin Directory

Changeset 3371425


Ignore:
Timestamp:
10/01/2025 09:31:46 PM (6 months ago)
Author:
ownerrez
Message:

Update to version 1.2.4 from GitHub

Location:
ownerrez
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ownerrez/tags/1.2.4/ownerrez.php

    r3340609 r3371425  
    1717 * Plugin URI:        https://www.ownerrez.com/support/wordpress
    1818 * Description:       The official WordPress plugin for the OwnerRez API.
    19  * Version:           1.2.3
     19 * Version:           1.2.4
    2020 * Author:            OwnerRez, Inc.
    2121 * Author URI:        https://www.ownerrez.com/
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('OWNERREZ_VERSION', '1.2.3');
     38define('OWNERREZ_VERSION', '1.2.4');
    3939
    4040/**
  • ownerrez/tags/1.2.4/public/class-ownerrez-shortcodes.php

    r3340609 r3371425  
    2424
    2525    /**
     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    /**
    2635     * The ID of this plugin.
    2736     *
     
    172181                            $output = join(", ", $output);
    173182                        }
    174                         else if (is_string($output) && stripos($field, 'description') === false) // === so 0 doesn't match
     183                        else if (is_string($output) && stripos($field, 'description') === false && !in_array($field, self::excludedFields)) // === so 0 doesn't match
    175184                        {
    176185                            $output = $this->camelToTitle($output);
     
    180189                        return "[Unknown field: " . esc_html($field) . ". No such field found for type: " . esc_html($attrs["type"]) . "]";
    181190                }
    182                
     191
    183192                return $output;
    184193            }
  • ownerrez/tags/1.2.4/readme.txt

    r3340609 r3371425  
    33Requires at least: 5.4
    44Tested up to: 6.6.0
    5 Stable tag: 1.2.3
     5Stable tag: 1.2.4
    66License: MIT
    77License URI: https://github.com/ownerrez/orez-wp/blob/master/LICENSE
     
    3232
    3333== 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 =
    3538- Do not attempt to camel-to-title case convert the description fields
    3639
    37 = 1.2.2
     40= 1.2.2 =
    3841- Escape parameters in error messages
    3942
     
    5558- Render numeric shortcode values without a format using default format instead of "[Unknown]"
    5659
    57 = 1.1.16 = 
     60= 1.1.16 =
    5861- Provide clearer error messages during registration.
    5962
  • ownerrez/trunk/ownerrez.php

    r3340609 r3371425  
    1717 * Plugin URI:        https://www.ownerrez.com/support/wordpress
    1818 * Description:       The official WordPress plugin for the OwnerRez API.
    19  * Version:           1.2.3
     19 * Version:           1.2.4
    2020 * Author:            OwnerRez, Inc.
    2121 * Author URI:        https://www.ownerrez.com/
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('OWNERREZ_VERSION', '1.2.3');
     38define('OWNERREZ_VERSION', '1.2.4');
    3939
    4040/**
  • ownerrez/trunk/public/class-ownerrez-shortcodes.php

    r3340609 r3371425  
    2424
    2525    /**
     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    /**
    2635     * The ID of this plugin.
    2736     *
     
    172181                            $output = join(", ", $output);
    173182                        }
    174                         else if (is_string($output) && stripos($field, 'description') === false) // === so 0 doesn't match
     183                        else if (is_string($output) && stripos($field, 'description') === false && !in_array($field, self::excludedFields)) // === so 0 doesn't match
    175184                        {
    176185                            $output = $this->camelToTitle($output);
     
    180189                        return "[Unknown field: " . esc_html($field) . ". No such field found for type: " . esc_html($attrs["type"]) . "]";
    181190                }
    182                
     191
    183192                return $output;
    184193            }
  • ownerrez/trunk/readme.txt

    r3340609 r3371425  
    33Requires at least: 5.4
    44Tested up to: 6.6.0
    5 Stable tag: 1.2.3
     5Stable tag: 1.2.4
    66License: MIT
    77License URI: https://github.com/ownerrez/orez-wp/blob/master/LICENSE
     
    3232
    3333== 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 =
    3538- Do not attempt to camel-to-title case convert the description fields
    3639
    37 = 1.2.2
     40= 1.2.2 =
    3841- Escape parameters in error messages
    3942
     
    5558- Render numeric shortcode values without a format using default format instead of "[Unknown]"
    5659
    57 = 1.1.16 = 
     60= 1.1.16 =
    5861- Provide clearer error messages during registration.
    5962
Note: See TracChangeset for help on using the changeset viewer.