Le mirroring des dépôts vers Github est maintenant natif dans Gitlab (et donc Framagit). Merci de passer à la fonction native pour que nous puissions couper notre solution maison. Détails sur https://docs.gitlab.com/ee/workflow/repository_mirroring.html#pushing-to-a-remote-repository (pensez à supprimer le webhook de notre solution maison).

Commit a00225a9 by Cyrille37

remove some Yoast stuff

parent bf1babf8
......@@ -49,6 +49,8 @@ class CommunityProject
if( is_admin() )
{
// defined( 'DOING_AJAX' ) && DOING_AJAX
//add_action( 'admin_menu', array( $this, 'redirect_if_not_author' ) );
add_action( 'admin_menu', array( $this, 'remove_meta_boxes' ) );
......@@ -60,12 +62,40 @@ class CommunityProject
add_action( 'save_post', array( $this, 'save_custom_meta_box' ), 10, 3 );
add_action( 'wp_dashboard_setup', array( new DashboardWidget(), 'wp_dashboard_setup' ) );
add_filter( 'manage_edit-project_columns', array( $this, 'remove_columns') );
//add_filter( 'wpseo_use_page_analysis', array($this,'wpseo_use_page_analysis') );
//add_filter( 'wpseo_options', array($this,'wpseo_options') );
add_action( 'admin_enqueue_scripts', array( $this, 'wp_admin_enqueue_scripts' ) );
}
add_action( 'admin_enqueue_scripts', array( $this, 'wp_admin_enqueue_scripts' ) );
new ShortcodeController();
}
/*function wpseo_options( $options )
{
error_log(__METHOD__);
error_log( print_r($options,true) );
}*/
/*function wpseo_use_page_analysis()
{
error_log(__METHOD__);
return false ;
}*/
function remove_columns( $columns )
{
// remove the Yoast SEO columns
unset( $columns['wpseo-score'] );
unset( $columns['wpseo-links'] );
unset( $columns['wpseo-linked'] );
unset( $columns['wpseo-score-readability'] );
return $columns;
}
function wp_admin_enqueue_scripts()
{
// remove wp logo submenu
......
......@@ -8,7 +8,7 @@ class UserRoleController
public static function isStudent()
{
if( ! is_user_logged_in() )
if( ! \is_user_logged_in() )
return false ;
$current_user = wp_get_current_user();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment