This file contains hidden or 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
| /** | |
| * Create HTML list of pages. | |
| * | |
| * @package Razorback | |
| * @subpackage Walker | |
| * @author Michael Fields <michael@mfields.org> | |
| * @copyright Copyright (c) 2010, Michael Fields | |
| * @license http://opensource.org/licenses/gpl-license.php GNU Public License | |
| * | |
| * @uses Walker_Page |
This file contains hidden or 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
| /* | |
| * Change the password reset text | |
| * | |
| **/ | |
| function change_password_reset_text_filter( $translated_text, $untranslated_text, $domain ) { | |
| switch( $untranslated_text ) { | |
| case 'Enter your new password below.': |
This file contains hidden or 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 | |
| function time2str($ts) { | |
| if(!ctype_digit($ts)) { | |
| $ts = strtotime($ts); | |
| } | |
| $diff = time() - $ts; | |
| if($diff == 0) { | |
| return 'now'; | |
| } elseif($diff > 0) { | |
| $day_diff = floor($diff / 86400); |
This file contains hidden or 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
| add_action('wp_dashboard_setup', 'restrict_site_health_dashboard_widget' ); | |
| /** | |
| * Restrict access to Site Health Dashboard Widget | |
| * | |
| */ | |
| function restrict_site_health_dashboard_widget() { | |
| // permitted users | |
| $permitted_users = []; // Array of permitted user ids |
OlderNewer