Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just to clarify….

    In each instance of replacing..

    str_replace(" ","",$str);
    with
    preg_replace("/[^A-Za-z0-9]/","",$str);

    You need to make sure the $str is the same as the one replacing, there’s no blanket find and replace you can do for the file as the $var the string replacement is working on varies. Make sure the preg replace applies to the same $var as the str_replace was.

    OK, pretty sure I’ve fixed this. Problem was with certain un-escaped chracters.

    In file
    metabox-feature-options.php

    You need to replace all instances of
    str_replace(" ","",$str);
    with
    preg_replace("/[^A-Za-z0-9]/","",$str);

    This is a bit stricter and strips out other characters which could cause jQuery some trouble.

    You of course have to ‘Update’ the table each time as this performs the save!

    I’ve noticed this too, I believe it’s to do with certain characters not being escaped in the ajax .post on deleting a feature.

    An ampersand in the feature title (&) will cause this for example. In firebug this causes an error with…

    Error: Syntax error, unrecognized expression: .FraudProtection&Security
    http://..../wp-admin/load-scripts.php?c=0&load%5B%5D=jquery,utils&ver=3.5.1
    Line 2

    @estuffs – if you want the remove the circle in the grey theme, just edit the css creating that. It’s in the grey template file… pricing-table/tpls/price_table-gray.php – you can edit this within the wordpress gui.

Viewing 3 replies - 1 through 3 (of 3 total)