WordPress.org

Plugin Directory

Changeset 588004


Ignore:
Timestamp:
08/20/12 21:31:49 (20 months ago)
Author:
evansolomon
Message:

Simplify logic to sanitize settings input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • oembed-in-comments/trunk/oembed-in-comments.php

    r588003 r588004  
    117117     */ 
    118118    function sanitize_input( $input ) { 
    119         if ( 'on' == $input ) 
    120             return true; 
    121         else 
    122             return false; 
     119        return (bool) 'on' == $input; 
    123120    } 
    124121 
Note: See TracChangeset for help on using the changeset viewer.