Changeset 50961 for trunk/src/wp-admin/includes/widgets.php
- Timestamp:
- 05/24/2021 09:50:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/widgets.php
r49113 r50961 163 163 164 164 foreach ( $wp_registered_widgets as $widget_id => $widget ) { 165 if ( preg_match( '/' . $id_base. '-([0-9]+)$/', $widget_id, $matches ) ) {165 if ( preg_match( '/' . preg_quote( $id_base, '/' ) . '-([0-9]+)$/', $widget_id, $matches ) ) { 166 166 $number = max( $number, $matches[1] ); 167 167 }
Note: See TracChangeset
for help on using the changeset viewer.