Version Description
December 20th 2018 =
Bug Fixes
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)
Enhancements
- Enhancement: Sort currency list alphabetically by name, add Indonesian Rupiah (Rp) and US Cent currency support, #5247 (@sc0ttkclark)
Download this release
Release Info
| Developer | pglewis |
| Plugin | |
| Version | 2.7.12 |
| Comparing to | |
| See all releases | |
Code changes from version 2.7.11 to 2.7.12
- classes/PodsAPI.php +2 -2
- classes/PodsInit.php +1 -1
- classes/fields/currency.php +75 -63
- includes/data.php +11 -1
- init.php +2 -2
- readme.txt +11 -1
classes/PodsAPI.php
CHANGED
|
@@ -3706,7 +3706,7 @@ class PodsAPI {
|
|
| 3706 |
$value = array();
|
| 3707 |
}
|
| 3708 |
}
|
| 3709 |
-
|
| 3710 |
$pick_limit = (int) pods_var_raw( 'pick_limit', $options, 0 );
|
| 3711 |
|
| 3712 |
if ( 'single' === pods_var_raw( 'pick_format_type', $options ) ) {
|
|
@@ -8239,7 +8239,7 @@ class PodsAPI {
|
|
| 8239 |
if ( empty( $object_type ) ) {
|
| 8240 |
$object_type = 'post_type';
|
| 8241 |
$object = 'post';
|
| 8242 |
-
} elseif ( empty( $object ) && in_array( $object_type, array( 'user', 'media', 'comment' ) ) ) {
|
| 8243 |
$object = $object_type;
|
| 8244 |
}
|
| 8245 |
|
| 3706 |
$value = array();
|
| 3707 |
}
|
| 3708 |
}
|
| 3709 |
+
|
| 3710 |
$pick_limit = (int) pods_var_raw( 'pick_limit', $options, 0 );
|
| 3711 |
|
| 3712 |
if ( 'single' === pods_var_raw( 'pick_format_type', $options ) ) {
|
| 8239 |
if ( empty( $object_type ) ) {
|
| 8240 |
$object_type = 'post_type';
|
| 8241 |
$object = 'post';
|
| 8242 |
+
} elseif ( empty( $object ) && in_array( $object_type, array( 'user', 'media', 'comment' ), true ) ) {
|
| 8243 |
$object = $object_type;
|
| 8244 |
}
|
| 8245 |
|
classes/PodsInit.php
CHANGED
|
@@ -1283,7 +1283,7 @@ class PodsInit {
|
|
| 1283 |
$labels['item_published_privately'] = pods_v( 'item_published_privately', $labels, sprintf( __( '%s published privately', 'pods' ), $singular_label ), true );
|
| 1284 |
$labels['item_reverted_to_draft'] = pods_v( 'item_reverted_to_draft', $labels, sprintf( __( '%s reverted to draft', 'pods'), $singular_label ), true );
|
| 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
|
| 1287 |
} elseif ( 'taxonomy' === $type ) {
|
| 1288 |
$labels['menu_name'] = pods_v( 'menu_name', $labels, $label, true );
|
| 1289 |
$labels['search_items'] = pods_v( 'search_items', $labels, sprintf( __( 'Search %s', 'pods' ), $label ), true );
|
| 1283 |
$labels['item_published_privately'] = pods_v( 'item_published_privately', $labels, sprintf( __( '%s published privately', 'pods' ), $singular_label ), true );
|
| 1284 |
$labels['item_reverted_to_draft'] = pods_v( 'item_reverted_to_draft', $labels, sprintf( __( '%s reverted to draft', 'pods'), $singular_label ), true );
|
| 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', 'pods' ), $singular_label ), true );
|
| 1287 |
} elseif ( 'taxonomy' === $type ) {
|
| 1288 |
$labels['menu_name'] = pods_v( 'menu_name', $labels, $label, true );
|
| 1289 |
$labels['search_items'] = pods_v( 'search_items', $labels, sprintf( __( 'Search %s', 'pods' ), $label ), true );
|
classes/fields/currency.php
CHANGED
|
@@ -377,192 +377,204 @@ class PodsField_Currency extends PodsField_Number {
|
|
| 377 |
}
|
| 378 |
|
| 379 |
$default_currencies = array(
|
| 380 |
-
'aud'
|
| 381 |
'label' => 'AUD',
|
| 382 |
'name' => __( 'Australian Dollar', 'pods' ),
|
| 383 |
'sign' => '$',
|
| 384 |
'entity' => '$',
|
| 385 |
),
|
| 386 |
-
'brl'
|
| 387 |
'label' => 'BRL',
|
| 388 |
'name' => __( 'Brazilian Real', 'pods' ),
|
| 389 |
'sign' => 'R$',
|
| 390 |
'entity' => 'R$',
|
| 391 |
),
|
| 392 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 393 |
'label' => 'CAD',
|
| 394 |
'name' => __( 'Canadian Dollar', 'pods' ),
|
| 395 |
'sign' => '$',
|
| 396 |
'entity' => '$',
|
| 397 |
),
|
| 398 |
-
'
|
| 399 |
-
'label' => 'CHF',
|
| 400 |
-
'name' => __( 'Swiss Franc', 'pods' ),
|
| 401 |
-
'sign' => 'Fr',
|
| 402 |
-
'entity' => 'Fr',
|
| 403 |
-
),
|
| 404 |
-
'cny' => array(
|
| 405 |
'label' => 'CNY',
|
| 406 |
-
'name' => __( 'Chinese
|
| 407 |
'sign' => '¥',
|
| 408 |
'entity' => '¥',
|
| 409 |
),
|
| 410 |
-
'cny2'
|
| 411 |
'label' => 'CNY',
|
| 412 |
-
'name' => __( 'Chinese Yuan', 'pods' ),
|
| 413 |
'sign' => '元',
|
| 414 |
'entity' => '元',
|
| 415 |
),
|
| 416 |
-
'czk'
|
| 417 |
'label' => 'CZK',
|
| 418 |
'name' => __( 'Czech Koruna', 'pods' ),
|
| 419 |
'sign' => 'Kč',
|
| 420 |
'entity' => 'Kč',
|
| 421 |
),
|
| 422 |
-
'dkk'
|
| 423 |
'label' => 'DKK',
|
| 424 |
'name' => __( 'Danish Krone', 'pods' ),
|
| 425 |
'sign' => 'kr.',
|
| 426 |
'entity' => 'kr.',
|
| 427 |
),
|
| 428 |
-
'euro'
|
| 429 |
'label' => 'EUR',
|
| 430 |
'name' => __( 'Euro', 'pods' ),
|
| 431 |
'sign' => '€',
|
| 432 |
'entity' => '€',
|
| 433 |
),
|
| 434 |
-
'
|
| 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'
|
| 447 |
'label' => 'HUF',
|
| 448 |
'name' => __( 'Hungarian Forint', 'pods' ),
|
| 449 |
'sign' => 'Ft',
|
| 450 |
'entity' => 'Ft',
|
| 451 |
),
|
| 452 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
'label' => 'ILS',
|
| 454 |
'name' => __( 'Israeli New Sheqel', 'pods' ),
|
| 455 |
'sign' => '₪',
|
| 456 |
'entity' => '₪',
|
| 457 |
),
|
| 458 |
-
'jpy'
|
| 459 |
'label' => 'JPY',
|
| 460 |
'name' => __( 'Japanese Yen', 'pods' ),
|
| 461 |
'sign' => '¥',
|
| 462 |
'entity' => '¥',
|
| 463 |
),
|
| 464 |
-
'krw'
|
| 465 |
'label' => 'KRW',
|
| 466 |
'name' => __( 'Korean Won', 'pods' ),
|
| 467 |
'sign' => '₩',
|
| 468 |
'entity' => '₩',
|
| 469 |
),
|
| 470 |
-
'myr'
|
| 471 |
'label' => 'MYR',
|
| 472 |
'name' => __( 'Malaysian Ringgit', 'pods' ),
|
| 473 |
'sign' => 'MR',
|
| 474 |
'entity' => 'MR',
|
| 475 |
),
|
| 476 |
-
'mxn'
|
| 477 |
'label' => 'MXN',
|
| 478 |
'name' => __( 'Mexican Peso', 'pods' ),
|
| 479 |
'sign' => '$',
|
| 480 |
'entity' => '$',
|
| 481 |
),
|
| 482 |
-
'
|
| 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 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 495 |
'label' => 'PHP',
|
| 496 |
'name' => __( 'Philippine Peso', 'pods' ),
|
| 497 |
'sign' => '₱',
|
| 498 |
'entity' => '₱',
|
| 499 |
),
|
| 500 |
-
'pln'
|
| 501 |
'label' => 'PLN',
|
| 502 |
'name' => __( 'Polish Złoty', 'pods' ),
|
| 503 |
'sign' => 'zł',
|
| 504 |
'entity' => 'zł',
|
| 505 |
),
|
| 506 |
-
'rub'
|
| 507 |
'label' => 'RUB',
|
| 508 |
'name' => __( 'Russian Ruble', 'pods' ),
|
| 509 |
'sign' => '₽',
|
| 510 |
'entity' => '₽',
|
| 511 |
),
|
| 512 |
-
'sek'
|
| 513 |
'label' => 'SEK',
|
| 514 |
'name' => __( 'Swedish Krona', 'pods' ),
|
| 515 |
'sign' => 'kr',
|
| 516 |
'entity' => 'kr',
|
| 517 |
),
|
| 518 |
-
'sgd'
|
| 519 |
'label' => 'SGD',
|
| 520 |
'name' => __( 'Singapore Dollar', 'pods' ),
|
| 521 |
'sign' => '$',
|
| 522 |
'entity' => '$',
|
| 523 |
),
|
| 524 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 525 |
'label' => 'THB',
|
| 526 |
'name' => __( 'Thai Baht', 'pods' ),
|
| 527 |
'sign' => '฿',
|
| 528 |
'entity' => '฿',
|
| 529 |
),
|
| 530 |
-
'trl'
|
| 531 |
'label' => 'TRL',
|
| 532 |
'name' => __( 'Turkish Lira', 'pods' ),
|
| 533 |
'sign' => '₺',
|
| 534 |
'entity' => '₺',
|
| 535 |
),
|
| 536 |
-
'
|
| 537 |
-
'label' => 'TWD',
|
| 538 |
-
'name' => __( 'Taiwan New Dollar', 'pods' ),
|
| 539 |
-
'sign' => '$',
|
| 540 |
-
'entity' => '$',
|
| 541 |
-
),
|
| 542 |
-
'usd' => array(
|
| 543 |
'label' => 'USD',
|
| 544 |
'name' => __( 'US Dollar', 'pods' ),
|
| 545 |
'sign' => '$',
|
| 546 |
'entity' => '$',
|
| 547 |
),
|
| 548 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 549 |
'label' => 'VND',
|
| 550 |
'name' => __( 'Vietnamese Dong', 'pods' ),
|
| 551 |
'sign' => '₫',
|
| 552 |
'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 |
-
),
|
| 566 |
);
|
| 567 |
|
| 568 |
/**
|
| 377 |
}
|
| 378 |
|
| 379 |
$default_currencies = array(
|
| 380 |
+
'aud' => array(
|
| 381 |
'label' => 'AUD',
|
| 382 |
'name' => __( 'Australian Dollar', 'pods' ),
|
| 383 |
'sign' => '$',
|
| 384 |
'entity' => '$',
|
| 385 |
),
|
| 386 |
+
'brl' => array(
|
| 387 |
'label' => 'BRL',
|
| 388 |
'name' => __( 'Brazilian Real', 'pods' ),
|
| 389 |
'sign' => 'R$',
|
| 390 |
'entity' => 'R$',
|
| 391 |
),
|
| 392 |
+
'gbp' => array(
|
| 393 |
+
'label' => 'GBP',
|
| 394 |
+
'name' => __( 'British Pound', 'pods' ),
|
| 395 |
+
'sign' => '£',
|
| 396 |
+
'entity' => '£',
|
| 397 |
+
),
|
| 398 |
+
'cad' => array(
|
| 399 |
'label' => 'CAD',
|
| 400 |
'name' => __( 'Canadian Dollar', 'pods' ),
|
| 401 |
'sign' => '$',
|
| 402 |
'entity' => '$',
|
| 403 |
),
|
| 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(
|
| 537 |
+
'label' => 'CHF',
|
| 538 |
+
'name' => __( 'Swiss Franc', 'pods' ),
|
| 539 |
+
'sign' => 'Fr',
|
| 540 |
+
'entity' => 'Fr',
|
| 541 |
+
),
|
| 542 |
+
'twd' => array(
|
| 543 |
+
'label' => 'TWD',
|
| 544 |
+
'name' => __( 'Taiwan New Dollar', 'pods' ),
|
| 545 |
+
'sign' => '$',
|
| 546 |
+
'entity' => '$',
|
| 547 |
+
),
|
| 548 |
+
'thb' => array(
|
| 549 |
'label' => 'THB',
|
| 550 |
'name' => __( 'Thai Baht', 'pods' ),
|
| 551 |
'sign' => '฿',
|
| 552 |
'entity' => '฿',
|
| 553 |
),
|
| 554 |
+
'trl' => array(
|
| 555 |
'label' => 'TRL',
|
| 556 |
'name' => __( 'Turkish Lira', 'pods' ),
|
| 557 |
'sign' => '₺',
|
| 558 |
'entity' => '₺',
|
| 559 |
),
|
| 560 |
+
'usd' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 561 |
'label' => 'USD',
|
| 562 |
'name' => __( 'US Dollar', 'pods' ),
|
| 563 |
'sign' => '$',
|
| 564 |
'entity' => '$',
|
| 565 |
),
|
| 566 |
+
'usdcent' => array(
|
| 567 |
+
'label' => 'USDCENT',
|
| 568 |
+
'name' => __( 'US Dollar Cent', 'pods' ),
|
| 569 |
+
'sign' => '¢',
|
| 570 |
+
'entity' => '¢',
|
| 571 |
+
),
|
| 572 |
+
'vnd' => array(
|
| 573 |
'label' => 'VND',
|
| 574 |
'name' => __( 'Vietnamese Dong', 'pods' ),
|
| 575 |
'sign' => '₫',
|
| 576 |
'entity' => '₫',
|
| 577 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 578 |
);
|
| 579 |
|
| 580 |
/**
|
includes/data.php
CHANGED
|
@@ -1666,7 +1666,7 @@ function pods_serial_comma( $value, $field = null, $fields = null, $and = null,
|
|
| 1666 |
$pick_val = pods_v( 'pick_val', $params->field );
|
| 1667 |
$table = null;
|
| 1668 |
|
| 1669 |
-
if ( ! empty( $pick_object ) && ! empty( $pick_val ) ) {
|
| 1670 |
$table = pods_api()->get_table_info(
|
| 1671 |
$pick_object,
|
| 1672 |
$pick_val,
|
|
@@ -1701,6 +1701,16 @@ function pods_serial_comma( $value, $field = null, $fields = null, $and = null,
|
|
| 1701 |
|
| 1702 |
$last = '';
|
| 1703 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1704 |
$original_value = $value;
|
| 1705 |
|
| 1706 |
if ( ! empty( $value ) ) {
|
| 1666 |
$pick_val = pods_v( 'pick_val', $params->field );
|
| 1667 |
$table = null;
|
| 1668 |
|
| 1669 |
+
if ( ! empty( $pick_object ) && ( ! empty( $pick_val ) || in_array( $pick_object, array( 'user', 'media', 'comment' ), true ) ) ) {
|
| 1670 |
$table = pods_api()->get_table_info(
|
| 1671 |
$pick_object,
|
| 1672 |
$pick_val,
|
| 1701 |
|
| 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 |
+
}
|
| 1713 |
+
|
| 1714 |
$original_value = $value;
|
| 1715 |
|
| 1716 |
if ( ! empty( $value ) ) {
|
init.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Pods - Custom Content Types and Fields
|
| 4 |
Plugin URI: https://pods.io/
|
| 5 |
Description: Pods is a framework for creating, managing, and deploying customized content types and fields
|
| 6 |
-
Version: 2.7.
|
| 7 |
Author: Pods Framework Team
|
| 8 |
Author URI: https://pods.io/about/
|
| 9 |
Text Domain: pods
|
|
@@ -36,7 +36,7 @@ if ( defined( 'PODS_VERSION' ) || defined( 'PODS_DIR' ) ) {
|
|
| 36 |
add_action( 'init', 'pods_deactivate_pods_ui' );
|
| 37 |
} else {
|
| 38 |
// Current version
|
| 39 |
-
define( 'PODS_VERSION', '2.7.
|
| 40 |
|
| 41 |
// Version tracking between DB updates themselves
|
| 42 |
define( 'PODS_DB_VERSION', '2.3.5' );
|
| 3 |
Plugin Name: Pods - Custom Content Types and Fields
|
| 4 |
Plugin URI: https://pods.io/
|
| 5 |
Description: Pods is a framework for creating, managing, and deploying customized content types and fields
|
| 6 |
+
Version: 2.7.12
|
| 7 |
Author: Pods Framework Team
|
| 8 |
Author URI: https://pods.io/about/
|
| 9 |
Text Domain: pods
|
| 36 |
add_action( 'init', 'pods_deactivate_pods_ui' );
|
| 37 |
} else {
|
| 38 |
// Current version
|
| 39 |
+
define( 'PODS_VERSION', '2.7.12' );
|
| 40 |
|
| 41 |
// Version tracking between DB updates themselves
|
| 42 |
define( 'PODS_DB_VERSION', '2.3.5' );
|
readme.txt
CHANGED
|
@@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields,
|
|
| 5 |
Requires at least: 4.5
|
| 6 |
Tested up to: 5.0
|
| 7 |
Requires PHP: 5.3
|
| 8 |
-
Stable tag: 2.7.
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
|
@@ -179,6 +179,16 @@ We also have a dedicated [Slack Chat](https://pods.io/chat/) channel to help our
|
|
| 179 |
|
| 180 |
== Changelog ==
|
| 181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
= 2.7.11 - December 7th 2018 =
|
| 183 |
|
| 184 |
**Bug Fixes**
|
| 5 |
Requires at least: 4.5
|
| 6 |
Tested up to: 5.0
|
| 7 |
Requires PHP: 5.3
|
| 8 |
+
Stable tag: 2.7.12
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
| 179 |
|
| 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)
|
| 191 |
+
|
| 192 |
= 2.7.11 - December 7th 2018 =
|
| 193 |
|
| 194 |
**Bug Fixes**
|
