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
/** | |
* Display the post excerpt. | |
* | |
* @since 0.71 | |
*/ | |
function the_excerpt() { | |
/** | |
* Filters the displayed post excerpt. | |
* |
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
// Create. | |
var notification = new wp.customize.Notification( | |
'my_id', | |
{ | |
dismissible: true, | |
message: '<p>Message goes here.</p>', | |
type: 'success' | |
} | |
); |
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
// Please see: https://github.com/BoldGrid/boldgrid-backup/issues/9 | |
// Full path: boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php | |
public function is_setup( $try_cache = false ) { | |
// ## ############################# | |
// STEP ONE: COMMENT OUT THIS LOGIC | |
// ## ############################# | |
// If successfully logged in within last 24 hours, return true. | |
//if ( $try_cache && $this->settings->is_last_login_valid() ) { |
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
Code examples used in https://youtu.be/cUeV3S7NGcU | |
# How to specify your error_log file | |
ini_set( "error_log", "/home/user/error_log.txt" ); | |
--- |
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
"packages": [ | |
{ | |
"name": "aws/aws-sdk-php", | |
"version": "2.8.31", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/aws/aws-sdk-php.git", | |
"reference": "64fa4b07f056e338a5f0f29eece75babaa83af68" | |
}, | |
"dist": { |
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
Add this: | |
```php | |
wp_insert_user( array( | |
'user_email' => $userinfo->email, | |
'first_name' => $userinfo->givenName, | |
'last_name' => $userinfo->familyName, | |
'role' => 'author', | |
'user_pass' => md5( $userinfo->email . time() ), | |
'user_login' => explode( '@', $userinfo->email )[0], |
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
public class Foo { | |
public void setPassword(String password) { | |
if (password.length() > 7) { | |
throw new InvalidArgumentException("password"); | |
} | |
} | |
} |
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
public class Foo { | |
public static final int MAX_PASSWORD_SIZE = 7; | |
public void setPassword(String password) { | |
if (password.length() > MAX_PASSWORD_SIZE) { | |
throw new InvalidArgumentException("password"); | |
} | |
} | |
} |
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
for i from 1 to 52 | |
j := i + randomInt(53 - i) - 1 | |
a.swapEntries(i, j) |
OlderNewer