Repository navigation
Commit 7973b13
committed
View config: Add the
Adds a boolean `showPlaceholderIfEmpty` property to the panel form layout in the view config REST schema. When true, the panel summary shows the field's `placeholder` instead of its `render` output when the value is empty (`undefined`, `null`, or an empty string). It is `false` by default, so existing forms are unchanged. Schema only, no behavior changes on the server.
Ports the changes from the Gutenberg plugin. See WordPress/gutenberg#82527.
Props ntsekouras, oandregal.
Part of #65981.
git-svn-id: https://develop.svn.wordpress.org/trunk@63530 602fd350-edb4-49c9-b593-d223f7449a82showPlaceholderIfEmpty option to the panel form layout schema.1 parent 57fe7db commit 7973b13
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| 634 | + | |
634 | 635 | | |
635 | 636 | | |
636 | 637 | | |
| |||
655 | 656 | | |
656 | 657 | | |
657 | 658 | | |
658 | | - | |
| 659 | + | |
659 | 660 | | |
660 | 661 | | |
661 | 662 | | |
662 | | - | |
| 663 | + | |
663 | 664 | | |
664 | 665 | | |
665 | 666 | | |
666 | | - | |
| 667 | + | |
667 | 668 | | |
668 | 669 | | |
669 | 670 | | |
| |||
686 | 687 | | |
687 | 688 | | |
688 | 689 | | |
689 | | - | |
| 690 | + | |
690 | 691 | | |
691 | 692 | | |
692 | 693 | | |
| |||
697 | 698 | | |
698 | 699 | | |
699 | 700 | | |
700 | | - | |
| 701 | + | |
701 | 702 | | |
702 | 703 | | |
703 | 704 | | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
704 | 708 | | |
705 | 709 | | |
706 | 710 | | |
| |||
0 commit comments