PluginProbe
Elementor Website Builder – more than just a page builder / 3.7.3
Elementor Website Builder – more than just a page builder v3.7.3
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/elements/repeater.php +5 -4 4.1.23.7.3 View file →
@@ -43,11 +43,12 @@
43 43 * @access public
44 44 *
45 45 * @param array $data Optional. Element data. Default is an empty array.
46 46 * @param array|null $args Optional. Element default arguments. Default is null.
47 + *
47 48 */
48 - public function __construct( array $data = [], ?array $args = null ) {
49 - ++self::$counter;
49 + public function __construct( array $data = [], array $args = null ) {
50 + self::$counter++;
50 51
51 52 $this->id = self::$counter;
52 53
53 54 parent::__construct( $data, $args );
@@ -121,15 +122,15 @@
121 122 *
122 123 * Retrieve the fields from the current repeater control.
123 124 *
124 125 * @since 1.5.0
125 - * @deprecated 2.1.0 Use `get_controls()` method instead.
126 + * @deprecated 2.1.0 Use `Repeater::get_controls()` instead.
126 127 * @access public
127 128 *
128 129 * @return array Repeater fields.
129 130 */
130 131 public function get_fields() {
131 - _deprecated_function( __METHOD__, '2.1.0', 'get_controls()' );
132 + _deprecated_function( __METHOD__, '2.1.0', __CLASS__ . '::get_controls()' );
132 133
133 134 return array_values( $this->get_controls() );
134 135 }
135 136