PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
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 4.2.0 All 139 releases
← All changes | inc/class-lp-query-list-table.php +11 -2 4.1.74.4.8 View file →
@@ -1,9 +1,14 @@
1 1 <?php
2 2 /**
3 3 * Class LP_Query_List_Table
4 + *
5 + * @since 3.0.0
6 + * @version 3.0.1
7 + * Addons: Assignments, H5P is using.
8 + * Update all before not implements ArrayAccess
4 9 */
5 -class LP_Query_List_Table implements ArrayAccess {
10 +class LP_Query_List_Table {
6 11 /**
7 12 * @var array|null
8 13 */
9 14 protected $_data = null;
@@ -69,8 +74,12 @@
69 74 public function get_items() {
70 75 return $this->_data['items'];
71 76 }
72 77
78 + public function get( string $key = '' ) {
79 + return empty( $key ) ? $this->_data : $this->_data[ $key ];
80 + }
81 +
73 82 /**
74 83 * @return int
75 84 */
76 85 public function get_paged() {
@@ -92,9 +101,9 @@
92 101 * @return string
93 102 */
94 103 public function get_nav_numbers( $echo = true, $base_url = '' ) {
95 104 if ( ! $base_url ) {
96 - $base_url = learn_press_get_current_url();
105 + $base_url = LP_Helper::getUrlCurrent();
97 106 }
98 107 if ( ! empty( $this->_data['nav_base'] ) ) {
99 108 if ( is_callable( $this->_data['nav_base'] ) ) {
100 109 $base = call_user_func_array( $this->_data['nav_base'], array( $this->_data['nav_format'] ) );