Network Shared Posts
A bug, and a fix. (2 posts)

  1. applehat
    Posted 3 years ago #

    Hey, I found a bug.

    If you dont define a taxonomy, you will get an error in your SQL statement.

    In network-shared-posts.php:

    on line ~149
    $ids = ' AND ('. substr($ids,0,strlen($ids)-2).')';

    If $ids is not set (no taxonomy filter), you get "AND ()" in the SQL.

    A simple fix is to just wrap it like this:

    if ($ids) { $ids = ' AND ('. substr($ids,0,strlen($ids)-2).')'; }

    And that fixes the issue.

    This whole code block should really use a re-structure, but this works.


  2. Code Ext
    Plugin Author

    Posted 3 years ago #

    Thanks for posting this issue. I'm gonna fix it.
    What do you mean 're-structure'? What do you think should be done?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Network Shared Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.