Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use allow-list for mobile editor settings endpoint #56424

Draft
wants to merge 11 commits into
base: trunk
Choose a base branch
from
4 changes: 4 additions & 0 deletions lib/experimental/block-editor-settings-mobile.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ function keep_supported_block_editor_settings_mobile( $initial_array, $allow_lis
$result = array();

foreach ( $allow_list_array as $key => $value ) {
if ( ! array_key_exists( $key, $initial_array ) ) {
continue;
}

$initial_value = $initial_array[ $key ];

if ( array_key_exists( $key, $initial_array ) ) {
Expand Down