WordPress.org

Plugin Directory

Changeset 617782


Ignore:
Timestamp:
10/26/12 16:41:22 (18 months ago)
Author:
jblz
Message:

Jetpack: Don't throw a PHP Notice in safecss_skip_stylesheet() when $safecss_postID? isn't set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/custom-css/custom-css.php

    r617433 r617782  
    237237        else { 
    238238            $safecss_post = get_safecss_post(); 
    239  
    240             return (bool) ( get_option('safecss_add') == 'no' || get_post_meta( $safecss_post['ID'], 'custom_css_add', true ) == 'no' ); 
     239            $safecss_post_id = isset( $safecss_post['ID'] ) ? $safecss_post['ID'] : null; 
     240            return (bool) ( get_option('safecss_add') == 'no' || get_post_meta( $safecss_post_id, 'custom_css_add', true ) == 'no' ); 
    241241        } 
    242242    } 
Note: See TracChangeset for help on using the changeset viewer.