Skip to content

Commit 2664557

Browse files
author
Kolya Korobochkin
committed
Merge branch 'release/v1.0.5'
2 parents 5ebfb58 + be51cf4 commit 2664557

8 files changed

+49
-117
lines changed

Gruntfile.js

+16-38
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,36 @@
11
module.exports = function (grunt) {
2+
'use strict';
3+
4+
// Force use of Unix newlines
5+
grunt.util.linefeed = '\n';
26

37
grunt.initConfig ({
48
pkg: grunt.file.readJSON ('package.json'),
59

6-
po2mo: {
7-
languages: {
8-
src: 'plugin/languages/*.po',
9-
expand: true,
10-
},
11-
},
12-
potomo: {
13-
dev: {
14-
options: {
15-
poDel: false,
16-
},
17-
files: [{
18-
expand: true,
19-
cwd: 'plugin/languages/',
20-
src: ['*.po'],
21-
dest: 'plugin/languages/',
22-
ext: '.mo',
23-
nonull: true,
24-
}],
25-
},
26-
},
2710
compress: {
28-
dist: {
11+
plugin: {
2912
options: {
30-
archive: 'dist/<%= pkg.name %>.zip',
13+
archive: 'dist/<%= pkg.name %>.<%= pkg.version %>.zip',
3114
mode: 'zip',
32-
pretty: true,
15+
pretty: true
3316
},
3417
files: [
3518
{
3619
expand: true,
3720
cwd: 'plugin/',
3821
src: '**',
3922
dest: '<%= pkg.name %>/',
40-
dot: false,
41-
},
42-
],
43-
},
44-
},
23+
dot: false
24+
}
25+
]
26+
}
27+
}
4528
});
4629

47-
grunt.loadNpmTasks ('grunt-po2mo');
48-
grunt.loadNpmTasks ('grunt-potomo');
49-
grunt.loadNpmTasks ('grunt-contrib-compress');
30+
require('load-grunt-tasks')(grunt, { scope: 'devDependencies' });
5031

51-
grunt.registerTask ('default',
52-
[
53-
'po2mo:languages',
54-
'compress:dist'
55-
]
56-
);
32+
grunt.registerTask('default', [
33+
'compress:plugin'
34+
]);
5735

5836
};

README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
bbPress Permalinks with ID
2-
==========================
1+
# bbPress Permalinks with ID
32

4-
Change bbPress permalinks. Topic and forum ID instead of slug.
3+
Stable version on WordPress.org — [wordpress.org/plugins/bbpress-permalinks-with-id/](https://wordpress.org/plugins/bbpress-permalinks-with-id/).
54

65
This plugin for WordPress and bbPress converts default permalinks with topic and forum slugs to permalinks with ID's. Examples:
76

87
* /forums/forum/FORUM_SLUG &rarr; /forums/forum/FORUM_ID
98
* /forums/topic/TOPIC_SLUG &rarr; /forums/topic/TOPIC_ID
109

11-
Real examples:
12-
* site.com/forums/forum/1/
13-
* site.com/forums/topic/2/
14-
1510
## Create a .zip plugin for WordPress
16-
To compile dist just hit npm install and then run grunt default task (working plugin in .zip archive will be created at dist/ folder).
1711

18-
Photo on banner created by [Jay Mantri](https://stocksnap.io/photo/BD7R33PKME).
12+
To create working .zip-plugin just hit `npm install` and then run `grunt` default task (working plugin in .zip archive will be created at `dist` folder).
13+
14+
```
15+
npm install
16+
grunt
17+
```
18+
19+
## Credits
20+
21+
Photo on banner created by [Jay Mantri](https://stocksnap.io/photo/BD7R33PKME).

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "bbPress-permalinks-with-id",
2+
"name": "bbpress-permalinks-with-id",
33
"version": "1.0.4",
44
"description": "Change bbPress permalinks. ID number instead of topic slug.",
5-
"main": "plugin/plugin.php",
5+
"main": "Gruntfile.js",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/korobochkin/bbPress-permalinks-with-id.git"
@@ -15,15 +15,14 @@
1515
"WordPress"
1616
],
1717
"author": "Kolya Korobochkin",
18-
"license": "MIT",
18+
"license": "GPL-2.0+",
1919
"bugs": {
2020
"url": "https://github.com/korobochkin/bbPress-permalinks-with-id/issues"
2121
},
2222
"homepage": "https://github.com/korobochkin/bbPress-permalinks-with-id",
2323
"devDependencies": {
2424
"grunt": "latest",
25-
"grunt-po2mo": "latest",
2625
"grunt-contrib-compress": "latest",
27-
"grunt-potomo": "latest"
26+
"load-grunt-tasks": "^3.4.1"
2827
}
2928
}

plugin/languages/additional.php

-16
This file was deleted.
-1.68 KB
Binary file not shown.

plugin/languages/bbpress-permalinks-ru_RU.po

-42
This file was deleted.

plugin/plugin.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22
/**
33
* Plugin Name: bbPress Permalinks with ID
4-
* Plugin URI: http://korobochkin.com/
4+
* Plugin URI: https://wordpress.org/plugins/bbpress-permalinks-with-id/
55
* Description: ID instead of slug in bbPress topic and forum links.
66
* Author: Kolya Korobochkin
77
* Author URI: http://korobochkin.com/
8-
* Version: 1.0.4
9-
* Text Domain: bbpress_permalinks
8+
* Version: 1.0.5
9+
* Text Domain: bbpress-permalinks-with-id
1010
* Domain Path: /languages/
1111
* Requires at least: 4.1.1
12-
* Tested up to: 4.2.1
12+
* Tested up to: 4.5.0
1313
* License: GPLv2 or later
1414
*/
1515

plugin/readme.txt

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: korobochkin
33
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=me%40korobochkin%2ecom&item_name=bbPress%20Permalinks%20with%20ID&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted
44
Tags: bbpress, permalinks, links, url, rewrite rule, id, forums, topics, slugs, characters
55
Requires at least: 4.1.1
6-
Tested up to: 4.2.1
7-
Stable tag: 1.0.4
6+
Tested up to: 4.5.0
7+
Stable tag: 1.0.5
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -62,10 +62,20 @@ Simply adds few rewrite rules. If you deactivate or remove plugin and after that
6262

6363
== Changelog ==
6464

65+
= 1.0.5 =
66+
67+
Update plugin text domain.
68+
6569
= 1.0.4 =
66-
* First version of plugin for wordpress.org. Without automaticly flushing rewrite rules.
70+
71+
First version of plugin for wordpress.org. Without automatically flushing rewrite rules.
6772

6873
== Upgrade Notice ==
6974

75+
= 1.0.5 =
76+
77+
Update plugin text domain.
78+
7079
= 1.0.4 =
80+
7181
Basic functionality of plugin.

0 commit comments

Comments
 (0)