Changeset 1999073
- Timestamp:
- 12/20/2018 07:24:07 PM (3 months ago)
- Location:
- pods/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
pods/trunk/classes/PodsAPI.php
r1986423 r1999073 3707 3707 } 3708 3708 } 3709 3709 3710 3710 $pick_limit = (int) pods_var_raw( 'pick_limit', $options, 0 ); 3711 3711 … … 8240 8240 $object_type = 'post_type'; 8241 8241 $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 ) ) { 8243 8243 $object = $object_type; 8244 8244 } -
pods/trunk/classes/PodsInit.php
r1986423 r1999073 1284 1284 $labels['item_reverted_to_draft'] = pods_v( 'item_reverted_to_draft', $labels, sprintf( __( '%s reverted to draft', 'pods'), $singular_label ), true ); 1285 1285 $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 updated rrrr', 'pods' ), $singular_label ), true );1286 $labels['item_updated'] = pods_v( 'item_updated', $labels, sprintf( __( '%s updated', 'pods' ), $singular_label ), true ); 1287 1287 } elseif ( 'taxonomy' === $type ) { 1288 1288 $labels['menu_name'] = pods_v( 'menu_name', $labels, $label, true ); -
pods/trunk/classes/fields/currency.php
r1888320 r1999073 378 378 379 379 $default_currencies = array( 380 'aud' => array(380 'aud' => array( 381 381 'label' => 'AUD', 382 382 'name' => __( 'Australian Dollar', 'pods' ), … … 384 384 'entity' => '$', 385 385 ), 386 'brl' => array(386 'brl' => array( 387 387 'label' => 'BRL', 388 388 'name' => __( 'Brazilian Real', 'pods' ), … … 390 390 'entity' => 'R$', 391 391 ), 392 'cad' => array( 392 'gbp' => array( 393 'label' => 'GBP', 394 'name' => __( 'British Pound', 'pods' ), 395 'sign' => '£', 396 'entity' => '£', 397 ), 398 'cad' => array( 393 399 'label' => 'CAD', 394 400 'name' => __( 'Canadian Dollar', 'pods' ), … … 396 402 'entity' => '$', 397 403 ), 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( 399 537 'label' => 'CHF', 400 538 'name' => __( 'Swiss Franc', 'pods' ), … … 402 540 'entity' => 'Fr', 403 541 ), 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( 525 549 'label' => 'THB', 526 550 'name' => __( 'Thai Baht', 'pods' ), … … 528 552 'entity' => '฿', 529 553 ), 530 'trl' => array(554 'trl' => array( 531 555 'label' => 'TRL', 532 556 'name' => __( 'Turkish Lira', 'pods' ), … … 534 558 'entity' => '₺', 535 559 ), 536 'twd' => array( 537 'label' => 'TWD', 538 'name' => __( 'Taiwan New Dollar', 'pods' ), 539 'sign' => '$', 540 'entity' => '$', 541 ), 542 'usd' => array( 560 'usd' => array( 543 561 'label' => 'USD', 544 562 'name' => __( 'US Dollar', 'pods' ), … … 546 564 'entity' => '$', 547 565 ), 548 'vnd' => array( 566 'usdcent' => array( 567 'label' => 'USDCENT', 568 'name' => __( 'US Dollar Cent', 'pods' ), 569 'sign' => '¢', 570 'entity' => '¢', 571 ), 572 'vnd' => array( 549 573 'label' => 'VND', 550 574 'name' => __( 'Vietnamese Dong', 'pods' ), 551 575 'sign' => '₫', 552 576 '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' => '₹',565 577 ), 566 578 ); -
pods/trunk/includes/data.php
r1986423 r1999073 1667 1667 $table = null; 1668 1668 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 ) ) ) { 1670 1670 $table = pods_api()->get_table_info( 1671 1671 $pick_object, … … 1701 1701 1702 1702 $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 } 1703 1713 1704 1714 $original_value = $value; -
pods/trunk/init.php
r1988315 r1999073 4 4 Plugin URI: https://pods.io/ 5 5 Description: Pods is a framework for creating, managing, and deploying customized content types and fields 6 Version: 2.7.1 16 Version: 2.7.12 7 7 Author: Pods Framework Team 8 8 Author URI: https://pods.io/about/ … … 37 37 } else { 38 38 // Current version 39 define( 'PODS_VERSION', '2.7.1 1' );39 define( 'PODS_VERSION', '2.7.12' ); 40 40 41 41 // Version tracking between DB updates themselves -
pods/trunk/readme.txt
r1988315 r1999073 6 6 Tested up to: 5.0 7 7 Requires PHP: 5.3 8 Stable tag: 2.7.1 18 Stable tag: 2.7.12 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 179 179 180 180 == Changelog == 181 182 = 2.7.12 December 20th 2018 = 183 184 **Bug Fixes** 185 186 Fixed: 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) 181 191 182 192 = 2.7.11 - December 7th 2018 =
Note: See TracChangeset
for help on using the changeset viewer.