PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9.1
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9.1
4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 All 141 releases
← All changes | inc/TemplateHooks/Admin/AdminAddonsPage.php +2 -10 4.4.9 → 4.4.9.1 View file →
@@ -508,16 +508,9 @@
508 508 esc_html( $state['version_latest'] )
509 509 )
510 510 : '',
511 511 'content_end' => '</div>',
512 - 'actions' => self::html_addon_actions(
513 - $addon,
514 - array(
515 - 'is_free' => $state['is_free'],
516 - 'is_installed' => $state['is_installed'],
517 - 'is_updated' => $state['is_updated'],
518 - )
519 - ),
512 + 'actions' => self::html_addon_actions( $addon ),
520 513 'purchase' => self::html_purchase_panel(
521 514 $addon,
522 515 array(
523 516 'purchase_code_masked' => $state['purchase_code_masked'],
@@ -860,13 +853,12 @@
860 853 *
861 854 * @return string
862 855 */
863 856 public static function html_addon_actions( object $addon, array $data = [] ): string {
864 - $is_free = $data['is_free'] ?? false;
865 857 $section_right = apply_filters(
866 858 'learn-press/admin/addons/actions/section_right',
867 859 array(
868 - 'install' => $is_free
860 + 'install' => $addon->is_free && ! $addon->is_org
869 861 ? sprintf(
870 862 '<a class="lp-button btn-addon-action" data-action="install" href="%s"
871 863 target="_blank" rel="noopener">%s</a>',
872 864 esc_url( $addon->link ?? '' ),