Codeinwp / optimole-wp

31 stars 8 forks source link

Avada saved page content is optimized #413

Closed GrigoreMihai closed 2 years ago

GrigoreMihai commented 2 years ago

Describe the bug When using Avada Live to save a page the content of the page has optimized urls saved.

To Reproduce Create a page with avada builder and add an image. Then edit it with avada live and the image will be optimized in the post content.

Expected behavior Do not replace saved content with optimized urls. We already had a compatibility for this but is now working anymore (although the query url is still fb-edit ) .

WordPress Environment Site health:

``` ### wp-core ### version: 5.9.2 site_language: en_US user_language: en_US timezone: +00:00 permalink: /%year%/%monthnum%/%day%/%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 2 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/nexusweb/public_html/optimole wordpress_size: 46.91 MB (49189614 bytes) uploads_path: /home/nexusweb/public_html/optimole/wp-content/uploads uploads_size: 19.15 MB (20076398 bytes) themes_path: /home/nexusweb/public_html/optimole/wp-content/themes themes_size: 29.06 MB (30474363 bytes) plugins_path: /home/nexusweb/public_html/optimole/wp-content/plugins plugins_size: 50.70 MB (53162059 bytes) database_size: 4.63 MB (4857383 bytes) total_size: 150.45 MB (157759817 bytes) ### wp-active-theme ### name: Avada (Avada) version: 7.6.1 author: ThemeFusion author_website: https://themeforest.net/user/ThemeFusion parent_theme: none theme_features: core-block-patterns, fusion-builder-options, widgets-block-editor, title-tag, automatic-feed-links, custom-header, custom-background, woocommerce, wc-product-gallery-zoom, wc-product-gallery-slider, wc-product-gallery-lightbox, post-formats, post-thumbnails, fusion-builder-demos, menus, align-wide, wp-block-styles, editor-font-sizes, widgets theme_path: /home/nexusweb/public_html/optimole/wp-content/themes/Avada auto_update: Disabled ### wp-themes-inactive (1) ### Twenty Twenty-Two: version: 1.1, author: the WordPress team, Auto-updates disabled ### wp-plugins-active (6) ### Avada Builder: version: 3.6.1, author: ThemeFusion, Auto-updates disabled Avada Core: version: 5.6.1, author: ThemeFusion, Auto-updates disabled Image optimization service by Optimole: version: 3.3.1, author: Optimole, Auto-updates disabled Optimole debug: author: (undefined), version: 0.0.1, Auto-updates disabled Pirate Parrot: version: 1.3.0, author: Themeisle, Auto-updates disabled WP File Manager: version: 7.1.4, author: mndpsingh287, Auto-updates disabled ### wp-plugins-inactive (1) ### Optimole exclude avada builder page from optimization on edit: author: (undefined), version: 0.0.1, Auto-updates disabled ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1808 imagemagick_version: ImageMagick 7.1.0-20 Q16-HDRI x86_64 2022-01-22 https://imagemagick.org imagick_version: 3.5.1 file_uploads: File uploads is turned off post_max_size: 32M upload_max_filesize: 32M max_effective_size: 32 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 125 GB imagick::RESOURCETYPE_DISK: 9.2233720368548E+18 imagick::RESOURCETYPE_FILE: 12288 imagick::RESOURCETYPE_MAP: 125 GB imagick::RESOURCETYPE_MEMORY: 63 GB imagick::RESOURCETYPE_THREAD: 1 imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YAML, YCbCr, YCbCrA, YUV gd_version: 2.2.5 gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: 9.25 ### wp-server ### server_architecture: Linux 3.10.0-714.10.2.lve1.5.12.el7.x86_64 x86_64 httpd_software: Apache php_version: 7.4.28 64bit php_sapi: cgi-fcgi max_input_variables: 1000 time_limit: 30 memory_limit: 128M admin_memory_limit: 256M max_input_time: -1 upload_max_filesize: 32M php_post_max_size: 32M curl_version: 7.71.0 OpenSSL/1.1.1d suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: false ### wp-database ### extension: mysqli server_version: 5.7.37 client_version: mysqlnd 7.4.28 max_allowed_packet: 268435456 max_connections: 151 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/nexusweb/public_html/optimole/wp-content WP_PLUGIN_DIR: /home/nexusweb/public_html/optimole/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable ```

Ticket: https://secure.helpscout.net/conversation/1793422476/310835?folderId=2353196 .

pirate-bot commented 2 years ago

:tada: This issue has been resolved in version 3.3.3 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: