- Why I'm not the biggest WordPress fan - about weaknesses of wp, nehalist.io.
Languages
39,661 gist results
39,661 gist results
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 | |
/** | |
* @package Admin | |
*/ | |
/** | |
* This class handles the pointers used in the introduction tour. | |
* | |
* @todo Add an introdutory pointer on the edit post page too. | |
*/ |
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
LOCATION=uksouth | |
RESOURCE_GROUP_NAME=webapp-config-demo | |
SERVICE_PLAN_NAME=app-service-plan-free-wp | |
SERVICE_PLAN_SKU=FREE | |
WEB_APP_NAME=mywpsite-ahfdskf | |
MARIADB_SKU=B_Gen5_1 | |
MARIADB_SERVER_NAME=dbserver-ahfdskf | |
MARIADB_ADMIN_USER=BOSS_HOGG | |
MARIADB_ADMIN_PASSWORD=R05coePColtrane | |
WORDPRESS_DB_NAME=wpdb |
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
<? | |
/** | |
* Getting Started | |
* "Gutenberg" is a codename for a whole new paradigm in WordPress site building and publishing | |
* Official repository https://github.com/WordPress/gutenberg | |
*/ | |
// Getting Started with editor UI | |
https://wordpress.org/support/article/wordpress-editor/ |
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
mkdir wordpress | |
cd wordpress | |
git init | |
curl -LO https://gist.githubusercontent.com/dzuelke/8ef648676cab07f2a177/raw/composer.json | |
curl -LO https://gist.githubusercontent.com/dzuelke/8ef648676cab07f2a177/raw/.gitignore | |
git add composer.json .gitignore | |
git commit -m "composer plus wordpress prerequisites" | |
composer require ext-gd:* johnpbloch/wordpress wpackagist-plugin/amazon-web-services wpackagist-plugin/amazon-s3-and-cloudfront wpackagist-plugin/sendgrid-email-delivery-simplified | |
git add composer.json composer.lock | |
git commit -m "require ext-gd, wordpress and plugins" |
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
plugins.svn.wordpress.org/web-tripwire/trunk/includes/ofc/ofc_upload_image.php | |
plugins.svn.wordpress.org/ip-logger/trunk/chart/ofc_upload_image.php | |
plugins.svn.wordpress.org/ip-logger/tags/2.7/chart/ofc_upload_image.php | |
plugins.svn.wordpress.org/ip-logger/tags/3.0/chart/ofc_upload_image.php | |
plugins.svn.wordpress.org/ip-logger/tags/2.8/chart/ofc_upload_image.php | |
plugins.svn.wordpress.org/ip-logger/tags/2.6/chart/ofc_upload_image.php | |
plugins.svn.wordpress.org/open-flash-chart-core-wordpress-plugin/trunk/open-flash-chart-2/php-ofc-library/ofc_upload_image.php | |
plugins.svn.wordpress.org/open-flash-chart-core-wordpress-plugin/tags/0.4/open-flash-chart-2/php-ofc-library/ofc_upload_image.php | |
plugins.svn.wordpress.org/open-flash-chart-core-wordpress-plugin/tags/0.3/open-flash-chart-2/php-ofc-library/ofc_upload_image.php | |
plugins.svn.wordpress.org/open-flash-chart-core-wordpress-plugin/tags/0.2/open-flash-chart-2/php-ofc-library/ofc_upload_image.php |
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 | |
echo "<h1>Determining Plugin and Content Directories in WordPress (Cheat Sheet)</h1>"; | |
# PLUGINS | |
echo "<h2>PLUGINS</h2>"; | |
echo plugins_url(). "<br>"; # http://wordpress.test/wp-content/plugins | |
echo plugins_url('akismet'). "<br>"; # http://wordpress.test/wp-content/plugins/akismet | |
echo plugins_url( 'assets/js/myscript.js', __FILE__ ). "<br>"; # http://wordpress.test/wp-content/plugins/assets/js/myscript.js | |
echo plugin_dir_url('') . "<br>"; # http://wordpress.test/wp-content/plugins/ |
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
server { | |
listen 80; | |
server_name 192.168.56.101; | |
root /srv/wordpress; | |
client_max_body_size 64M; | |
# Deny access to any files with a .php extension in the uploads directory | |
location ~* /(?:uploads|files)/.*\.php$ { | |
deny all; |
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
COMPOSE_PROJECT_NAME=wordpress #プロジェクト名 | |
MYSQL_HOSTNAME=db #MySQLに指定したサービス名 | |
MYSQL_DATABASE=hoge_database #データベース名 | |
MYSQL_USER=hoge_chan #ユーザー名 | |
MYSQL_PASSWORD=hogehuga #パスワード | |
MYSQL_ROOT_PASSWORD=piyopiyo #マスターパスワード | |
TZ=Azia/Tokyo #タイムゾーン設定 変えてはいけない。 |
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
.data |