Plugin Directory

Changeset 2518948


Ignore:
Timestamp:
04/21/2021 09:42:14 AM (5 years ago)
Author:
floriansimeth
Message:

Update to 2.24.0

Location:
snip-structured-data
Files:
2 deleted
4 edited
37 copied

Legend:

Unmodified
Added
Removed
  • snip-structured-data/tags/2.24.0/classes/model/fields.php

    r2494037 r2518948  
    365365         * @returns {array} An array of options.
    366366         */
    367         return apply_filters(
     367        $options = apply_filters(
    368368            'wpbuddy/rich_snippets/fields/internal_subselect/options',
    369369            $options,
     
    372372            $selected
    373373        );
     374
     375        uasort( $options, function ( $a, $b ) {
     376            return strnatcmp( trim( strip_tags( $a ) ), strip_tags( trim( $b ) ) );
     377        } );
     378
     379        return $options;
    374380    }
    375381
     
    870876        ];
    871877
     878        $textfield_meta = [
     879            'id'          => 'noop_textfield_acf',
     880            'label'       => esc_html_x( 'ACF field (Pro version only)', 'subselect field', 'rich-snippets-schema' ),
     881            'description' => __( 'Enter the name of the ACF field.', 'rich-snippets-schema' ),
     882            'active'      => false,
     883        ];
     884
    872885        $textfield_termmeta = [
    873886            'id'          => 'noop_textfield_termmeta',
  • snip-structured-data/tags/2.24.0/classes/model/snippets.php

    r2494037 r2518948  
    429429                    $a_html
    430430                );
     431
     432                # Re-transform to "->"
     433                # @see https://rich-snippets.io/how-to-work-with-custom-fields/#using-data-from-objects
     434                $p_value = str_replace( '->', '->', $p_value );
    431435            } elseif ( false !== stripos( $p_subfield, 'misc_rating_5_star' ) ) {
    432436                $p_value = absint( $property_values['rating5'] );
  • snip-structured-data/tags/2.24.0/readme.txt

    r2494037 r2518948  
    11=== snip - Structured Data & Schema ===
    2 Stable tag: 2.23.1
     2Stable tag: 2.24.0
    33Contributors: floriansimeth
    44Donate link: https://rich-snippets.io
  • snip-structured-data/tags/2.24.0/rich-snippets-wordpress-plugin.php

    r2494037 r2518948  
    44Plugin URI: https://rich-snippets.io?pk_campaign=snip-plugin-uri
    55Description: Allows to create Rich Snippets and general structured data readable by search engines.
    6 Version: 2.23.1
     6Version: 2.24.0
    77Author: floriansimeth
    88Author URI: https://florian-simeth.de?pk_campaign=snip-author-uri
  • snip-structured-data/trunk/classes/model/fields.php

    r2494037 r2518948  
    365365         * @returns {array} An array of options.
    366366         */
    367         return apply_filters(
     367        $options = apply_filters(
    368368            'wpbuddy/rich_snippets/fields/internal_subselect/options',
    369369            $options,
     
    372372            $selected
    373373        );
     374
     375        uasort( $options, function ( $a, $b ) {
     376            return strnatcmp( trim( strip_tags( $a ) ), strip_tags( trim( $b ) ) );
     377        } );
     378
     379        return $options;
    374380    }
    375381
     
    870876        ];
    871877
     878        $textfield_meta = [
     879            'id'          => 'noop_textfield_acf',
     880            'label'       => esc_html_x( 'ACF field (Pro version only)', 'subselect field', 'rich-snippets-schema' ),
     881            'description' => __( 'Enter the name of the ACF field.', 'rich-snippets-schema' ),
     882            'active'      => false,
     883        ];
     884
    872885        $textfield_termmeta = [
    873886            'id'          => 'noop_textfield_termmeta',
  • snip-structured-data/trunk/classes/model/snippets.php

    r2494037 r2518948  
    429429                    $a_html
    430430                );
     431
     432                # Re-transform to "->"
     433                # @see https://rich-snippets.io/how-to-work-with-custom-fields/#using-data-from-objects
     434                $p_value = str_replace( '->', '->', $p_value );
    431435            } elseif ( false !== stripos( $p_subfield, 'misc_rating_5_star' ) ) {
    432436                $p_value = absint( $property_values['rating5'] );
  • snip-structured-data/trunk/readme.txt

    r2494037 r2518948  
    11=== snip - Structured Data & Schema ===
    2 Stable tag: 2.23.1
     2Stable tag: 2.24.0
    33Contributors: floriansimeth
    44Donate link: https://rich-snippets.io
  • snip-structured-data/trunk/rich-snippets-wordpress-plugin.php

    r2494037 r2518948  
    44Plugin URI: https://rich-snippets.io?pk_campaign=snip-plugin-uri
    55Description: Allows to create Rich Snippets and general structured data readable by search engines.
    6 Version: 2.23.1
     6Version: 2.24.0
    77Author: floriansimeth
    88Author URI: https://florian-simeth.de?pk_campaign=snip-author-uri
Note: See TracChangeset for help on using the changeset viewer.