Plugin Directory

Changeset 206734


Ignore:
Timestamp:
02/16/2010 09:15:41 PM (16 years ago)
Author:
zeeg
Message:

Also check for page titles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lifestream/trunk/inc/core.php

    r206733 r206734  
    17251725            // First let's see if they have a legacy page:
    17261726           
    1727             $results = $wpdb->get_results($wpdb->prepare("SELECT `ID` FROM `".$wpdb->prefix."posts` WHERE `post_type` = 'page' AND `post_content` LIKE '%%[lifestream]%%' AND `post_author` = %d AND `post_status` != 'trash' LIMIT 2", $userdata->ID));
     1727            $results = $wpdb->get_results($wpdb->prepare("SELECT `ID` FROM `".$wpdb->prefix."posts` WHERE `post_type` = 'page' AND (`post_content` LIKE '%%[lifestream]%%' OR `post_title` LIKE 'Lifestream') AND `post_author` = %d AND `post_status` != 'trash' LIMIT 2", $userdata->ID));
    17281728            if (count($results) == 1)
    17291729            {
Note: See TracChangeset for help on using the changeset viewer.