Making WordPress.org


Ignore:
Timestamp:
10/21/2016 04:10:02 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Site Cloner: Convert to REST/Backbone to improve scalability

See #1112
Props prettyboymp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-site-cloner/includes/source-site-id-setting.php

    r1715 r4280  
    22
    33namespace WordCamp\Site_Cloner;
    4 
    54defined( 'WPINC' ) or die();
    65
     
    1615    public $default           = 0;
    1716    public $sanitize_callback = 'absint';
     17
    1818    protected $preview_source_site_id;
    1919
     
    2929        add_filter( 'get_post_metadata',       array( $this, 'preview_jetpack_postmeta' ), 10, 4 );
    3030        add_filter( 'safecss_skip_stylesheet', array( $this, 'preview_skip_stylesheet'  ) );
     31
     32        // Disable the current site's Custom CSS from being output
     33        remove_action( 'wp_head', array( 'Jetpack_Custom_CSS', 'link_tag' ), 101 );
    3134    }
    3235
     
    110113     *
    111114     * @param int $source_site_id
     115     *
     116     * @return null
    112117     */
    113118    protected function update( $source_site_id ) {
Note: See TracChangeset for help on using the changeset viewer.