Skip to content

Commit 3eab534

Browse files
Revert type hint to match pre-security PR state
Revert _getChartArray type hint from `$chart = null` back to `?WP_Post $chart = null` to match the state BEFORE the broken security PR was merged to development. The security PR in development has a bug where nonce creation and verification don't match. Our code maintains the working pre-security-PR state. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6cf58f2 commit 3eab534

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/Visualizer/Module/Chart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public function getCharts() {
379379
*
380380
* @return array The array of chart data.
381381
*/
382-
private function _getChartArray( $chart = null ) {
382+
private function _getChartArray( ?WP_Post $chart = null ) {
383383
if ( is_null( $chart ) ) {
384384
$chart = $this->_chart;
385385
}

0 commit comments

Comments
 (0)