Skip to content

Commit 09ee732

Browse files
committed
deeplinking and better check
1 parent b0fb4ab commit 09ee732

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

classes/suggested-tasks/providers/integrations/yoast/class-cornerstone-workout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function get_description( $task_id = '' ) {
142142
* @return string
143143
*/
144144
public function get_url( $task_id = '' ) {
145-
return $this->capability_required() ? \esc_url( admin_url( 'admin.php?page=wpseo_workouts' ) ) : '';
145+
return $this->capability_required() ? \esc_url( admin_url( 'admin.php?page=wpseo_workouts#cornerstone' ) ) : '';
146146
}
147147

148148
/**
@@ -151,7 +151,7 @@ public function get_url( $task_id = '' ) {
151151
* @return bool
152152
*/
153153
public function should_add_task() {
154-
if ( ! function_exists( 'YoastSEO' ) ) {
154+
if ( ! defined( 'WPSEO_PREMIUM_VERSION' ) ) {
155155
return false;
156156
}
157157

classes/suggested-tasks/providers/integrations/yoast/class-orphaned-content-workout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function get_description( $task_id = '' ) {
141141
* @return string
142142
*/
143143
public function get_url( $task_id = '' ) {
144-
return $this->capability_required() ? \esc_url( admin_url( 'admin.php?page=wpseo_workouts' ) ) : '';
144+
return $this->capability_required() ? \esc_url( admin_url( 'admin.php?page=wpseo_workouts#orphaned' ) ) : '';
145145
}
146146

147147
/**
@@ -150,7 +150,7 @@ public function get_url( $task_id = '' ) {
150150
* @return bool
151151
*/
152152
public function should_add_task() {
153-
if ( ! function_exists( 'YoastSEO' ) ) {
153+
if ( ! defined( 'WPSEO_PREMIUM_VERSION' ) ) {
154154
return false;
155155
}
156156

0 commit comments

Comments
 (0)