| @@ -80,16 +80,9 @@ | ||
| 80 | 80 | * |
| 81 | 81 | * @return array |
| 82 | 82 | */ |
| 83 | 83 | public static function get_post_context( $id ) { |
| 84 | - $post_data = (array) get_post( $id ); | |
| 85 | - | |
| 86 | - // Add permalink to post context. | |
| 87 | - if ( ! empty( $post_data ) && isset( $post_data['ID'] ) ) { | |
| 88 | - $post_data['permalink'] = get_permalink( $post_data['ID'] ); | |
| 89 | - } | |
| 90 | - | |
| 91 | - return $post_data; | |
| 84 | + return (array) get_post( $id ); | |
| 92 | 85 | } |
| 93 | 86 | |
| 94 | 87 | /** |
| 95 | 88 | * Gets the post meta |