equal
deleted
inserted
replaced
221 * @param bool $is_wide Whether the widget is considered wide. |
221 * @param bool $is_wide Whether the widget is considered wide. |
222 * @param string $widget_id Widget ID. |
222 * @param string $widget_id Widget ID. |
223 * @return bool Updated `is_wide` value. |
223 * @return bool Updated `is_wide` value. |
224 */ |
224 */ |
225 public function set_is_wide_widget_in_customizer( $is_wide, $widget_id ) { |
225 public function set_is_wide_widget_in_customizer( $is_wide, $widget_id ) { |
226 if ( strpos( $widget_id, 'block-' ) === 0 ) { |
226 if ( str_starts_with( $widget_id, 'block-' ) ) { |
227 return false; |
227 return false; |
228 } |
228 } |
229 |
229 |
230 return $is_wide; |
230 return $is_wide; |
231 } |
231 } |