Skip to content

Commit

Permalink
fix: canonical url processing
Browse files Browse the repository at this point in the history
  • Loading branch information
leogermani committed Jul 6, 2023
1 parent 9b81416 commit c9ee2c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/incoming-events/class-canonical-url-updated.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public function post_process() {}
* @return void
*/
public function process_in_node() {
if ( ! empty( $this->get_data()['url'] ) ) {
update_option( Canonical_Url::OPTION_NAME, $this->get_data()['url'] );
if ( ! empty( $this->get_data()->url ) ) {
update_option( Canonical_Url::OPTION_NAME, $this->get_data()->url );
}
}
}

0 comments on commit c9ee2c9

Please sign in to comment.