Skip to content

Commit c15298e

Browse files
committed
initial
1 parent 7172e47 commit c15298e

10 files changed

Lines changed: 180 additions & 1 deletion

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
end_of_line = lf
8+
trim_trailing_whitespace = true
9+
charset = utf-8
10+
11+
[*.php]
12+
indent_style = tab
13+
indent_size = 4
14+
15+
[*.{js,json}]
16+
indent_style = space
17+
indent_size = 2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Gruntfile.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = function(grunt) {
2+
// Project configuration.
3+
grunt.initConfig({
4+
wp_readme_to_markdown: {
5+
target: {
6+
files: {
7+
'README.md': 'readme.txt'
8+
},
9+
},
10+
},
11+
makepot: {
12+
target: {
13+
options: {
14+
mainFile: 'webmention.php',
15+
domainPath: '/languages',
16+
exclude: ['bin/.*', '.git/.*', 'vendor/.*'],
17+
potFilename: 'wordpress-webmention.pot',
18+
type: 'wp-plugin',
19+
updateTimestamp: true
20+
}
21+
}
22+
}
23+
});
24+
25+
grunt.loadNpmTasks('grunt-wp-readme-to-markdown');
26+
grunt.loadNpmTasks('grunt-wp-i18n');
27+
28+
// Default task(s).
29+
grunt.registerTask('default', ['wp_readme_to_markdown']);
30+
};

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
# wordpress-410
1+
# Webmention #
2+
**Contributors:** pfefferle, dshanske
3+
**Donate link:** https://indieweb.org/how-to-sponsor
4+
**Tags:** deleted posts, 410, 451, indieweb
5+
**Requires at least:** 4.6
6+
**Tested up to:** 4.6.2
7+
**Stable tag:** 1.0.0
8+
**License:** MIT
9+
**License URI:** http://opensource.org/licenses/MIT
10+
11+
Deleted Posts for WordPress!

composer.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "indiewordpress/wordpress-deleted-posts",
3+
"description": "",
4+
"require": {
5+
"php": ">=5.6.0"
6+
},
7+
"type": "wordpress-plugin",
8+
"license": "MIT",
9+
"authors": [
10+
{
11+
"name": "Matthias Pfefferle",
12+
"homepage": "http://notizblog.org"
13+
}
14+
],
15+
"require-dev": {
16+
"phpunit/phpunit": "5.5.*"
17+
},
18+
"scripts": {
19+
"test": [
20+
"composer install",
21+
"bin/install-wp-tests.sh wordpress wordpress wordpress",
22+
"vendor/bin/phpunit"
23+
]
24+
}
25+
}

deleted-posts.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
/**
3+
* Plugin Name: Deleted Posts
4+
* Plugin URI: https://github.com/indiewordpress/wordpress-deleted-posts
5+
* Description: Deleted Posts
6+
* Author: IndieWordPress Team
7+
* Author URI: https://github.com/indiewordpress
8+
* Version: 1.0.0
9+
* License: MIT
10+
* License URI: http://opensource.org/licenses/MIT
11+
* Text Domain: deleted-posts
12+
*/
13+
14+
add_action( 'plugins_loaded', array( 'DeletedPosts_Plugin', 'init' ) );
15+
16+
/**
17+
* Deleted Posts Plugin Class
18+
*
19+
* @author Matthias Pfefferle
20+
*/
21+
class DeletedPosts_Plugin {
22+
/**
23+
* Initialize Deleted Posts Plugin
24+
*/
25+
public static function init() {
26+
27+
}
28+
}

docker-compose.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: '2'
2+
services:
3+
db:
4+
image: mysql:5.7
5+
restart: always
6+
environment:
7+
MYSQL_ROOT_PASSWORD: wordpress
8+
MYSQL_DATABASE: wordpress
9+
MYSQL_USER: wordpress
10+
MYSQL_PASSWORD: wordpress
11+
12+
wordpress:
13+
depends_on:
14+
- db
15+
image: wordpress:latest
16+
links:
17+
- db
18+
ports:
19+
- "80:80"
20+
volumes:
21+
- .:/var/www/html/wp-content/plugins/deleted-posts
22+
restart: always
23+
environment:
24+
WORDPRESS_DB_HOST: db:3306
25+
WORDPRESS_DB_PASSWORD: wordpress
26+
WORDPRESS_DEBUG: 1

package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "wordpress-deleted-posts",
3+
"description": "",
4+
"main": "deleted-posts.php",
5+
"devDependencies": {
6+
"grunt": "^0.4.5",
7+
"grunt-wp-i18n": "^0.5.4",
8+
"grunt-wp-readme-to-markdown": "^0.8.0"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/pfefferle/wordpress-webmention.git"
13+
},
14+
"keywords": [
15+
"webmention",
16+
"pingback",
17+
"trackback",
18+
"linkback"
19+
],
20+
"author": "Matthias Pfefferle",
21+
"license": "MIT",
22+
"bugs": {
23+
"url": "https://github.com/indiewordpress/wordpress-deleted-posts/issues"
24+
},
25+
"homepage": "https://github.com/indiewordpress/wordpress-deleted-posts"
26+
}

phpcs.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="WordPress">
3+
<description>WordPress Coding Standard.</description>
4+
<rule ref="WordPress-Core"/>
5+
</ruleset>

readme.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
=== Webmention ===
2+
Contributors: pfefferle, dshanske
3+
Donate link: https://indieweb.org/how-to-sponsor
4+
Tags: deleted posts, 410, 451, indieweb
5+
Requires at least: 4.6
6+
Tested up to: 4.6.2
7+
Stable tag: 1.0.0
8+
License: MIT
9+
License URI: http://opensource.org/licenses/MIT
10+
11+
Deleted Posts for WordPress!

0 commit comments

Comments
 (0)