WordPress.org

Plugin Directory

Changeset 1999073


Ignore:
Timestamp:
12/20/2018 07:24:07 PM (3 months ago)
Author:
pglewis
Message:

committed with grunt-push-svn

Location:
pods/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • pods/trunk/classes/PodsAPI.php

    r1986423 r1999073  
    37073707                        }
    37083708                    }
    3709                    
     3709
    37103710                    $pick_limit = (int) pods_var_raw( 'pick_limit', $options, 0 );
    37113711
     
    82408240            $object_type = 'post_type';
    82418241            $object      = 'post';
    8242         } elseif ( empty( $object ) && in_array( $object_type, array( 'user', 'media', 'comment' ) ) ) {
     8242        } elseif ( empty( $object ) && in_array( $object_type, array( 'user', 'media', 'comment' ), true ) ) {
    82438243            $object = $object_type;
    82448244        }
  • pods/trunk/classes/PodsInit.php

    r1986423 r1999073  
    12841284            $labels['item_reverted_to_draft']   = pods_v( 'item_reverted_to_draft', $labels, sprintf( __( '%s reverted to draft', 'pods'), $singular_label ), true );
    12851285            $labels['item_scheduled']           = pods_v( 'item_scheduled', $labels, sprintf( __( '%s scheduled', 'pods' ), $singular_label ), true );
    1286             $labels['item_updated']             = pods_v( 'item_updated', $labels, sprintf( __( '%s updatedrrrr', 'pods' ), $singular_label ), true );
     1286            $labels['item_updated']             = pods_v( 'item_updated', $labels, sprintf( __( '%s updated', 'pods' ), $singular_label ), true );
    12871287        } elseif ( 'taxonomy' === $type ) {
    12881288            $labels['menu_name']                  = pods_v( 'menu_name', $labels, $label, true );
  • pods/trunk/classes/fields/currency.php

    r1888320 r1999073  
    378378
    379379        $default_currencies = array(
    380             'aud'  => array(
     380            'aud'     => array(
    381381                'label'  => 'AUD',
    382382                'name'   => __( 'Australian Dollar', 'pods' ),
     
    384384                'entity' => '$',
    385385            ),
    386             'brl'  => array(
     386            'brl'     => array(
    387387                'label'  => 'BRL',
    388388                'name'   => __( 'Brazilian Real', 'pods' ),
     
    390390                'entity' => 'R$',
    391391            ),
    392             'cad'  => array(
     392            'gbp'     => array(
     393                'label'  => 'GBP',
     394                'name'   => __( 'British Pound', 'pods' ),
     395                'sign'   => '£',
     396                'entity' => '£',
     397            ),
     398            'cad'     => array(
    393399                'label'  => 'CAD',
    394400                'name'   => __( 'Canadian Dollar', 'pods' ),
     
    396402                'entity' => '$',
    397403            ),
    398             'chf'  => array(
     404            'cny'     => array(
     405                'label'  => 'CNY',
     406                'name'   => __( 'Chinese Yen (¥)', 'pods' ),
     407                'sign'   => '¥',
     408                'entity' => '¥',
     409            ),
     410            'cny2'    => array(
     411                'label'  => 'CNY',
     412                'name'   => __( 'Chinese Yuan (元)', 'pods' ),
     413                'sign'   => '元',
     414                'entity' => '元',
     415            ),
     416            'czk'     => array(
     417                'label'  => 'CZK',
     418                'name'   => __( 'Czech Koruna', 'pods' ),
     419                'sign'   => 'Kč',
     420                'entity' => 'Kč',
     421            ),
     422            'dkk'     => array(
     423                'label'  => 'DKK',
     424                'name'   => __( 'Danish Krone', 'pods' ),
     425                'sign'   => 'kr.',
     426                'entity' => 'kr.',
     427            ),
     428            'euro'    => array(
     429                'label'  => 'EUR',
     430                'name'   => __( 'Euro', 'pods' ),
     431                'sign'   => '€',
     432                'entity' => '€',
     433            ),
     434            'hkd'     => array(
     435                'label'  => 'HKD',
     436                'name'   => __( 'Hong Kong Dollar', 'pods' ),
     437                'sign'   => '$',
     438                'entity' => '$',
     439            ),
     440            'huf'     => array(
     441                'label'  => 'HUF',
     442                'name'   => __( 'Hungarian Forint', 'pods' ),
     443                'sign'   => 'Ft',
     444                'entity' => 'Ft',
     445            ),
     446            'inr'     => array(
     447                'label'  => 'INR',
     448                'name'   => __( 'Indian Rupee', 'pods' ),
     449                'sign'   => '₹',
     450                'entity' => '₹',
     451            ),
     452            'idr'     => array(
     453                'label'  => 'IDR',
     454                'name'   => __( 'Indonesian Rupiah', 'pods' ),
     455                'sign'   => 'Rp',
     456                'entity' => 'Rp',
     457            ),
     458            'ils'     => array(
     459                'label'  => 'ILS',
     460                'name'   => __( 'Israeli New Sheqel', 'pods' ),
     461                'sign'   => '₪',
     462                'entity' => '₪',
     463            ),
     464            'jpy'     => array(
     465                'label'  => 'JPY',
     466                'name'   => __( 'Japanese Yen', 'pods' ),
     467                'sign'   => '¥',
     468                'entity' => '¥',
     469            ),
     470            'krw'     => array(
     471                'label'  => 'KRW',
     472                'name'   => __( 'Korean Won', 'pods' ),
     473                'sign'   => '₩',
     474                'entity' => '₩',
     475            ),
     476            'myr'     => array(
     477                'label'  => 'MYR',
     478                'name'   => __( 'Malaysian Ringgit', 'pods' ),
     479                'sign'   => 'MR',
     480                'entity' => 'MR',
     481            ),
     482            'mxn'     => array(
     483                'label'  => 'MXN',
     484                'name'   => __( 'Mexican Peso', 'pods' ),
     485                'sign'   => '$',
     486                'entity' => '$',
     487            ),
     488            'nzd'     => array(
     489                'label'  => 'NZD',
     490                'name'   => __( 'New Zealand Dollar', 'pods' ),
     491                'sign'   => '$',
     492                'entity' => '$',
     493            ),
     494            'nok'     => array(
     495                'label'  => 'NOK',
     496                'name'   => __( 'Norwegian Krone', 'pods' ),
     497                'sign'   => 'kr',
     498                'entity' => 'kr',
     499            ),
     500            'php'     => array(
     501                'label'  => 'PHP',
     502                'name'   => __( 'Philippine Peso', 'pods' ),
     503                'sign'   => '₱',
     504                'entity' => '₱',
     505            ),
     506            'pln'     => array(
     507                'label'  => 'PLN',
     508                'name'   => __( 'Polish Złoty', 'pods' ),
     509                'sign'   => 'zł',
     510                'entity' => 'zł',
     511            ),
     512            'rub'     => array(
     513                'label'  => 'RUB',
     514                'name'   => __( 'Russian Ruble', 'pods' ),
     515                'sign'   => '₽',
     516                'entity' => '₽',
     517            ),
     518            'sek'     => array(
     519                'label'  => 'SEK',
     520                'name'   => __( 'Swedish Krona', 'pods' ),
     521                'sign'   => 'kr',
     522                'entity' => 'kr',
     523            ),
     524            'sgd'     => array(
     525                'label'  => 'SGD',
     526                'name'   => __( 'Singapore Dollar', 'pods' ),
     527                'sign'   => '$',
     528                'entity' => '$',
     529            ),
     530            'zar'     => array(
     531                'label'  => 'ZAR',
     532                'name'   => __( 'South African Rand', 'pods' ),
     533                'sign'   => 'R',
     534                'entity' => 'R',
     535            ),
     536            'chf'     => array(
    399537                'label'  => 'CHF',
    400538                'name'   => __( 'Swiss Franc', 'pods' ),
     
    402540                'entity' => 'Fr',
    403541            ),
    404             'cny'  => array(
    405                 'label'  => 'CNY',
    406                 'name'   => __( 'Chinese Yuan', 'pods' ),
    407                 'sign'   => '¥',
    408                 'entity' => '¥',
    409             ),
    410             'cny2' => array(
    411                 'label'  => 'CNY',
    412                 'name'   => __( 'Chinese Yuan', 'pods' ),
    413                 'sign'   => '元',
    414                 'entity' => '元',
    415             ),
    416             'czk'  => array(
    417                 'label'  => 'CZK',
    418                 'name'   => __( 'Czech Koruna', 'pods' ),
    419                 'sign'   => 'Kč',
    420                 'entity' => 'Kč',
    421             ),
    422             'dkk'  => array(
    423                 'label'  => 'DKK',
    424                 'name'   => __( 'Danish Krone', 'pods' ),
    425                 'sign'   => 'kr.',
    426                 'entity' => 'kr.',
    427             ),
    428             'euro' => array(
    429                 'label'  => 'EUR',
    430                 'name'   => __( 'Euro', 'pods' ),
    431                 'sign'   => '€',
    432                 'entity' => '€',
    433             ),
    434             'gbp'  => array(
    435                 'label'  => 'GBP',
    436                 'name'   => __( 'British Pound', 'pods' ),
    437                 'sign'   => '£',
    438                 'entity' => '£',
    439             ),
    440             'hkd'  => array(
    441                 'label'  => 'HKD',
    442                 'name'   => __( 'Hong Kong Dollar', 'pods' ),
    443                 'sign'   => '$',
    444                 'entity' => '$',
    445             ),
    446             'huf'  => array(
    447                 'label'  => 'HUF',
    448                 'name'   => __( 'Hungarian Forint', 'pods' ),
    449                 'sign'   => 'Ft',
    450                 'entity' => 'Ft',
    451             ),
    452             'ils'  => array(
    453                 'label'  => 'ILS',
    454                 'name'   => __( 'Israeli New Sheqel', 'pods' ),
    455                 'sign'   => '₪',
    456                 'entity' => '₪',
    457             ),
    458             'jpy'  => array(
    459                 'label'  => 'JPY',
    460                 'name'   => __( 'Japanese Yen', 'pods' ),
    461                 'sign'   => '¥',
    462                 'entity' => '¥',
    463             ),
    464             'krw'  => array(
    465                 'label'  => 'KRW',
    466                 'name'   => __( 'Korean Won', 'pods' ),
    467                 'sign'   => '₩',
    468                 'entity' => '₩',
    469             ),
    470             'myr'  => array(
    471                 'label'  => 'MYR',
    472                 'name'   => __( 'Malaysian Ringgit', 'pods' ),
    473                 'sign'   => 'MR',
    474                 'entity' => 'MR',
    475             ),
    476             'mxn'  => array(
    477                 'label'  => 'MXN',
    478                 'name'   => __( 'Mexican Peso', 'pods' ),
    479                 'sign'   => '$',
    480                 'entity' => '$',
    481             ),
    482             'nok'  => array(
    483                 'label'  => 'NOK',
    484                 'name'   => __( 'Norwegian Krone', 'pods' ),
    485                 'sign'   => 'kr',
    486                 'entity' => 'kr',
    487             ),
    488             'nzd'  => array(
    489                 'label'  => 'NZD',
    490                 'name'   => __( 'New Zealand Dollar', 'pods' ),
    491                 'sign'   => '$',
    492                 'entity' => '$',
    493             ),
    494             'php'  => array(
    495                 'label'  => 'PHP',
    496                 'name'   => __( 'Philippine Peso', 'pods' ),
    497                 'sign'   => '₱',
    498                 'entity' => '₱',
    499             ),
    500             'pln'  => array(
    501                 'label'  => 'PLN',
    502                 'name'   => __( 'Polish Złoty', 'pods' ),
    503                 'sign'   => 'zł',
    504                 'entity' => 'zł',
    505             ),
    506             'rub'  => array(
    507                 'label'  => 'RUB',
    508                 'name'   => __( 'Russian Ruble', 'pods' ),
    509                 'sign'   => '₽',
    510                 'entity' => '₽',
    511             ),
    512             'sek'  => array(
    513                 'label'  => 'SEK',
    514                 'name'   => __( 'Swedish Krona', 'pods' ),
    515                 'sign'   => 'kr',
    516                 'entity' => 'kr',
    517             ),
    518             'sgd'  => array(
    519                 'label'  => 'SGD',
    520                 'name'   => __( 'Singapore Dollar', 'pods' ),
    521                 'sign'   => '$',
    522                 'entity' => '$',
    523             ),
    524             'thb'  => array(
     542            'twd'     => array(
     543                'label'  => 'TWD',
     544                'name'   => __( 'Taiwan New Dollar', 'pods' ),
     545                'sign'   => '$',
     546                'entity' => '$',
     547            ),
     548            'thb'     => array(
    525549                'label'  => 'THB',
    526550                'name'   => __( 'Thai Baht', 'pods' ),
     
    528552                'entity' => '฿',
    529553            ),
    530             'trl'  => array(
     554            'trl'     => array(
    531555                'label'  => 'TRL',
    532556                'name'   => __( 'Turkish Lira', 'pods' ),
     
    534558                'entity' => '₺',
    535559            ),
    536             'twd'  => array(
    537                 'label'  => 'TWD',
    538                 'name'   => __( 'Taiwan New Dollar', 'pods' ),
    539                 'sign'   => '$',
    540                 'entity' => '$',
    541             ),
    542             'usd'  => array(
     560            'usd'     => array(
    543561                'label'  => 'USD',
    544562                'name'   => __( 'US Dollar', 'pods' ),
     
    546564                'entity' => '$',
    547565            ),
    548             'vnd'  => array(
     566            'usdcent' => array(
     567                'label'  => 'USDCENT',
     568                'name'   => __( 'US Dollar Cent', 'pods' ),
     569                'sign'   => '¢',
     570                'entity' => '¢',
     571            ),
     572            'vnd'     => array(
    549573                'label'  => 'VND',
    550574                'name'   => __( 'Vietnamese Dong', 'pods' ),
    551575                'sign'   => '₫',
    552576                'entity' => '₫',
    553             ),
    554             'zar'  => array(
    555                 'label'  => 'ZAR',
    556                 'name'   => __( 'South African Rand', 'pods' ),
    557                 'sign'   => 'R',
    558                 'entity' => 'R',
    559             ),
    560             'inr'  => array(
    561                 'label'  => 'INR',
    562                 'name'   => __( 'Indian Rupee', 'pods' ),
    563                 'sign'   => '₹',
    564                 'entity' => '₹',
    565577            ),
    566578        );
  • pods/trunk/includes/data.php

    r1986423 r1999073  
    16671667                $table       = null;
    16681668
    1669                 if ( ! empty( $pick_object ) && ! empty( $pick_val ) ) {
     1669                if ( ! empty( $pick_object ) && ( ! empty( $pick_val ) || in_array( $pick_object, array( 'user', 'media', 'comment' ), true ) ) ) {
    16701670                    $table = pods_api()->get_table_info(
    16711671                        $pick_object,
     
    17011701
    17021702    $last = '';
     1703
     1704    // If something happens with table info, and this is a single select relationship, avoid letting user pass through.
     1705    if ( isset( $value['user_pass'] ) ) {
     1706        unset( $value['user_pass'] );
     1707
     1708        // Since we know this is a single select, just pass display name through as the fallback.
     1709        if ( isset( $value['display_name'] ) ) {
     1710            $value = array( $value['display_name'] );
     1711        }
     1712    }
    17031713
    17041714    $original_value = $value;
  • pods/trunk/init.php

    r1988315 r1999073  
    44Plugin URI: https://pods.io/
    55Description: Pods is a framework for creating, managing, and deploying customized content types and fields
    6 Version: 2.7.11
     6Version: 2.7.12
    77Author: Pods Framework Team
    88Author URI: https://pods.io/about/
     
    3737} else {
    3838    // Current version
    39     define( 'PODS_VERSION', '2.7.11' );
     39    define( 'PODS_VERSION', '2.7.12' );
    4040
    4141    // Version tracking between DB updates themselves
  • pods/trunk/readme.txt

    r1988315 r1999073  
    66Tested up to: 5.0
    77Requires PHP: 5.3
    8 Stable tag: 2.7.11
     8Stable tag: 2.7.12
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    179179
    180180== Changelog ==
     181
     182= 2.7.12 December 20th 2018 =
     183
     184**Bug Fixes**
     185
     186Fixed: Serial comma display works again for Users, Comments, and Media relationships when used in Pods::display() and magic tag templating without specifying the object field you want to display, #5251 (@sc0ttkclark)
     187
     188**Enhancements**
     189
     190* Enhancement: Sort currency list alphabetically by name, add Indonesian Rupiah (Rp) and US Cent currency support, #5247 (@sc0ttkclark)
    181191
    182192= 2.7.11 - December 7th 2018 =
Note: See TracChangeset for help on using the changeset viewer.