• Hello there, I’m getting this small deprecated notice in your plugin:

    Incorrect Use of register_taxonomy() Used in wp-content/plugins/file-gallery/file-gallery.php on line 922. Taxonomy names must be between 1 and 32 characters in length. This message was added in version 4.2.

    To be forward-coded, can you add some changes to your plugin logic and add a condition to account for greater than 4.2 versions of wordpress in this case?

    https://www.ads-software.com/plugins/file-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aesqe

    (@aesqe)

    @mkormendy: hmm, off the top of my head, that would mean that the constant FILE_GALLERY_MEDIA_TAG_NAME is either empty, or its length is greater than 32 characters. It’s more probable that it’s empty for some reason – and it shouldn’t be.

    Do you have any other plugin that handles media tags?

    p.s.: the function in which that constant is set is “file_gallery_media_tags_get_taxonomy_slug” and it’s located in the “file-gallery/includes/media-tags.php” file.

    Thread Starter mkormendy

    (@mkormendy)

    No, I don’t think I am using any other plugin for media tags. I only like to use your plugin’s implementation, and have been following/using it since you launched it post-school.

    Plugin Author Aesqe

    (@aesqe)

    @mkormendy: I know I’m way too late with my response, but I just wanted to let you know that in version 1.8.5.2 of File Gallery, the plugin will show a dismissible notice in the admin area if media tags taxonomy name is empty or longer than 32 characters.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Incorrect Use of register_taxonomy()’ is closed to new replies.