Skip to content

Commit a8c285c

Browse files
committed
Update README.md to clarify JavaScript timestamp handling in super-admin-all-sites-menu
1 parent 3eb19fa commit a8c285c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Let me break down the dataflow related to the timestamp in the super-admin-all-s
121121
2. PHP to JavaScript Transfer:
122122
- The timestamp is passed to JavaScript via `wp_add_inline_script()` in super-admin-all-sites-menu.php around line 409:
123123
```php
124-
wp_add_inline_script( 'super-admin-all-sites-menu', 'var allSitesMenuTimestamp = ' . $this->get_timestamp() . ';', 'before' );
124+
wp_add_inline_script( 'super-admin-all-sites-menu', "const pluginAllSitesMenu = {$data};", 'before' );
125125
```
126126
- Where `$data` includes the timestamp:
127127
```php

0 commit comments

Comments
 (0)