Create empty repository and add origin without checkout:
mkdir <repo>
cd <repo>
git init
git remote add -f origin <url>
Set sparse checkout:
git config core.sparseCheckout true
add_filter( 'gettext', 'debug_translations', 30, 3 ); | |
function debug_translations( $translated_text, $text, $domain ) { | |
if ( $translated_text ) { | |
$output = $translated_text; | |
$output .= '<span style="font-size: 18px; color: white; line-height: 1; background-color: red; width: 24px; padding: 3px; border-radius: 18px;" title="text-domain: '; | |
$output .= $domain; | |
$output .= '">�</span>'; | |
} | |
return $output; | |
} |
// Make DIVI images responsive by adding srcset | |
function make_divi_img_responsive( $output, $tag ) { | |
if ( 'et_pb_image' !== $tag ) { | |
return $output; | |
} | |
if ( ! preg_match_all( '/<img [^>]+>/', $output, $images ) ) { | |
return $output; | |
} | |
foreach ( $images as $image ) { |
Create empty repository and add origin without checkout:
mkdir <repo>
cd <repo>
git init
git remote add -f origin <url>
Set sparse checkout:
git config core.sparseCheckout true