• Hello!

    I have been using WordPress for a long time, and ever since I always have the problem of integrating WordPress into other content management system (for example, phpbb, etc). The main problem is that many function names in WordPress are not prefixed with ‘wp_’ therefore conflicting with function names in other existing content management systems out there.

    For example, in files wp-includes/functions.php or wp-includes/formatting.php there are several functions defined with and without ‘wp_’ prefix. Why not add the ‘wp_’ prefix for all function names so that WordPress can more easily get integrated into other systems.

    Please let me know what you think.
    Best regards,
    Farshid

Viewing 4 replies - 1 through 4 (of 4 total)
  • There is a long term process in place to use the wp_ extension wherever possible but it will take some times to make all of the changes needed due to a need to retain some level of backwards compatibility.

    Thread Starter farshidhss

    (@farshidhss)

    Thanks for your quick reply 🙂
    I see the point. Is this backward compatibility only for the plugins or there is more to it?
    It appears to me that plugins are going to be incompatible sooner or later, even between 3.6 and 3.5.2 there are several incompatible plugins, which in my opinion is not a problem, as it’s the developer responsibility to keep their plugins updated.

    Is this backward compatibility only for the plugins or there is more to it?

    Plugins and themes mainly.

    It appears to me that plugins are going to be incompatible sooner or later

    Only if it is no longer maintained. Some plugins are 5 years old or more and are still maintained & compatible with WP 3.6. Whilst I agree that compatibility is primarily the responsibility of 3rd party developers, WordPress does not wish to break the sites of its users in an upgrade, Heavens – we have enough complaints every upgrade as it is! So this is likely to continue to move at a relatively slow & controlled pace.

    Thread Starter farshidhss

    (@farshidhss)

    Thanks and keep up the good work. It’s still great to know WordPress is making this change gradually, knowing that when it comes to integration this applies to every CMS and not just WordPress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘prefixing ALL function names with 'wp_'’ is closed to new replies.