View glotpress-last.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: GlotPress Last | |
* Plugin URI: https://www.screenfeed.fr | |
* Description: Prevent WP from loading a plugin's .mo files from the languages directory first. Instead, WP will first try to load the files from the plugin. | |
* Version: 1.0 | |
* Author: Grégory Viguier | |
* Author URI: https://www.screenfeed.fr/greg/ | |
* License: GPLv3 | |
* License URI: https://www.screenfeed.fr/gpl-v3.txt |
View no-ultimate-maintenance-mode-external-resources.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* !---------------------------------------------------------------------------- */ | |
/* ! ULTIMATE MAINTENANCE MODE */ | |
/* ----------------------------------------------------------------------------- */ | |
/** | |
* Make it local or die: | |
* Remove the image ad from the settings page (the link stays in place). | |
*/ |
View conditional-js-scripts.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// !Tool to easily add a "conditional" data to a script. | |
if ( ! function_exists('sf_conditional_script') ): | |
function sf_conditional_script( $script, $condition = 'lt IE 9' ) { | |
return $GLOBALS['wp_scripts']->add_data( $script, 'conditional', $condition ); | |
} | |
endif; | |
// !Enqueue script(s). |
View sf_remove_fuckin_maps_maker_ad.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// !WordPress Plugin "Leaflet Maps Marker" | |
if ( class_exists( 'Leafletmapsmarker' ) ) : | |
// !Remove the fuckin' ad from the plugins list (I'm not paid to do that, it just makes me happy). Next time, follow WP guidelines. Kisses =) | |
add_action( 'admin_print_styles-plugins.php', 'sf_remove_fuckin_maps_maker_ad_from_plugins_list' ); | |
function sf_remove_fuckin_maps_maker_ad_from_plugins_list() { | |
global $wp_filter; |