WordPress.org

Ready to get started?Download WordPress

Forums

Cimy User Extra Fields
[resolved] in 3.3 beta says wp_register_script called incorrectly (5 posts)

  1. anmari
    Member
    Posted 2 years ago #

    Message:

    <b>Notice</b>
    : wp_register_script was called
    incorrectly
    . Scripts and styles should not be registered or enqueued until the
    wp_enqueue_scripts
    ,
    admin_enqueue_scripts
    , or
    init
    hooks. Please see
    Debugging in WordPress
    for more information. (This message was added in version 3.3.) in

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

    Also LOTS of notices that you may want to address from a good coding perspective - I've had a request to integrate the fields generated by your plugin to my user listing plugin. I develop with debug on - your plugin generates many notices, which makes it hard to use in a development environment that has debug on.

  2. anmari
    Member
    Posted 2 years ago #

    Wow - just read the trac notice that was linked.

    Cimy gets a mention !

    http://core.trac.wordpress.org/ticket/11526

  3. Marco Cimmino
    Member
    Plugin Author

    Posted 2 years ago #

    Yes I know, but the fix is not so obvious, especially if I want to NOT include all JavaSripts by default.

  4. Marco Cimmino
    Member
    Plugin Author

    Posted 2 years ago #

    I rewrote all the JavaScripts inclusion to make this possible, it was 1 day of work, but the warning should be gone and my plug-in should behave much better with other plug-ins too.

    I hope to not have introduced new bugs, but might be possible.
    You can check the development version.

  5. Marco Cimmino
    Member
    Plugin Author

    Posted 2 years ago #

    One regression found and fixed. Soon I will release v2.3.0 with all the changes, but if you can download the development version earlier and tell me if works for you would be great.
    http://downloads.wordpress.org/plugin/cimy-user-extra-fields.zip

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic