Changeset 62408 for trunk/src/wp-includes/class-wp-widget-factory.php
- Timestamp:
- 05/22/2026 06:59:15 AM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-widget-factory.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-widget-factory.php
r54133 r62408 58 58 public function register( $widget ) { 59 59 if ( $widget instanceof WP_Widget ) { 60 $this->widgets[ spl_object_ hash( $widget ) ] = $widget;60 $this->widgets[ spl_object_id( $widget ) ] = $widget; 61 61 } else { 62 62 $this->widgets[ $widget ] = new $widget(); … … 75 75 public function unregister( $widget ) { 76 76 if ( $widget instanceof WP_Widget ) { 77 unset( $this->widgets[ spl_object_ hash( $widget ) ] );77 unset( $this->widgets[ spl_object_id( $widget ) ] ); 78 78 } else { 79 79 unset( $this->widgets[ $widget ] );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)