WordPress.org

Plugin Directory

Changeset 799892


Ignore:
Timestamp:
11/06/13 16:18:36 (4 years ago)
Author:
InoPlugs
Message:

Fixed http://wordpress.org/support/topic/errors-when-no-result-in-search-page

Location:
wp-backgrounds-lite/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-backgrounds-lite/trunk/inoplugs_background_plugin.php

    r690197 r799892  
    55 *  Description: Set clickable fullsize background images for Posts/Pages | Get the Premium version here: <a href="http://inoplugs.com/wpbackgroundsII">WP-Backgrounds II</a> 
    66 *  Author: InoPlugs 
    7  *  Version: 2.2.5 
     7 *  Version: 2.2.6 
    88 *  Author URI: http://inoplugs.com 
    99 */ 
  • wp-backgrounds-lite/trunk/inoplugs_classes/inoplugs_background_display.php

    r659145 r799892  
    55 * 
    66 * @author InoPlugs | Peter Schoenmann 
    7  * @version 1.0.0.0 
     7 * @version 1.1.0.0 
    88 * 
    99 */ 
     
    144144        global $wp_query, $post; 
    145145 
    146         $get_external_bg_image = get_post_meta($wp_query->post->ID, 'upload_image', true); 
    147         $get_image_link = get_post_meta($wp_query->post->ID, 'image_url', true); 
     146        if(!empty($wp_query->post->ID)) 
     147        { 
     148            $get_external_bg_image = get_post_meta($wp_query->post->ID, 'upload_image', true); 
     149            $get_image_link = get_post_meta($wp_query->post->ID, 'image_url', true); 
     150        } 
    148151 
    149152        if (empty($get_external_bg_image)) { 
  • wp-backgrounds-lite/trunk/readme.txt

    r795800 r799892  
    55Requires at least: 3.0 
    66Tested up to: 3.7.1 
    7 Stable tag: 2.2.5 
     7Stable tag: 2.2.6 
    88 
    99Set clickable fullscreen background images for single posts and pages. Compatible with all major browsers and very easy to install. 
     
    122122 
    123123 
     124= 2.2.6 = 
     125* Fixed php warning on search page 
     126 
     127 
    124128== Upgrade Notice == 
    125129 
Note: See TracChangeset for help on using the changeset viewer.