IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
287 | 287 | */ |
288 | 288 | class WP_Object_Cache { |
289 | 289 | |
| 290 | /** |
| 291 | * Enables register_shutdown_function to only be called once. |
| 292 | * |
| 293 | * @since 4.9.7 |
| 294 | * @var bool |
| 295 | */ |
| 296 | private static $shutdown_registered = false; |
| 297 | |
290 | 298 | /** |
291 | 299 | * Holds the cached objects. |
292 | 300 | * |
… |
… |
|
740 | 748 | * @todo This should be moved to the PHP4 style constructor, PHP5 |
741 | 749 | * already calls __destruct() |
742 | 750 | */ |
743 | | register_shutdown_function( array( $this, '__destruct' ) ); |
| 751 | if ( ! self::$shutdown_registered ) { |
| 752 | register_shutdown_function( array( $this, '__destruct' ) ); |
| 753 | self::$shutdown_registered = true; |
| 754 | } |
744 | 755 | } |
745 | 756 | |
746 | 757 | /** |