• Resolved tegsheee

    (@tegsheee)


    Hello,

    I would like to report a bug. Whenever i add a background image to a strip, a lot of unnecessary information is being saved in code. Here is a snippet from the excess: 03e\n\n\u003cli id='mlo-category-2733'\u003e\u003clabel class=\u0022selectit\u0022\u003e\u003cinput value=\u00221\u0022 type=\u0022checkbox\u0022 name=\u0022mlo-category_2733\u0022 class=\u0022check\u0022 data-taxonomy=\u0022mlo-category\u0022 /\u003e Backgrounds\u003c/label\u003e\u003c/li\u003e\n\n\u003cli id='m It goes hundreds of lines.

    In case, this is a mistake on my side, could you please tell me how to avoide it.
    Thank you and Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Miles

    (@areoimiles)

    Hi @tegsheee

    I’ve had a look into this and the data that gets included, is the media object returned from the built in WP media uploader (it’s just image data: url, alt, width, height etc).

    Looking at the data you have provided, this looks to be including the html for form inputs, so I’m not sure where this is coming from and I’m unable to re-create it, so I think this may be something specific to you. It may be that the plugin is adding this additional data because of something you have setup at your end.

    Unfortunately there’s no way for me to know from the small snippet you have provided. If you could send me the full code from the code editor, I can take a looks and it may help me identify why you are having this issue.

    Thanks
    Miles

    Thread Starter tegsheee

    (@tegsheee)

    Hello Miles,

    Thank you for your response. I will try disabling my plugins and tell you if I find some new information.

    Best Regards

    Plugin Author Miles

    (@areoimiles)

    Hi @tegsheee

    I haven’t hear anything back on this, hopefully that means you were able to resolve the issue. I’m going to close this ticket, but if you need anymore assistance, please don’t hesitate to get back in touch.

    Miles

    Thread Starter tegsheee

    (@tegsheee)

    Hello,

    i wanted to give a quick update. The problem was with a plugin called https://wordpress.org/plugins/enable-media-replace/. When a background image is added to the layout blocks, while this plugin is active, then the attribute “compat” of the blocks gets filled with some HTML of the Enable Media Replacer plugin.

    Cheers

    • This reply was modified 9 months ago by tegsheee.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Strip adding unnecessary attributes/code’ is closed to new replies.