| @@ -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 | |
| @@ -1954,10 +1940,11 @@ | ||
| 1954 | 1940 | * @param array|object $b |
| 1955 | 1941 | * |
| 1956 | 1942 | * @return int |
| 1957 | 1943 | * @since 3.0.0 |
| 1944 | + * @deprecated 4.4.5 | |
| 1958 | 1945 | */ |
| 1959 | -function learn_press_sort_list_by_priority_callback( $a, $b ) { | |
| 1946 | +/*function learn_press_sort_list_by_priority_callback( $a, $b ) { | |
| 1960 | 1947 | $a_priority = null; |
| 1961 | 1948 | $b_priority = null; |
| 1962 | 1949 | |
| 1963 | 1950 | if ( is_array( $a ) && array_key_exists( 'priority', $a ) ) { |
| @@ -1984,9 +1971,9 @@ | ||
| 1984 | 1971 | return 0; |
| 1985 | 1972 | } |
| 1986 | 1973 | |
| 1987 | 1974 | return ( $a_priority < $b_priority ) ? - 1 : 1; |
| 1988 | -} | |
| 1975 | +}*/ | |
| 1989 | 1976 | |
| 1990 | 1977 | /** |
| 1991 | 1978 | * Localize date with custom format. |
| 1992 | 1979 | * |