Changeset 12412 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-blocks.php
- Timestamp:
- 02/22/2023 12:54:20 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-blocks.php
r12366 r12412 160 160 printf( 161 161 '<p> 162 <input type="hidden" name="can_update_block_editor_preference" value="true"> 162 163 <input name="block_editor" id="block_editor" type="checkbox" value="disabled" %s /> 163 164 <label for="block_editor">%s</label> … … 175 176 */ 176 177 public function bbp_profile_update( $user_id ) { 178 // Catch profile updates that should not be able to include the "Disable Block Editor" preference, and return early. 179 if ( ! isset( $_REQUEST['can_update_block_editor_preference'] ) ) { 180 return; 181 } 182 177 183 $disabled = ! empty( $_REQUEST['block_editor'] ) && 'disabled' === $_REQUEST['block_editor']; 178 184
Note: See TracChangeset
for help on using the changeset viewer.