Changeset 51705 for trunk/src/wp-includes/widgets.php
- Timestamp:
- 08/31/2021 07:57:20 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets.php
r51391 r51705 1252 1252 } 1253 1253 1254 retrieve_widgets( true ); 1255 } 1256 1257 /** 1258 * Look for "lost" widgets, this has to run at least on each theme change. 1254 sync_registered_widgets( true ); 1255 } 1256 1257 /** 1258 * Do not use, deprecated. 1259 * 1260 * Use sync_registered_widgets() instead. 1259 1261 * 1260 1262 * @since 2.8.0 1263 * @deprecated 5.8.1 Use sync_registered_widgets() 1264 * @see sync_registered_widgets() 1265 * 1266 * @param string|bool $theme_changed 1267 * @return array 1268 */ 1269 function retrieve_widgets( $theme_changed = false ) { 1270 return sync_registered_widgets( $theme_changed ); 1271 } 1272 1273 /** 1274 * Looks for "lost" widgets and Updates widgets-to-sidebars allocation. 1275 * This has to run at least on each theme change. 1276 * 1277 * @since 5.8.1 1261 1278 * 1262 1279 * @global array $wp_registered_sidebars Registered sidebars. … … 1268 1285 * @return array Updated sidebars widgets. 1269 1286 */ 1270 function retrieve_widgets( $theme_changed = false ) {1287 function sync_registered_widgets( $theme_changed = false ) { 1271 1288 global $wp_registered_sidebars, $sidebars_widgets, $wp_registered_widgets; 1272 1289
Note: See TracChangeset
for help on using the changeset viewer.