PluginProbe
Elementor Website Builder – more than just a page builder / 3.9.2
Elementor Website Builder – more than just a page builder v3.9.2
4.3.0-beta3 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 All 452 releases
← All changes | core/page-assets/data-managers/base.php +3 -5 4.2.43.9.2 View file →
@@ -172,9 +172,9 @@
172 172 *
173 173 * @since 3.3.0
174 174 * @access protected
175 175 *
176 - * @param string $version
176 + * @param string $asset_key
177 177 *
178 178 * @return boolean
179 179 */
180 180 protected function is_asset_version_changed( $version ) {
@@ -188,9 +188,9 @@
188 188 *
189 189 * @since 3.3.0
190 190 * @access protected
191 191 *
192 - * @param string $data_type (exists|content|size).
192 + * @param string $data_type (content|size)
193 193 * @param string $file_key - In case that the same file data is needed for multiple assets (like a JSON file), the file data key should be the same for all shared assets to make sure that the file is being read only once.
194 194 *
195 195 * @return string|number
196 196 */
@@ -206,11 +206,9 @@
206 206 }
207 207
208 208 $asset_path = $this->get_file_path();
209 209
210 - if ( 'exists' === $data_type ) {
211 - $data = file_exists( $asset_path );
212 - } elseif ( 'content' === $data_type ) {
210 + if ( 'content' === $data_type ) {
213 211 $data = Utils::file_get_contents( $asset_path );
214 212
215 213 if ( ! $data ) {
216 214 $data = '';