Skip to content

Commit 503d8f9

Browse files
committed
- use the post_id if the Options Page is registered with one, otherwise fallback to "options" as the default
1 parent e2c8a30 commit 503d8f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/AcfOptionsPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function init(): void {
5353
'id' => function () {
5454
return Relay::toGlobalId( 'acf_options_page', $this->data['menu_slug'] );
5555
},
56-
'acfId' => 'options',
56+
'acfId' => $this->data['post_id'] ?? 'options',
5757
];
5858
}
5959
}

0 commit comments

Comments
 (0)