wp/wp-includes/widgets/class-wp-widget-block.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
   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 	}