Skip to content

Commit

Permalink
Re-enable passing post_id query arg for Server Side Rendering (#31787)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide authored and jffng committed May 19, 2021
1 parent da43d81 commit 1b8c272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server-side-render/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ExportedServerSideRender = withSelect( ( select ) => {
// Since they aren't real posts, we don't want to use their ID
// for server-side rendering. Since they use a string based ID,
// we can assume real post IDs are numbers.
if ( currentPostId && typeof currentPostId.id === 'number' ) {
if ( currentPostId && typeof currentPostId === 'number' ) {
return {
currentPostId,
};
Expand Down

0 comments on commit 1b8c272

Please sign in to comment.