Skip to content

Commit

Permalink
today
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Mar 18, 2015
1 parent 709417d commit 7003c65
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 424 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@
[submodule "plugin-installer-speedup"]
path = plugin-installer-speedup
url = git@github.com:szepeviktor/plugin-installer-speedup.git
[submodule "what-the-file"]
path = what-the-file
url = https://github.com/barrykooij/what-the-file.git
2 changes: 1 addition & 1 deletion mu-smtp-uri/smtp-uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Set PHPMailer SMTP options from the SMTP_URI named constant.
*
* smtp:// smtps:// smtpstarttls:// smtptls://
* smtp:// smtps:// smtpstarttls:// smtptls://
*
* define( 'SMTP_URI', 'smtps://<USERNAME>:<PASSWORD>@<HOST>:<PORT>/<FROM-NAME>#<FROM-ADDRESS>' );
*
Expand Down
32 changes: 3 additions & 29 deletions mu-strip-dashboard/strip-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Strip the Dashboard
Plugin URI: https://github.com/szepeviktor/wordpress-plugin-construction
Description: Remove thing visually from the WordPress admin.
Version: 0.1
Version: 0.2
License: The MIT License (MIT)
Author: Viktor Szépe
Author URI: http://www.online1.hu/webdesign/
Expand All @@ -14,36 +14,13 @@ class O1_Strip_Dashboard {

public function __construct() {

add_action( 'admin_menu', array( $this, 'remove_comments_admin_menu' ) );
add_action( 'admin_init', array( $this, 'redirect_comments_admin_menu' ) );
add_action( 'wp_before_admin_bar_render', array( $this, 'remove_admin_bar_links' ) );
add_action( 'in_admin_footer', array( $this, 'remove_update_footer' ) );
add_filter( 'admin_footer_text', array( $this, 'online1_webdesign' ) );
}

/**
* Remove "Comments" from the admin menu
*/
public function remove_comments_admin_menu() {

remove_menu_page( 'edit-comments.php' );
}

/**
* Redirect any user trying to access comments page
*/
public function redirect_comments_admin_menu() {

global $pagenow;

if ( 'edit-comments.php' === $pagenow ) {
wp_redirect( admin_url() );
die();
}
}

/**
* Remove links from admin bar
* Remove links from the admin bar
*/
public function remove_admin_bar_links() {

Expand All @@ -61,9 +38,6 @@ public function remove_admin_bar_links() {
$wp_admin_bar->remove_menu( 'support-forums' );
// Feedback link
$wp_admin_bar->remove_menu( 'feedback' );

// Comments link
$wp_admin_bar->remove_menu( 'comments' );
}


Expand All @@ -80,7 +54,7 @@ public function remove_update_footer() {
*/
public function online1_webdesign( $footer ) {

return '<span id="footer-thankyou">online1 - honlapkészítés/webdesign</span>';
return '<span id="footer-thankyou">online1 - web technoligies/webes technológiák</span>';
}
}

Expand Down
1 change: 1 addition & 0 deletions what-the-file
Submodule what-the-file added at 1da1a6
97 changes: 0 additions & 97 deletions what-the-file/readme.txt

This file was deleted.

Loading

0 comments on commit 7003c65

Please sign in to comment.