WordPress.org

Ready to get started?Download WordPress

Forums

prefixing ALL function names with 'wp_' (5 posts)

  1. farshidhss
    Member
    Posted 1 year ago #

    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

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  3. farshidhss
    Member
    Posted 1 year ago #

    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.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  5. farshidhss
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic