WordPress.org

Make WordPress Core

Changes between Version 6 and Version 9 of Ticket #22256


Ignore:
Timestamp:
10/22/12 20:25:36 (2 years ago)
Author:
scribu
Comment:

Oh yeah. Well, in the mean time, I replaced . with :.

Started a proof of concept over here: https://github.com/scribu/WordPress/compare/hook-ns/22256

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22256

    • Property Cc xoodrew@… added
  • Ticket #22256 – Description

    v6 v9  
    1111 
    1212{{{ 
    13 add_action( 'after_setup_theme.twentytwelve', function() { 
     13add_action( 'after_setup_theme:twentytwelve', function() { 
    1414  // do stuff 
    1515} 
    1616 
    17 add_action( 'after_setup_theme.twentytwelve', function() { 
     17add_action( 'after_setup_theme:twentytwelve', function() { 
    1818  // do more stuff 
    1919} 
    2020 
    21 add_filter( 'posts_clauses.p2p', function( $clauses ) { 
     21add_filter( 'posts_clauses:p2p', function( $clauses ) { 
    2222  // do stuff 
    2323} 
     
    2828{{{ 
    2929// remove specific callbacks added by the Twentytwelve theme 
    30 remove_action( 'after_setup_theme.twentytwelve' ); 
     30remove_action( 'after_setup_theme:twentytwelve' ); 
    3131 
    3232// remove all callbacks added by the P2P plugin 
    33 remove_action( '*.p2p' ); 
     33remove_action( '*:p2p' ); 
    3434}}} 
    3535