Make WordPress Core

Ticket #25671: theme_mods.diff

File theme_mods.diff, 450 bytes (added by scottsweb, 11 years ago)

Initial patch with added filter

  • wp-includes/theme.php

    Date: Wed, 23 Oct 2013 16:28:49 +0100
    ---
     wp-includes/theme.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/wp-includes/theme.php b/wp-includes/theme.php
    index e12ac74..e7bf02d 100644
    a b function get_theme_mods() { 
    764764                        delete_option( "mods_$theme_name" );
    765765                }
    766766        }
    767         return $mods;
     767        return apply_filters( 'theme_mods', $mods );
    768768}
    769769
    770770/**