Changeset 50994 for trunk/src/wp-includes/class-wp-widget-factory.php
- Timestamp:
- 05/25/2021 08:21:03 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-widget-factory.php
r50993 r50994 103 103 } 104 104 } 105 106 /**107 * Returns the registered WP_Widget object for the given widget type.108 *109 * @since 5.8.0110 *111 * @param string $id_base Widget type ID.112 * @return WP_Widget|null113 */114 public function get_widget_object( $id_base ) {115 foreach ( $this->widgets as $widget_object ) {116 if ( $widget_object->id_base === $id_base ) {117 return $widget_object;118 }119 }120 121 return null;122 }123 105 }
Note: See TracChangeset
for help on using the changeset viewer.