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
# Run this script inside a git directory and have Githubs gh command in the path. | |
import subprocess | |
import json | |
from datetime import datetime | |
import statistics | |
def run_command(command): | |
result = subprocess.run(command, shell=True, text=True, capture_output=True) | |
if result.returncode != 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
{ | |
"landingPage": "/wp-admin/?welcome=0", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "latest" | |
}, | |
"steps": [ | |
{ | |
"step": "login", | |
"username": "admin", |
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
{ | |
"landingPage": "/wp-admin/?welcome=0", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "latest" | |
}, | |
"steps": [ | |
{ | |
"step": "login", | |
"username": "admin", |
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
{ | |
"landingPage": "/wp-admin/?welcome=0", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "latest" | |
}, | |
"steps": [ | |
{ | |
"step": "login", | |
"username": "admin", |
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
{ | |
"landingPage": "/wp-admin/", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "latest" | |
}, | |
"steps": [ | |
{ | |
"step": "login", | |
"username": "admin", |
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
{ | |
"landingPage": "/wp-admin/", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "latest" | |
}, | |
"steps": [ | |
{ | |
"step": "login", | |
"username": "admin", |
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
<?php | |
// SOURCE: https://gist.github.com/seebz/c00a38d9520e035a6a8c | |
class iCal | |
{ | |
/** | |
* @var string | |
*/ | |
public $title; |
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
<?php | |
/** | |
* Plugin Name: Cross-Locale PTE | |
* Plugin URI: https://meta.trac.wordpress.org/ticket/2000 | |
* Description: Implements a user that can approve and import translations in all | |
* translation-sets of a project but cannot overwrite current translations by others. | |
*/ | |
// This is re-implemented in the following filter. | |
remove_filter( 'gp_pre_can_user', 'gp_route_translation_set_permissions_to_validator_permissions' ); |
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
<?php | |
/** | |
* Plugin Name: Cross-Locale PTE | |
* Plugin URI: https://meta.trac.wordpress.org/ticket/2000 | |
* Description: Implements a user that can approve and import translations in all | |
* translation-sets of a project but cannot overwrite current translations by others. | |
*/ | |
class CrossLocalePTE { | |
public static function init() { |
NewerOlder