џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџxl/~гџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџl/~гџџџџCМўђ дP€рК,~гџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџшl/~гџџџџK8$д ч€РЏ@џџџџj^RьЩ“рБЗ@џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџm/~гџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ m/~гџџџџ#:MŒК<)›@Л,~гџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџn/~гџџџџK8$д ч€РЏ@џџџџj^RьЩ“рБЗ@&/** * Use this tweak to prevent overriding existing checkout_visibility in case * product data is being updated without visibility data. * * @param null|bool $result * @param $object_id * @param $meta_key * @param $meta_value * @param $prev_value * * @return null|false */џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ%~г џџџџ9< Тwƒh’А@H%~г џџџџ_‘•|€P?Б@ћз™‹UўP‹?Лз™‹UPр`Œ'цз™‹U`@џџџџŒ+ Жз™‹UАџџџџџџџџ>gЋз™‹U p[iЩз™‹UpP€s(Щз™‹U€џџџџџџџџ> Жз™‹UPџџџџџџџџџџџџ‘>О-~гh’А@ о›јўћз™‹UўPI?ыз™‹UJ=Aлз™‹UPPJu жз™‹Uџџџџџџџџ€J<Ћз™‹U,~€`JU„Бз™‹U`pџџџџJљЊ™‹U€џџџџџџџџJ‰ Жз™‹UPџџџџџџџџџџџџK>P?Б@ В-~г@В-~г о›јўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ2xY€[~гPтЎ@џџџџF ›|€р[~г šќ™‹Uџџџџ‘P№qЕа€Р[~гџџџџКzяLmч€Иы.~гџџџџSa|За€€[~г’Дуk8мwƒ я.~гџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ('%~г џџџџ_‘•|€P?Б@ћз™‹UўPЏ?ыз™‹U€А=patible ) ), '', '' ); return $cache_webp_field; } // 7. $cache_webp_field['description'] = sprintf( // Translators: %1$s = plugin name(s), %2$s = opening tag, %3$s = closing tag. esc_html( _n( 'You are using %1$s to convert images to WebP. WP Rocket will create separate cache files to serve your WebP images. %2$sMore info%3$s', 'You are using %1$s to convert images to WebP. WP Rocket will create separate cache files to serve your WebP images. %2$sMore info%3$s', count( $serving_not_compatible ), 'rocket' ) ), esc_html( wp_sprintf_l( '%l', $serving_not_compatible ) ), '', '' ); return $cache_webp_field; } if ( $creating ) { if ( ! $this->options_data->get( 'cache_webp', 0 ) ) { // 3. $cache_webp_field['description'] = sprintf( // Translators: %1$s = plugin name(s), %2$s = opening tag, %3$s = closing tag. esc_html( _n( 'You are using %1$s to convert images to WebP. If you want WP Rocket to serve them for you, activate this option. %2$sMore info%3$s', 'You are using %1$s to convert images to WebP. If you want WP Rocket to serve them for you, activate this option. %2$sMore info%3$s', count( $creating ), 'rocket' ) ), esc_html( wp_sprintf_l( '%l', $creating ) ), '', '' ); return $cache_webp_field; } // 4. $cache_webp_field['description'] = sprintf( // Translators: %1$s = plugin name(s), %2$s = opening tag, %3$s = closing tag. esc_html( _n( 'You are using %1$s to convert images to WebP. WP Rocket will create separate cache files to serve your WebP images. %2$sMore info%3$s', 'You are using %1$s to convert images to WebP. WP Rocket will create separate cache files to serve your WebP images. %2$sMore info%3$s', count( $creating ), 'rocket' ) ), esc_html( wp_sprintf_l( '%l', $creating ) ), '', '' ); return $cache_webp_field; } if ( ! $this->options_data->get( 'cache_webp', 0 ) ) { // 1. if ( rocket_valid_key() && ! \Imagify_Partner::has_imagify_api_key() ) { $imagify_link = ''; } else { // The Imagify page is not displayed. $imagify_link = ''; } $cache_webp_field['description'] = sprintf( // Translators: %1$s = opening tag, %2$s = closing tag. esc_html__( '%5$sWe have not detected any compatible WebP plugin!%6$s%4$s If you donт€™t already have WebP images on your site consider using %3$sImagify%2$s or another supported plugin. %1$sMore info%2$s %4$s If you are not using WebP do not enable this option.', 'rocket' ), '', '', $imagify_link, '
', '', '' ); return $cache_webp_field; } // 2. $cache_webp_field['description'] = esc_html__( 'WP Rocket will create separate cache files to serve your WebP images.', 'rocket' ); return $cache_webp_field; } /** * Disable 'cache_webp' setting field if another plugin serves WebP. * * @since 3.4 * * @param array $cache_webp_field Data to be added to the setting field. * @return array */ public function maybe_disable_setting_field( $cache_webp_field ) { /** This filter is documented in inc/classes/buffer/class-cache.php */ if ( ! apply_filters( 'rocket_disable_webp_cache', false ) ) { return $cache_webp_field; } foreach ( [ 'input_attr', 'container_class' ] as $attr ) { if ( ! isset( $cache_webp_field[ $attr ] ) || ! is_array( $cache_webp_field[ $attr ] ) ) { $cache_webp_field[ $attr ] = []; } } $cache_webp_field['input_attr']['disabled'] = 1; return $cache_webp_field; } }