Commit 1253d25
committed
Use Symbol for CollaborationMode slot name
Changes the CollaborationMode SlotFill to use a Symbol instead of a
string for the slot name. This makes the slot truly private by ensuring
only code with a reference to the exported Fill/Slot components can
access it.
String-based slot names can be accessed by anyone who knows the name.
Using Symbol() prevents unauthorized usage and follows the pattern
established in PR WordPress#67238.1 parent c30da49 commit 1253d25
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments