Skip to content

Commit 2595903

Browse files
dshanskesnarfed
authored andcommitted
Per proposed specification it should be mp-slug
1 parent 8b402f6 commit 2595903

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

micropub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ private static function mp_to_wp( $mf2 ) {
612612
$args = array();
613613

614614
foreach ( array(
615-
'slug' => 'post_name',
615+
'mp-slug' => 'post_name',
616616
'name' => 'post_title',
617617
'summary' => 'post_excerpt',
618618
) as $mf => $wp ) {

tests/test_micropub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class MicropubTest extends WP_UnitTestCase {
7272
protected static $post = array(
7373
'h' => 'entry',
7474
'content' => 'my<br>content',
75-
'slug' => 'my_slug',
75+
'mp-slug' => 'my_slug',
7676
'name' => 'my name',
7777
'summary' => 'my summary',
7878
'category' => array( 'tag1', 'tag4' ),
@@ -85,7 +85,7 @@ class MicropubTest extends WP_UnitTestCase {
8585
'type' => array( 'h-entry' ),
8686
'properties' => array(
8787
'content' => array( 'my<br>content' ),
88-
'slug' => array( 'my_slug' ),
88+
'mp-slug' => array( 'my_slug' ),
8989
'name' => array( 'my name' ),
9090
'summary' => array( 'my summary' ),
9191
'category' => array( 'tag1', 'tag4' ),
@@ -1056,7 +1056,7 @@ function test_update() {
10561056
'type' => array( 'h-entry' ),
10571057
'properties' => array(
10581058
'content' => array( 'new<br>content' ),
1059-
'slug' => array( 'my_slug' ),
1059+
'mp-slug' => array( 'my_slug' ),
10601060
'name' => array( 'my name' ),
10611061
'category' => array( 'tag1', 'tag4', 'add tag' ),
10621062
'syndication' => array( 'http://synd/1', 'http://synd/2' ),

0 commit comments

Comments
 (0)