pixelgrade / customify

Intuitive Website Styling integrated into WordPress' Customizer
GNU General Public License v2.0
28 stars 5 forks source link

Conflict with Jetpack Custom CSS #87

Closed vladolaru closed 7 years ago

vladolaru commented 7 years ago

Din cauza ca Jetpack se asteapta ca sa poata elimina hook-ul default al WordPress pentru custom css prin liniile astea:

remove_action( 'wp_head', 'wp_custom_css_cb', 11 ); // 4.7.0 had it at 11, 4.7.1 moved it to 101.
remove_action( 'wp_head', 'wp_custom_css_cb', 101 );
add_action( 'wp_head', array( __CLASS__, 'wp_custom_css_cb' ), 101 );

In timp ce noi facem asta:

remove_action( 'wp_head', 'wp_custom_css_cb', 101 );
add_action( $load_location, 'wp_custom_css_cb', 999999999 );

nu prea mai functioneaza lucrurile si custom CSS-ul apare de 2 ori in pagina. O data inainte de css-ul din Customify si o data dupa.