• Resolved Cleanforest.co

    (@noamcleanforestsolutionscom)


    I had a multiple imports fail due to case-sensitivity. (IMG SRC, IMG src, etc).

    Here are updated preg_match_all() which are case-insensitive:

    Line 139:
    preg_match_all(‘/<a[^>]* href=[\'”]?([^>\'” ]+)/i’, $content, $matches);

    Line 771:
    preg_match_all(‘/<img[^>]* src=[\'”]?([^>\'” ]+)/i’, $post->post_content, $matches);

    Line 778:
    preg_match_all(‘/<img[^>]* src=[\'”]?([^>\'” ]+)/i’, $custom, $matches);

    Line 851:
    preg_match_all(‘/<a[^>]* href=[\'”]?([^>\'” ]+)/i’, $content, $matches);

    https://ww.wp.xz.cn/plugins/import-html-pages/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Image case-sensitivity’ is closed to new replies.