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 | |
class PostContentData { | |
public function __construct( | |
public string $excerpt, | |
public string $content, | |
) {} | |
} | |
class SettingsData { |
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
bash bin/install-wp-tests.sh wordpress_test root '' localhost latest |
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
# Protect all readme.md files. | |
<Files ~ "\.md$"> | |
Order allow,deny | |
Deny from all | |
</Files> | |
# Protect access to all composer.json files. | |
<Files ~ "composer\.json$"> | |
Order allow,deny | |
Deny from all |
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 a Poedit project for your theme if you haven't already, and make sure to add __ on the Sources keywords tab and other gettext functions declared in WordPress: _e, ... | |
Go to Edit->Preferences. | |
On the Parsers tab, add a new parser with these settings: | |
Language: Twig | |
List of extensions: *.twig | |
Parser command: xgettext --language=Python --add-comments=TRANSLATORS --force-po -o %o %C %K %F | |
An item in keyword list: -k%k | |
An item in input files list: %f | |
Source code charset: --from-code=%c | |
Save and Update! |
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
'aliases' => [ | |
'Action' => 'Themosis\\Facades\\Action', | |
'Ajax' => 'Themosis\\Facades\\Ajax', | |
'Asset' => 'Themosis\\Facades\\Asset', | |
'Config' => 'Themosis\\Facades\\Config', | |
'Controller' => 'Themosis\\Route\\Controller', | |
'Field' => 'Themosis\\Facades\\Field', | |
'Form' => 'Themosis\\Facades\\Form', | |
'Html' => 'Themosis\\Facades\\Html', | |
'Input' => 'Themosis\\Facades\\Input', |
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 | |
namespace Themosis\Taxonomy; | |
/** | |
* TaxField class | |
* | |
* Allow the user to add custom fields to a taxonomy. | |
*/ | |
class TaxField |
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
./configure --with-openssl=/usr/local/opt/openssl --with-libxml-dir=/usr/local/opt/libxml2 --enable-mbstring --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pear=/usr/local --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" /> | |
<title>untitled</title> | |
<link rel="stylesheet" href="" /> | |
</head> | |
<body> |