PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
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 4.1.7.3.2 All 140 releases
← All changes | inc/lp-core-functions.php +2 -16 4.4.8 → 4.4.9 View file →
@@ -1292,22 +1292,8 @@
1292 1292 return apply_filters( 'learn_press_register_url', wp_registration_url() );
1293 1293 }
1294 1294
1295 1295 /**
1296 - * Add a new notice into queue
1297 - *
1298 - * @param string
1299 - * @param string
1300 - *
1301 - * @return mixed
1302 - * @deprecated 4.2.5
1303 - */
1304 -function learn_press_add_notice( $message, $type = 'updated' ) {
1305 - _deprecated_function( __FUNCTION__, '4.2.5' );
1306 - LP_Admin_Notice::instance()->add( $message, $type );
1307 -}
1308 -
1309 -/**
1310 1296 * Set user's cookie
1311 1297 *
1312 1298 * @param string $name
1313 1299 * @param mixed $value
@@ -1422,11 +1408,11 @@
1422 1408
1423 1409 // Map query vars to their keys, or get them if endpoints are not supported
1424 1410 foreach ( LearnPress::instance()->query_vars as $key => $var ) {
1425 1411 if ( isset( $_GET[ $var ] ) ) {
1426 - $wp->query_vars[ $key ] = LP_Helper::sanitize_params_submitted( $_GET[ $var ] ?? '' );
1412 + $wp->query_vars[ $key ] = LP_Helper::sanitize_params_submitted( $_GET[ $var ] );
1427 1413 } elseif ( isset( $wp->query_vars[ $var ] ) ) {
1428 - $wp->query_vars[ $key ] = LP_Helper::sanitize_params_submitted( $wp->query_vars[ $var ] ?? '' );
1414 + $wp->query_vars[ $key ] = LP_Helper::sanitize_params_submitted( $wp->query_vars[ $var ] );
1429 1415 }
1430 1416 }
1431 1417 }
1432 1418