corrections de deprecated manuelle
This commit is contained in:
parent
01830857a4
commit
b42d746407
4 changed files with 15 additions and 4 deletions
|
|
@ -49,7 +49,11 @@ function remove_comment_author_class( $classes ) {
|
|||
add_filter( 'comment_class' , 'remove_comment_author_class');
|
||||
|
||||
/** Renvoi un message d'erreur global au niveau du login de l'admin afin de ne pas savoir si c'est le login ou le pwd qui est faux */
|
||||
add_filter('login_errors',create_function('$a', "return 'Login ou mot de passe incorrect';"));
|
||||
function fn_login_errors(){
|
||||
return 'Login ou mot de passe incorrect';
|
||||
}
|
||||
add_filter('login_errors', 'fn_login_errors');
|
||||
// DEPRECATED -> add_filter('login_errors',create_function('$a', "return 'Login ou mot de passe incorrect';"));
|
||||
|
||||
/** Supprime la balise « generator » du flux rss.*/
|
||||
add_filter('get_the_generator_rss2', '__return_false');
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ if( ! class_exists('Axiom_Plugin_Updater') ) {
|
|||
* existing local file, it will be returned untouched.
|
||||
* @return string|WP_Error The full path to the downloaded package file, or a {@see WP_Error} object.
|
||||
*/
|
||||
public function download_package( $package ) {
|
||||
public function download_package( $package, $check_signatures = false, $hook_extra = array() ) {
|
||||
// we will override package file with our own package
|
||||
$package = $this->get_downloaded_package_url();
|
||||
|
||||
|
|
|
|||
|
|
@ -113,7 +113,10 @@ class WeDevs_Settings_API {
|
|||
|
||||
if ( isset($section['desc']) && !empty($section['desc']) ) {
|
||||
$section['desc'] = '<div class="inside">'.$section['desc'].'</div>';
|
||||
$callback = create_function('', 'echo "'.str_replace('"', '\"', $section['desc']).'<br />";');
|
||||
//$callback = create_function('', 'echo "'.str_replace('"', '\"', $section['desc']).'<br />";');
|
||||
$callback = function() use($section) {
|
||||
echo str_replace('"', '\"', $section['desc'])."<br />";
|
||||
};
|
||||
} else {
|
||||
$callback = '__return_false';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,4 +92,8 @@ endif;
|
|||
|
||||
|
||||
// init the widget
|
||||
add_action( 'widgets_init', create_function( '', 'register_widget("MSP_Main_Widget");' ) );
|
||||
function init_widget() {
|
||||
register_widget("MSP_Main_Widget");
|
||||
}
|
||||
|
||||
add_action( 'widgets_init', 'init_widget' );
|
||||
Loading…
Add table
Reference in a new issue