-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move wordpress core models into wordpress namespace
- Loading branch information
1 parent
d62927f
commit e420fde
Showing
17 changed files
with
100 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Silk\WordPress\Post; | ||
|
||
use Silk\Post\Model; | ||
use Silk\Post\ClassNameAsPostType; | ||
|
||
class Attachment extends Model | ||
{ | ||
use ClassNameAsPostType; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Silk\WordPress\Post; | ||
|
||
use Silk\Post\Model; | ||
use Silk\Post\ClassNameAsPostType; | ||
|
||
class NavMenuItem extends Model | ||
{ | ||
use ClassNameAsPostType; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Silk\WordPress\Post; | ||
|
||
use Silk\Post\Model; | ||
use Silk\Post\ClassNameAsPostType; | ||
|
||
class Page extends Model | ||
{ | ||
use ClassNameAsPostType; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Silk\WordPress\Post; | ||
|
||
use Silk\Post\Model; | ||
use Silk\Post\ClassNameAsPostType; | ||
|
||
class Post extends Model | ||
{ | ||
use ClassNameAsPostType; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Silk\WordPress\Post; | ||
|
||
use Silk\Post\Model; | ||
use Silk\Post\ClassNameAsPostType; | ||
|
||
class Revision extends Model | ||
{ | ||
use ClassNameAsPostType; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<?php | ||
|
||
namespace Silk\Term; | ||
namespace Silk\WordPress\Term; | ||
|
||
use Silk\Term\Model; | ||
|
||
class Category extends Model | ||
{ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Silk\WordPress\Term; | ||
|
||
use Silk\Term\Model; | ||
|
||
class LinkCategory extends Model | ||
{ | ||
const TAXONOMY = 'link_category'; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Silk\WordPress\Term; | ||
|
||
use Silk\Term\Model; | ||
|
||
class NavMenu extends Model | ||
{ | ||
const TAXONOMY = 'nav_menu'; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Silk\WordPress\Term; | ||
|
||
use Silk\Term\Model; | ||
|
||
class PostFormat extends Model | ||
{ | ||
const TAXONOMY = 'post_format'; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<?php | ||
|
||
namespace Silk\Term; | ||
namespace Silk\WordPress\Term; | ||
|
||
use Silk\Term\Model; | ||
|
||
class Tag extends Model | ||
{ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
use Silk\Post\Page; | ||
use Silk\WordPress\Post\Page; | ||
|
||
class PageTest extends WP_UnitTestCase | ||
{ | ||
|
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
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
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
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