PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.38
Timetics – Appointment Booking Calendar & Scheduling v1.0.38
1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 All 62 releases
← All changes | base/post-model.php +2 -2 1.0.161.0.38 View file →
@@ -46,9 +46,9 @@
46 46 if ( isset( $this->data[$name] ) ) {
47 47 return $this->data[$name];
48 48 }
49 49
50 - throw new \Exception( sprintf( esc_html__( 'Undefined property %s', 'timetics' ), $name ) );
50 + throw new \Exception( sprintf( esc_html__( 'Undefined property %s', 'timetics' ), esc_attr( $name ) ) );
51 51 }
52 52
53 53 /**
54 54 * Set dynamic property
@@ -59,9 +59,9 @@
59 59 * @return void
60 60 */
61 61 public function __set( $key, $value ) {
62 62 if ( ! isset( $this->data[$key] ) ) {
63 - throw new \Exception( sprintf( esc_html__( 'Undefined property %s', 'timetics' ), $key ) );
63 + throw new \Exception( sprintf( esc_html__( 'Undefined property %s', 'timetics' ), esc_attr( $key ) ) );
64 64 }
65 65
66 66 $this->data[$key] = $value;
67 67 }