PluginProbe
Parse.ly / 3.14.1
Parse.ly v3.14.1
3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 3.20.2 3.20.3 All 105 releases
← All changes | src/Endpoints/class-graphql-metadata.php +1 -6 3.19.33.14.1 View file →
@@ -124,14 +124,9 @@
124 124 */
125 125 private function register_fields(): void {
126 126 $resolve = function ( \WPGraphQL\Model\Post $graphql_post ) {
127 127 $post_id = $graphql_post->ID;
128 -
129 - if ( ! is_int( $post_id ) ) {
130 - return null;
131 - }
132 -
133 - $post = WP_Post::get_instance( $post_id );
128 + $post = WP_Post::get_instance( $post_id );
134 129
135 130 if ( false === $post ) {
136 131 return null;
137 132 }