WordPress.org

Ready to get started?Download WordPress

Forums

WP2Cloud
[resolved] $wpdb->cloud_media_content (3 posts)

  1. Per Soderlind
    Member
    Posted 1 year ago #

    This doesn't work

    $wblb = $wpdb->get_row("SELECT id,name FROM $wpdb->cloud_media_content WHERE name = '" . $filename . "'");

    I have to do

    $wblb = $wpdb->get_row("SELECT id,name FROM MYPREFIX_cloud_media_content WHERE name = '" . $filename . "'");

    http://wordpress.org/extend/plugins/wp2cloud-wordpress-to-cloud/

  2. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Per,

    Thank you for the report!

    WP2Cloud indeed doesn't add a cloud_media_content member to $wpdb, so currently the proper way to obtain the name is something like this: $table_name = $wpdb->prefix . "cloud_media_content";

    This practice seems to be in line with the WordPress Codex recommendation and the practice that we've seen in other plugins.

    Let us know if you think that this is something WP2Cloud should support.

  3. Per Soderlind
    Member
    Posted 1 year ago #

    No, you right .. using $wpdb->prefix . "cloud_media_content" is fine, sorry it's a bit late :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.