Support » Plugin: Xiti free » Bug setting prefix

  • Hi.

    First of all: thanks for this plugin! πŸ˜€

    But I have to warn you about a bug I found:
    I set the prefix to blog_ and I kept seeing the word “custom” appearing in the prefix.

    I then checked the code and noticed that you are using global $prefix. This variable was begin set somewhere between the global declaration in the plugin and somewhere else in wordpress.

    I suppose that either you need to change the name of your global variables to something with a prefix (xitifree_plugin_prefix = … etc) to avoid collisions, or, you can do what I think is the correct way: call the “get_option” functions directly in the plugin functions vmxf_printTag and others or store them in local variables.

    For me, I did a quick fix and replaced:
    $prefix=get_option(‘vmxf_prefix_p_value’);
    with:
    $lexiti_prefix=get_option(‘vmxf_prefix_p_value’);

    and then replaced $prefix with $lexiti_prefix in the vmxf_printTag function.

    Thanks again πŸ˜€

    https://wordpress.org/plugins/xiti-free/

  • The topic ‘Bug setting prefix’ is closed to new replies.