@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * |
23 | 23 | * @since 3.0.0 |
24 | 24 | */ |
25 | - public function enqueueStyles( $aSRCs, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) { |
|
25 | + public function enqueueStyles( $aSRCs, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) { |
|
26 | 26 | if ( method_exists( $this->oResource, '_enqueueStyles' ) ) { |
27 | 27 | return $this->oResource->_enqueueStyles( $aSRCs, $sPageSlug, $sTabSlug, $aCustomArgs ); |
28 | 28 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @param array (optional) The argument array for more advanced parameters. |
39 | 39 | * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned. |
40 | 40 | */ |
41 | - public function enqueueStyle( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) { |
|
41 | + public function enqueueStyle( $sSRC, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) { |
|
42 | 42 | if ( method_exists( $this->oResource, '_enqueueStyle' ) ) { |
43 | 43 | return $this->oResource->_enqueueStyle( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs ); |
44 | 44 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * |
49 | 49 | * @since 2.1.5 |
50 | 50 | */ |
51 | - public function enqueueScripts( $aSRCs, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) { |
|
51 | + public function enqueueScripts( $aSRCs, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) { |
|
52 | 52 | if ( method_exists( $this->oResource, '_enqueueScripts' ) ) { |
53 | 53 | return $this->oResource->_enqueueScripts( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs ); |
54 | 54 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * @param array (optional) The argument array for more advanced parameters. |
65 | 65 | * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned. |
66 | 66 | */ |
67 | - public function enqueueScript( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) { |
|
67 | + public function enqueueScript( $sSRC, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) { |
|
68 | 68 | if ( method_exists( $this->oResource, '_enqueueScript' ) ) { |
69 | 69 | return $this->oResource->_enqueueScript( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs ); |
70 | 70 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * @param array (optional) The argument array for more advanced parameters. |
65 | 65 | * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned. |
66 | 66 | */ |
67 | - public function enqueueScript( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) { |
|
67 | + public function enqueueScript( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) { |
|
68 | 68 | if ( method_exists( $this->oResource, '_enqueueScript' ) ) { |
69 | 69 | return $this->oResource->_enqueueScript( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs ); |
70 | 70 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @since 3.0.4 |
26 | 26 | * @internal |
27 | 27 | */ |
28 | - public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) { |
|
28 | + public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) { |
|
29 | 29 | |
30 | 30 | parent::__construct( $sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain ); |
31 | 31 | |
@@ -58,11 +58,11 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function _isInThePage() { |
60 | 60 | |
61 | - if ( ! $this->oProp->bIsAdmin ) { |
|
61 | + if ( !$this->oProp->bIsAdmin ) { |
|
62 | 62 | return false; |
63 | 63 | } |
64 | 64 | |
65 | - if ( ! isset( $_GET[ 'page' ] ) ) { |
|
65 | + if ( !isset( $_GET[ 'page' ] ) ) { |
|
66 | 66 | return false; |
67 | 67 | } |
68 | 68 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * @since 3.0.4 |
26 | 26 | * @internal |
27 | 27 | */ |
28 | - public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) { |
|
28 | + public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) { |
|
29 | 29 | |
30 | 30 | parent::__construct( $sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain ); |
31 | 31 |
@@ -26,19 +26,19 @@ |
||
26 | 26 | */ |
27 | 27 | protected function _isInThePage() { |
28 | 28 | |
29 | - if ( ! $this->oProp->bIsAdmin ) { |
|
29 | + if ( !$this->oProp->bIsAdmin ) { |
|
30 | 30 | return false; |
31 | 31 | } |
32 | 32 | |
33 | - if ( ! isset( $_GET[ 'page' ] ) ) { |
|
33 | + if ( !isset( $_GET[ 'page' ] ) ) { |
|
34 | 34 | return false; |
35 | 35 | } |
36 | 36 | |
37 | - if ( ! $this->oProp->isPageAdded( $_GET[ 'page' ] ) ) { |
|
37 | + if ( !$this->oProp->isPageAdded( $_GET[ 'page' ] ) ) { |
|
38 | 38 | return false; |
39 | 39 | } |
40 | 40 | |
41 | - if ( ! isset( $_GET[ 'tab' ] ) ) { |
|
41 | + if ( !isset( $_GET[ 'tab' ] ) ) { |
|
42 | 42 | return true; |
43 | 43 | } |
44 | 44 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | public function construct() { |
31 | 31 | |
32 | 32 | add_filter( |
33 | - 'options_' . $this->aArguments[ 'caller_id' ], |
|
33 | + 'options_'.$this->aArguments[ 'caller_id' ], |
|
34 | 34 | array( $this, '_replyToSanitizeSavedFormData' ), |
35 | 35 | 5 // high priority as it must be done eariler |
36 | 36 | ); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | // Extract the meta box field form data (options) from the page form data (options). |
56 | 56 | return $this->castArrayContents( |
57 | - $this->getDataStructureFromAddedFieldsets(), // form data structure generate from fieldsets |
|
57 | + $this->getDataStructureFromAddedFieldsets(), // form data structure generate from fieldsets |
|
58 | 58 | $aSavedFormData |
59 | 59 | ); |
60 | 60 |
@@ -18,77 +18,75 @@ |
||
18 | 18 | abstract class AdminPageFramework_PostType extends AdminPageFramework_PostType_Controller { |
19 | 19 | |
20 | 20 | /** |
21 | - * The constructor of the class object. |
|
22 | - * |
|
23 | - * Registers necessary hooks and sets up internal properties. |
|
24 | - * |
|
25 | - * <h4>Example</h4> |
|
26 | - * <code>new APF_PostType( |
|
27 | - * 'apf_posts', // post type slug |
|
28 | - * array( |
|
29 | - * 'labels' => array( |
|
30 | - * 'name' => 'Demo', |
|
31 | - * 'all_items' => __( 'Sample Posts', 'admin-page-framework-demo' ), |
|
32 | - * 'singular_name' => 'Demo', |
|
33 | - * 'add_new' => __( 'Add New', 'admin-page-framework-demo' ), |
|
34 | - * 'add_new_item' => __( 'Add New APF Post', 'admin-page-framework-demo' ), |
|
35 | - * 'edit' => __( 'Edit', 'admin-page-framework-demo' ), |
|
36 | - * 'edit_item' => __( 'Edit APF Post', 'admin-page-framework-demo' ), |
|
37 | - * 'new_item' => __( 'New APF Post', 'admin-page-framework-demo' ), |
|
38 | - * 'view' => __( 'View', 'admin-page-framework-demo' ), |
|
39 | - * 'view_item' => __( 'View APF Post', 'admin-page-framework-demo' ), |
|
40 | - * 'search_items' => __( 'Search APF Post', 'admin-page-framework-demo' ), |
|
41 | - * 'not_found' => __( 'No APF Post found', 'admin-page-framework-demo' ), |
|
42 | - * 'not_found_in_trash' => __( 'No APF Post found in Trash', 'admin-page-framework-demo' ), |
|
43 | - * 'parent' => __( 'Parent APF Post', 'admin-page-framework-demo' ), |
|
44 | - * |
|
45 | - * // (framework specific) |
|
46 | - * 'plugin_listing_table_title_cell_link' => __( 'APF Posts', 'admin-page-framework-demo' ), // framework specific key. [3.0.6+] |
|
47 | - * ), |
|
48 | - * 'public' => true, |
|
49 | - * 'menu_position' => 110, |
|
50 | - * 'supports' => array( 'title' ), // e.g. array( 'title', 'editor', 'comments', 'thumbnail', 'excerpt' ), |
|
51 | - * 'taxonomies' => array( '' ), |
|
52 | - * 'has_archive' => true, |
|
53 | - * 'show_admin_column' => true, // [3.5+ core] this is for custom taxonomies to automatically add the column in the listing table. |
|
54 | - * 'menu_icon' => $this->oProp->bIsAdmin |
|
55 | - * ? ( |
|
56 | - * version_compare( $GLOBALS['wp_version'], '3.8', '>=' ) |
|
57 | - * ? 'dashicons-wordpress' |
|
58 | - * : plugins_url( 'asset/image/wp-logo_16x16.png', APFDEMO_FILE ) |
|
59 | - * ) |
|
60 | - * : null, // do not call the function in the front-end. |
|
61 | - * |
|
62 | - * // (framework specific) this sets the screen icon for the post type for WordPress v3.7.1 or below. |
|
63 | - * // a file path can be passed instead of a url, plugins_url( 'asset/image/wp-logo_32x32.png', APFDEMO_FILE ) |
|
64 | - * 'screen_icon' => dirname( APFDEMO_FILE ) . '/asset/image/wp-logo_32x32.png', |
|
65 | - * |
|
66 | - * // [3.5.10+] (framework specific) default: true |
|
67 | - * 'show_submenu_add_new' => true, |
|
68 | - * |
|
69 | - * ) |
|
70 | - * );</code> |
|
71 | - * |
|
72 | - * <h4>Framework Specific Post Type Arguments</h4> |
|
73 | - * In addition to the post type argument structure defined by the WordPress core, there are arguments defined by the framework. |
|
74 | - * |
|
75 | - * - screen_icon - For WordPress 3.7.x or below, set an icon url or path for the 32x32 screen icon displayed in the post listing page. |
|
76 | - * - show_submenu_add_new [3.5.10+] |
|
77 | - |
|
78 | - * <h4>Framework Specific Post Type Label Arguments</h4> |
|
79 | - * - plugin_listing_table_title_cell_link' - If the caller script is a plugin, this determines the label of the action link embedded in the plugin listing page (plugins.php). |
|
80 | - * To disable the action link, set an empty string `''`. |
|
81 | - |
|
82 | - * |
|
83 | - * @since 2.0.0 |
|
84 | - * @since 2.1.6 Added the $sTextDomain parameter. |
|
85 | - * @see http://codex.wordpress.org/Function_Reference/register_post_type#Arguments |
|
86 | - * @param string The post type slug. |
|
87 | - * @param array The <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Arguments">argument array</a> passed to register_post_type(). |
|
88 | - * @param string The path of the caller script. This is used to retrieve the script information to insert it into the footer. If not set, the framework tries to detect it. |
|
89 | - * @param string The text domain of the caller script. |
|
90 | - * @return void |
|
91 | - */ |
|
21 | + * The constructor of the class object. |
|
22 | + * |
|
23 | + * Registers necessary hooks and sets up internal properties. |
|
24 | + * |
|
25 | + * <h4>Example</h4> |
|
26 | + * <code>new APF_PostType( |
|
27 | + * 'apf_posts', // post type slug |
|
28 | + * array( |
|
29 | + * 'labels' => array( |
|
30 | + * 'name' => 'Demo', |
|
31 | + * 'all_items' => __( 'Sample Posts', 'admin-page-framework-demo' ), |
|
32 | + * 'singular_name' => 'Demo', |
|
33 | + * 'add_new' => __( 'Add New', 'admin-page-framework-demo' ), |
|
34 | + * 'add_new_item' => __( 'Add New APF Post', 'admin-page-framework-demo' ), |
|
35 | + * 'edit' => __( 'Edit', 'admin-page-framework-demo' ), |
|
36 | + * 'edit_item' => __( 'Edit APF Post', 'admin-page-framework-demo' ), |
|
37 | + * 'new_item' => __( 'New APF Post', 'admin-page-framework-demo' ), |
|
38 | + * 'view' => __( 'View', 'admin-page-framework-demo' ), |
|
39 | + * 'view_item' => __( 'View APF Post', 'admin-page-framework-demo' ), |
|
40 | + * 'search_items' => __( 'Search APF Post', 'admin-page-framework-demo' ), |
|
41 | + * 'not_found' => __( 'No APF Post found', 'admin-page-framework-demo' ), |
|
42 | + * 'not_found_in_trash' => __( 'No APF Post found in Trash', 'admin-page-framework-demo' ), |
|
43 | + * 'parent' => __( 'Parent APF Post', 'admin-page-framework-demo' ), |
|
44 | + * |
|
45 | + * // (framework specific) |
|
46 | + * 'plugin_listing_table_title_cell_link' => __( 'APF Posts', 'admin-page-framework-demo' ), // framework specific key. [3.0.6+] |
|
47 | + * ), |
|
48 | + * 'public' => true, |
|
49 | + * 'menu_position' => 110, |
|
50 | + * 'supports' => array( 'title' ), // e.g. array( 'title', 'editor', 'comments', 'thumbnail', 'excerpt' ), |
|
51 | + * 'taxonomies' => array( '' ), |
|
52 | + * 'has_archive' => true, |
|
53 | + * 'show_admin_column' => true, // [3.5+ core] this is for custom taxonomies to automatically add the column in the listing table. |
|
54 | + * 'menu_icon' => $this->oProp->bIsAdmin |
|
55 | + * ? ( |
|
56 | + * version_compare( $GLOBALS['wp_version'], '3.8', '>=' ) |
|
57 | + * ? 'dashicons-wordpress' |
|
58 | + * : plugins_url( 'asset/image/wp-logo_16x16.png', APFDEMO_FILE ) |
|
59 | + * ) |
|
60 | + * : null, // do not call the function in the front-end. |
|
61 | + * |
|
62 | + * // (framework specific) this sets the screen icon for the post type for WordPress v3.7.1 or below. |
|
63 | + * // a file path can be passed instead of a url, plugins_url( 'asset/image/wp-logo_32x32.png', APFDEMO_FILE ) |
|
64 | + * 'screen_icon' => dirname( APFDEMO_FILE ) . '/asset/image/wp-logo_32x32.png', |
|
65 | + * |
|
66 | + * // [3.5.10+] (framework specific) default: true |
|
67 | + * 'show_submenu_add_new' => true, |
|
68 | + * |
|
69 | + * ) |
|
70 | + * );</code> |
|
71 | + * |
|
72 | + * <h4>Framework Specific Post Type Arguments</h4> |
|
73 | + * In addition to the post type argument structure defined by the WordPress core, there are arguments defined by the framework. |
|
74 | + * |
|
75 | + * - screen_icon - For WordPress 3.7.x or below, set an icon url or path for the 32x32 screen icon displayed in the post listing page. |
|
76 | + * - show_submenu_add_new [3.5.10+] |
|
77 | + * <h4>Framework Specific Post Type Label Arguments</h4> |
|
78 | + * - plugin_listing_table_title_cell_link' - If the caller script is a plugin, this determines the label of the action link embedded in the plugin listing page (plugins.php). |
|
79 | + * To disable the action link, set an empty string `''`. |
|
80 | + * |
|
81 | + * @since 2.0.0 |
|
82 | + * @since 2.1.6 Added the $sTextDomain parameter. |
|
83 | + * @see http://codex.wordpress.org/Function_Reference/register_post_type#Arguments |
|
84 | + * @param string The post type slug. |
|
85 | + * @param array The <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Arguments">argument array</a> passed to register_post_type(). |
|
86 | + * @param string The path of the caller script. This is used to retrieve the script information to insert it into the footer. If not set, the framework tries to detect it. |
|
87 | + * @param string The text domain of the caller script. |
|
88 | + * @return void |
|
89 | + */ |
|
92 | 90 | public function __construct( $sPostType, $aArguments=array(), $sCallerPath=null, $sTextDomain='admin-page-framework' ) { |
93 | 91 | |
94 | 92 | if ( empty( $sPostType ) ) { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * @param string The text domain of the caller script. |
90 | 90 | * @return void |
91 | 91 | */ |
92 | - public function __construct( $sPostType, $aArguments=array(), $sCallerPath=null, $sTextDomain='admin-page-framework' ) { |
|
92 | + public function __construct( $sPostType, $aArguments = array(), $sCallerPath = null, $sTextDomain = 'admin-page-framework' ) { |
|
93 | 93 | |
94 | 94 | if ( empty( $sPostType ) ) { |
95 | 95 | return; |
@@ -99,11 +99,11 @@ discard block |
||
99 | 99 | $this, |
100 | 100 | $this->_getCallerScriptPath( $sCallerPath ), |
101 | 101 | get_class( $this ), // class name |
102 | - 'publish_posts', // capability |
|
103 | - $sTextDomain, // text domain |
|
102 | + 'publish_posts', // capability |
|
103 | + $sTextDomain, // text domain |
|
104 | 104 | 'post_type' // structure type |
105 | 105 | ); |
106 | - $this->oProp->sPostType = AdminPageFramework_WPUtility::sanitizeSlug( $sPostType ); |
|
106 | + $this->oProp->sPostType = AdminPageFramework_WPUtility::sanitizeSlug( $sPostType ); |
|
107 | 107 | |
108 | 108 | // Post type argument array structure |
109 | 109 | // @see http://codex.wordpress.org/Function_Reference/register_post_type#Arguments |
@@ -132,14 +132,14 @@ discard block |
||
132 | 132 | return $sCallerPath; |
133 | 133 | } |
134 | 134 | |
135 | - if ( ! is_admin() ) { |
|
135 | + if ( !is_admin() ) { |
|
136 | 136 | return null; |
137 | 137 | } |
138 | 138 | $_sPageNow = AdminPageFramework_Utility::getElement( $GLOBALS, 'pagenow' ); |
139 | 139 | if ( |
140 | 140 | in_array( |
141 | 141 | $_sPageNow, |
142 | - array( 'edit.php', 'post.php', 'post-new.php', 'plugins.php', 'tags.php', 'edit-tags.php', ) |
|
142 | + array( 'edit.php', 'post.php', 'post-new.php', 'plugins.php', 'tags.php', 'edit-tags.php',) |
|
143 | 143 | ) |
144 | 144 | ) { |
145 | 145 | return AdminPageFramework_Utility::getCallerScriptPath( __FILE__ ); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @package AdminPageFramework |
16 | 16 | * @subpackage PostType |
17 | 17 | */ |
18 | -abstract class AdminPageFramework_PostType extends AdminPageFramework_PostType_Controller { |
|
18 | +abstract class AdminPageFramework_PostType extends AdminPageFramework_PostType_Controller { |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * The constructor of the class object. |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | public function __construct( $sPostType, $aArguments=array(), $sCallerPath=null, $sTextDomain='admin-page-framework' ) { |
93 | 93 | |
94 | - if ( empty( $sPostType ) ) { |
|
94 | + if ( empty( $sPostType ) ) { |
|
95 | 95 | return; |
96 | 96 | } |
97 | 97 |
@@ -36,36 +36,36 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
39 | - * The method for necessary set-ups. |
|
40 | - * |
|
41 | - * <h4>Example</h4> |
|
42 | - * <code>public function setUp() { |
|
43 | - * $this->setAutoSave( false ); |
|
44 | - * $this->setAuthorTableFilter( true ); |
|
45 | - * $this->addTaxonomy( |
|
46 | - * 'sample_taxonomy', // taxonomy slug |
|
47 | - * array( // argument - for the argument array keys, refer to : http://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments |
|
48 | - * 'labels' => array( |
|
49 | - * 'name' => 'Genre', |
|
50 | - * 'add_new_item' => 'Add New Genre', |
|
51 | - * 'new_item_name' => "New Genre" |
|
52 | - * ), |
|
53 | - * 'show_ui' => true, |
|
54 | - * 'show_tagcloud' => false, |
|
55 | - * 'hierarchical' => true, |
|
56 | - * 'show_admin_column' => true, |
|
57 | - * 'show_in_nav_menus' => true, |
|
58 | - * 'show_table_filter' => true, // framework specific key |
|
59 | - * 'show_in_sidebar_menus' => false, // framework specific key |
|
60 | - * ) |
|
61 | - * ); |
|
62 | - * }</code> |
|
63 | - * |
|
64 | - * @abstract |
|
65 | - * @since 2.0.0 |
|
66 | - * @remark The user should override this method in their class definition. |
|
67 | - * @remark A callback for the `wp_loaded` hook. |
|
68 | - */ |
|
39 | + * The method for necessary set-ups. |
|
40 | + * |
|
41 | + * <h4>Example</h4> |
|
42 | + * <code>public function setUp() { |
|
43 | + * $this->setAutoSave( false ); |
|
44 | + * $this->setAuthorTableFilter( true ); |
|
45 | + * $this->addTaxonomy( |
|
46 | + * 'sample_taxonomy', // taxonomy slug |
|
47 | + * array( // argument - for the argument array keys, refer to : http://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments |
|
48 | + * 'labels' => array( |
|
49 | + * 'name' => 'Genre', |
|
50 | + * 'add_new_item' => 'Add New Genre', |
|
51 | + * 'new_item_name' => "New Genre" |
|
52 | + * ), |
|
53 | + * 'show_ui' => true, |
|
54 | + * 'show_tagcloud' => false, |
|
55 | + * 'hierarchical' => true, |
|
56 | + * 'show_admin_column' => true, |
|
57 | + * 'show_in_nav_menus' => true, |
|
58 | + * 'show_table_filter' => true, // framework specific key |
|
59 | + * 'show_in_sidebar_menus' => false, // framework specific key |
|
60 | + * ) |
|
61 | + * ); |
|
62 | + * }</code> |
|
63 | + * |
|
64 | + * @abstract |
|
65 | + * @since 2.0.0 |
|
66 | + * @remark The user should override this method in their class definition. |
|
67 | + * @remark A callback for the `wp_loaded` hook. |
|
68 | + */ |
|
69 | 69 | public function setUp() {} |
70 | 70 | |
71 | 71 | /* |
@@ -124,49 +124,49 @@ discard block |
||
124 | 124 | * Front-end methods |
125 | 125 | */ |
126 | 126 | /** |
127 | - * Enables or disables the auto-save feature in the custom post type's post submission page. |
|
128 | - * |
|
129 | - * <h4>Example</h4> |
|
130 | - * <code>$this->setAutoSave( false ); |
|
131 | - * </code> |
|
132 | - * |
|
133 | - * @since 2.0.0 |
|
134 | - * @param boolean If true, it enables the auto-save; otherwise, it disables it. |
|
135 | - * return void |
|
136 | - */ |
|
127 | + * Enables or disables the auto-save feature in the custom post type's post submission page. |
|
128 | + * |
|
129 | + * <h4>Example</h4> |
|
130 | + * <code>$this->setAutoSave( false ); |
|
131 | + * </code> |
|
132 | + * |
|
133 | + * @since 2.0.0 |
|
134 | + * @param boolean If true, it enables the auto-save; otherwise, it disables it. |
|
135 | + * return void |
|
136 | + */ |
|
137 | 137 | protected function setAutoSave( $bEnableAutoSave=True ) { |
138 | 138 | $this->oProp->bEnableAutoSave = $bEnableAutoSave; |
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
142 | - * Adds a custom taxonomy to the class post type. |
|
143 | - * <h4>Example</h4> |
|
144 | - * <code>$this->addTaxonomy( |
|
145 | - * 'sample_taxonomy', // taxonomy slug |
|
146 | - * array( // argument |
|
147 | - * 'labels' => array( |
|
148 | - * 'name' => 'Genre', |
|
149 | - * 'add_new_item' => 'Add New Genre', |
|
150 | - * 'new_item_name' => "New Genre" |
|
151 | - * ), |
|
152 | - * 'show_ui' => true, |
|
153 | - * 'show_tagcloud' => false, |
|
154 | - * 'hierarchical' => true, |
|
155 | - * 'show_admin_column' => true, |
|
156 | - * 'show_in_nav_menus' => true, |
|
157 | - * 'show_table_filter' => true, // framework specific key |
|
158 | - * 'show_in_sidebar_menus' => false, // framework specific key |
|
159 | - * ) |
|
160 | - * );</code> |
|
161 | - * |
|
162 | - * @see http://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments |
|
163 | - * @since 2.0.0 |
|
164 | - * @since 3.1.1 Added the third parameter. |
|
165 | - * @param string $sTaxonomySlug The taxonomy slug. |
|
166 | - * @param array $aArgs The taxonomy argument array passed to the second parameter of the <a href="http://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments">register_taxonomy()</a> function. |
|
167 | - * @param array $aAdditionalObjectTypes Additional object types (post types) besides the caller post type. |
|
168 | - * @return void |
|
169 | - */ |
|
142 | + * Adds a custom taxonomy to the class post type. |
|
143 | + * <h4>Example</h4> |
|
144 | + * <code>$this->addTaxonomy( |
|
145 | + * 'sample_taxonomy', // taxonomy slug |
|
146 | + * array( // argument |
|
147 | + * 'labels' => array( |
|
148 | + * 'name' => 'Genre', |
|
149 | + * 'add_new_item' => 'Add New Genre', |
|
150 | + * 'new_item_name' => "New Genre" |
|
151 | + * ), |
|
152 | + * 'show_ui' => true, |
|
153 | + * 'show_tagcloud' => false, |
|
154 | + * 'hierarchical' => true, |
|
155 | + * 'show_admin_column' => true, |
|
156 | + * 'show_in_nav_menus' => true, |
|
157 | + * 'show_table_filter' => true, // framework specific key |
|
158 | + * 'show_in_sidebar_menus' => false, // framework specific key |
|
159 | + * ) |
|
160 | + * );</code> |
|
161 | + * |
|
162 | + * @see http://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments |
|
163 | + * @since 2.0.0 |
|
164 | + * @since 3.1.1 Added the third parameter. |
|
165 | + * @param string $sTaxonomySlug The taxonomy slug. |
|
166 | + * @param array $aArgs The taxonomy argument array passed to the second parameter of the <a href="http://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments">register_taxonomy()</a> function. |
|
167 | + * @param array $aAdditionalObjectTypes Additional object types (post types) besides the caller post type. |
|
168 | + * @return void |
|
169 | + */ |
|
170 | 170 | protected function addTaxonomy( $sTaxonomySlug, array $aArgs, array $aAdditionalObjectTypes=array() ) { |
171 | 171 | |
172 | 172 | $sTaxonomySlug = $this->oUtil->sanitizeSlug( $sTaxonomySlug ); |
@@ -229,16 +229,16 @@ discard block |
||
229 | 229 | } |
230 | 230 | |
231 | 231 | /** |
232 | - * Sets whether the author drop-down filter is enabled/disabled in the post type post list table. |
|
233 | - * |
|
234 | - * <h4>Example</h4> |
|
235 | - * <code>$this->setAuthorTableFilter( true ); |
|
236 | - * </code> |
|
237 | - * |
|
238 | - * @since 2.0.0 |
|
239 | - * @param boolean $bEnableAuthorTableFileter If true, it enables the author filter; otherwise, it disables it. |
|
240 | - * @return void |
|
241 | - */ |
|
232 | + * Sets whether the author drop-down filter is enabled/disabled in the post type post list table. |
|
233 | + * |
|
234 | + * <h4>Example</h4> |
|
235 | + * <code>$this->setAuthorTableFilter( true ); |
|
236 | + * </code> |
|
237 | + * |
|
238 | + * @since 2.0.0 |
|
239 | + * @param boolean $bEnableAuthorTableFileter If true, it enables the author filter; otherwise, it disables it. |
|
240 | + * @return void |
|
241 | + */ |
|
242 | 242 | protected function setAuthorTableFilter( $bEnableAuthorTableFileter=false ) { |
243 | 243 | $this->oProp->bEnableAuthorTableFileter = $bEnableAuthorTableFileter; |
244 | 244 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * @since 3.0.0 |
80 | 80 | * @return array An array holding the handle IDs of queued items. |
81 | 81 | */ |
82 | - public function enqueueStyles( $aSRCs, $aCustomArgs=array() ) { |
|
82 | + public function enqueueStyles( $aSRCs, $aCustomArgs = array() ) { |
|
83 | 83 | if ( method_exists( $this->oResource, '_enqueueStyles' ) ) { |
84 | 84 | return $this->oResource->_enqueueStyles( $aSRCs, array( $this->oProp->sPostType ), $aCustomArgs ); |
85 | 85 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * {@inheritdoc} |
91 | 91 | * |
92 | 92 | */ |
93 | - public function enqueueStyle( $sSRC, $aCustomArgs=array() ) { |
|
93 | + public function enqueueStyle( $sSRC, $aCustomArgs = array() ) { |
|
94 | 94 | if ( method_exists( $this->oResource, '_enqueueStyle' ) ) { |
95 | 95 | return $this->oResource->_enqueueStyle( $sSRC, array( $this->oProp->sPostType ), $aCustomArgs ); |
96 | 96 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * |
103 | 103 | * @return array An array holding the handle IDs of queued items. |
104 | 104 | */ |
105 | - public function enqueueScripts( $aSRCs, $aCustomArgs=array() ) { |
|
105 | + public function enqueueScripts( $aSRCs, $aCustomArgs = array() ) { |
|
106 | 106 | if ( method_exists( $this->oResource, '_enqueueScripts' ) ) { |
107 | 107 | return $this->oResource->_enqueueScripts( $aSRCs, array( $this->oProp->sPostType ), $aCustomArgs ); |
108 | 108 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * |
115 | 115 | * @since 3.0.0 |
116 | 116 | */ |
117 | - public function enqueueScript( $sSRC, $aCustomArgs=array() ) { |
|
117 | + public function enqueueScript( $sSRC, $aCustomArgs = array() ) { |
|
118 | 118 | if ( method_exists( $this->oResource, '_enqueueScript' ) ) { |
119 | 119 | return $this->oResource->_enqueueScript( $sSRC, array( $this->oProp->sPostType ), $aCustomArgs ); |
120 | 120 | } |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * @param boolean If true, it enables the auto-save; otherwise, it disables it. |
135 | 135 | * return void |
136 | 136 | */ |
137 | - protected function setAutoSave( $bEnableAutoSave=True ) { |
|
137 | + protected function setAutoSave( $bEnableAutoSave = True ) { |
|
138 | 138 | $this->oProp->bEnableAutoSave = $bEnableAutoSave; |
139 | 139 | } |
140 | 140 | |
@@ -167,19 +167,19 @@ discard block |
||
167 | 167 | * @param array $aAdditionalObjectTypes Additional object types (post types) besides the caller post type. |
168 | 168 | * @return void |
169 | 169 | */ |
170 | - protected function addTaxonomy( $sTaxonomySlug, array $aArgs, array $aAdditionalObjectTypes=array() ) { |
|
170 | + protected function addTaxonomy( $sTaxonomySlug, array $aArgs, array $aAdditionalObjectTypes = array() ) { |
|
171 | 171 | |
172 | 172 | $sTaxonomySlug = $this->oUtil->sanitizeSlug( $sTaxonomySlug ); |
173 | 173 | $aArgs = $aArgs + array( |
174 | 174 | 'show_table_filter' => null, |
175 | 175 | 'show_in_sidebar_menus' => null, |
176 | - ) ; |
|
176 | + ); |
|
177 | 177 | $this->oProp->aTaxonomies[ $sTaxonomySlug ] = $aArgs; |
178 | 178 | |
179 | - if ( $aArgs['show_table_filter'] ) { |
|
180 | - $this->oProp->aTaxonomyTableFilters[] = $sTaxonomySlug; |
|
179 | + if ( $aArgs[ 'show_table_filter' ] ) { |
|
180 | + $this->oProp->aTaxonomyTableFilters[ ] = $sTaxonomySlug; |
|
181 | 181 | } |
182 | - if ( ! $aArgs['show_in_sidebar_menus'] ) { |
|
182 | + if ( !$aArgs[ 'show_in_sidebar_menus' ] ) { |
|
183 | 183 | $this->oProp->aTaxonomyRemoveSubmenuPages[ "edit-tags.php?taxonomy={$sTaxonomySlug}&post_type={$this->oProp->sPostType}" ] = "edit.php?post_type={$this->oProp->sPostType}"; |
184 | 184 | } |
185 | 185 | |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | * @param boolean $bEnableAuthorTableFileter If true, it enables the author filter; otherwise, it disables it. |
240 | 240 | * @return void |
241 | 241 | */ |
242 | - protected function setAuthorTableFilter( $bEnableAuthorTableFileter=false ) { |
|
242 | + protected function setAuthorTableFilter( $bEnableAuthorTableFileter = false ) { |
|
243 | 243 | $this->oProp->bEnableAuthorTableFileter = $bEnableAuthorTableFileter; |
244 | 244 | } |
245 | 245 | |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | * @param array $aArguments The <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Arguments">array of arguments</a> to be passed to the second parameter of the `register_post_type()` function. |
265 | 265 | * @since 3.2.0 |
266 | 266 | */ |
267 | - protected function setArguments( array $aArguments=array() ) { |
|
267 | + protected function setArguments( array $aArguments = array() ) { |
|
268 | 268 | $this->oProp->aPostTypeArgs = $aArguments; |
269 | 269 | } |
270 | 270 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @package AdminPageFramework |
18 | 18 | * @subpackage PostType |
19 | 19 | */ |
20 | -abstract class AdminPageFramework_PostType_Controller extends AdminPageFramework_PostType_View { |
|
20 | +abstract class AdminPageFramework_PostType_Controller extends AdminPageFramework_PostType_View { |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Sets up hooks and properties. |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * @since 3.0.0 |
80 | 80 | * @return array An array holding the handle IDs of queued items. |
81 | 81 | */ |
82 | - public function enqueueStyles( $aSRCs, $aCustomArgs=array() ) { |
|
82 | + public function enqueueStyles( $aSRCs, $aCustomArgs=array() ) { |
|
83 | 83 | if ( method_exists( $this->oResource, '_enqueueStyles' ) ) { |
84 | 84 | return $this->oResource->_enqueueStyles( $aSRCs, array( $this->oProp->sPostType ), $aCustomArgs ); |
85 | 85 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * |
115 | 115 | * @since 3.0.0 |
116 | 116 | */ |
117 | - public function enqueueScript( $sSRC, $aCustomArgs=array() ) { |
|
117 | + public function enqueueScript( $sSRC, $aCustomArgs=array() ) { |
|
118 | 118 | if ( method_exists( $this->oResource, '_enqueueScript' ) ) { |
119 | 119 | return $this->oResource->_enqueueScript( $sSRC, array( $this->oProp->sPostType ), $aCustomArgs ); |
120 | 120 | } |
@@ -36,13 +36,13 @@ discard block |
||
36 | 36 | |
37 | 37 | // Properties |
38 | 38 | $this->oProp->aColumnHeaders = array( |
39 | - 'cb' => '<input type="checkbox" />', // Checkbox for bulk actions. |
|
40 | - 'title' => $this->oMsg->get( 'title' ), // Post title. Includes "edit", "quick edit", "trash" and "view" links. If $mode (set from $_REQUEST['mode']) is 'excerpt', a post excerpt is included between the title and links. |
|
41 | - 'author' => $this->oMsg->get( 'author' ), // Post author. |
|
39 | + 'cb' => '<input type="checkbox" />', // Checkbox for bulk actions. |
|
40 | + 'title' => $this->oMsg->get( 'title' ), // Post title. Includes "edit", "quick edit", "trash" and "view" links. If $mode (set from $_REQUEST['mode']) is 'excerpt', a post excerpt is included between the title and links. |
|
41 | + 'author' => $this->oMsg->get( 'author' ), // Post author. |
|
42 | 42 | // 'categories' => $this->oMsg->get( 'categories' ), // Categories the post belongs to. |
43 | 43 | // 'tags' => $this->oMsg->get( 'tags' ), // Tags for the post. |
44 | 44 | 'comments' => '<div class="comment-grey-bubble"></div>', // Number of pending comments. |
45 | - 'date' => $this->oMsg->get( 'date' ), // The date and publish status of the post. |
|
45 | + 'date' => $this->oMsg->get( 'date' ), // The date and publish status of the post. |
|
46 | 46 | ); |
47 | 47 | |
48 | 48 | if ( $this->_isInThePage() ) : |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | echo $this->oUtil->addAndApplyFilter( |
116 | 116 | $this, |
117 | 117 | "cell_{$this->oProp->sPostType}_{$sColumnKey}", |
118 | - '', // cell output |
|
118 | + '', // cell output |
|
119 | 119 | $iPostID |
120 | 120 | ); |
121 | 121 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | public function _replyToRegisterTaxonomies() { |
158 | 158 | |
159 | - foreach( $this->oProp->aTaxonomies as $_sTaxonomySlug => $_aArgs ) { |
|
159 | + foreach ( $this->oProp->aTaxonomies as $_sTaxonomySlug => $_aArgs ) { |
|
160 | 160 | $this->_registerTaxonomy( |
161 | 161 | $_sTaxonomySlug, |
162 | 162 | is_array( $this->oProp->aTaxonomyObjectTypes[ $_sTaxonomySlug ] ) |
@@ -175,8 +175,8 @@ discard block |
||
175 | 175 | */ |
176 | 176 | public function _registerTaxonomy( $sTaxonomySlug, array $aObjectTypes, array $aArguments ) { |
177 | 177 | |
178 | - if ( ! in_array( $this->oProp->sPostType, $aObjectTypes ) ) { |
|
179 | - $aObjectTypes[] = $this->oProp->sPostType; |
|
178 | + if ( !in_array( $this->oProp->sPostType, $aObjectTypes ) ) { |
|
179 | + $aObjectTypes[ ] = $this->oProp->sPostType; |
|
180 | 180 | } |
181 | 181 | register_taxonomy( |
182 | 182 | $sTaxonomySlug, |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | */ |
194 | 194 | public function _replyToRemoveTexonomySubmenuPages() { |
195 | 195 | |
196 | - foreach( $this->oProp->aTaxonomyRemoveSubmenuPages as $sSubmenuPageSlug => $sTopLevelPageSlug ) { |
|
196 | + foreach ( $this->oProp->aTaxonomyRemoveSubmenuPages as $sSubmenuPageSlug => $sTopLevelPageSlug ) { |
|
197 | 197 | |
198 | 198 | remove_submenu_page( $sTopLevelPageSlug, $sSubmenuPageSlug ); |
199 | 199 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @subpackage PostType |
19 | 19 | * @internal |
20 | 20 | */ |
21 | -abstract class AdminPageFramework_PostType_Model extends AdminPageFramework_PostType_Router { |
|
21 | +abstract class AdminPageFramework_PostType_Model extends AdminPageFramework_PostType_Router { |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Sets up hooks and properties. |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @callback filter manage_{post type slug}_posts_custom_column |
112 | 112 | * @return string |
113 | 113 | */ |
114 | - public function _replyToPrintColumnCell( $sColumnKey, $iPostID ) { |
|
114 | + public function _replyToPrintColumnCell( $sColumnKey, $iPostID ) { |
|
115 | 115 | echo $this->oUtil->addAndApplyFilter( |
116 | 116 | $this, |
117 | 117 | "cell_{$this->oProp->sPostType}_{$sColumnKey}", |
@@ -127,10 +127,10 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public function _replyToDisableAutoSave() { |
129 | 129 | |
130 | - if ( $this->oProp->bEnableAutoSave ) { |
|
130 | + if ( $this->oProp->bEnableAutoSave ) { |
|
131 | 131 | return; |
132 | 132 | } |
133 | - if ( $this->oProp->sPostType != get_post_type() ) { |
|
133 | + if ( $this->oProp->sPostType != get_post_type() ) { |
|
134 | 134 | return; |
135 | 135 | } |
136 | 136 | wp_dequeue_script( 'autosave' ); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function _isInThePage() { |
30 | 30 | |
31 | 31 | // If it's not in one of the post type's pages |
32 | - if ( ! $this->oProp->bIsAdmin ) { |
|
32 | + if ( !$this->oProp->bIsAdmin ) { |
|
33 | 33 | return false; |
34 | 34 | } |
35 | 35 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | return true; |
39 | 39 | } |
40 | 40 | |
41 | - if ( ! in_array( $this->oProp->sPageNow, array( 'edit.php', 'edit-tags.php', 'post.php', 'post-new.php' ) ) ) { |
|
41 | + if ( !in_array( $this->oProp->sPageNow, array( 'edit.php', 'edit-tags.php', 'post.php', 'post-new.php' ) ) ) { |
|
42 | 42 | return false; |
43 | 43 | } |
44 | 44 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @subpackage PostType |
17 | 17 | * @internal |
18 | 18 | */ |
19 | -abstract class AdminPageFramework_PostType_Router extends AdminPageFramework_Factory { |
|
19 | +abstract class AdminPageFramework_PostType_Router extends AdminPageFramework_Factory { |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Determines whether the currently loaded page is of the post type page. |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Admin Page Framework |
|
4 | - * |
|
5 | - * http://en.michaeluno.jp/admin-page-framework/ |
|
6 | - * Copyright (c) 2013-2015 Michael Uno; Licensed MIT |
|
7 | - * |
|
8 | - */ |
|
3 | + * Admin Page Framework |
|
4 | + * |
|
5 | + * http://en.michaeluno.jp/admin-page-framework/ |
|
6 | + * Copyright (c) 2013-2015 Michael Uno; Licensed MIT |
|
7 | + * |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Provides methods for creating fields in the taxonomy page (edit-tags.php). |
@@ -33,7 +33,7 @@ |
||
33 | 33 | array( $this, '_replyToAddPostTypeQueryInEditPostLink' ), |
34 | 34 | 10, |
35 | 35 | 3 |
36 | - ); |
|
36 | + ); |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 |
@@ -22,12 +22,12 @@ discard block |
||
22 | 22 | * Sets up hooks and properties. |
23 | 23 | * |
24 | 24 | */ |
25 | - public function __construct( $oProp, $oMsg=null ) { |
|
25 | + public function __construct( $oProp, $oMsg = null ) { |
|
26 | 26 | |
27 | 27 | parent::__construct( $oProp, $oMsg ); |
28 | 28 | |
29 | 29 | // For post type posts listing table page ( edit.php ) |
30 | - if ( isset( $_GET['post_type'] ) && $_GET['post_type'] == $this->oProp->sPostType ) { |
|
30 | + if ( isset( $_GET[ 'post_type' ] ) && $_GET[ 'post_type' ] == $this->oProp->sPostType ) { |
|
31 | 31 | add_action( |
32 | 32 | 'get_edit_post_link', |
33 | 33 | array( $this, '_replyToAddPostTypeQueryInEditPostLink' ), |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | ); |
54 | 54 | |
55 | 55 | // If the user explicitly sets an empty string to the label key, do not insert a link. |
56 | - if ( ! $_sLinkLabel ) { |
|
56 | + if ( !$_sLinkLabel ) { |
|
57 | 57 | return $aLinks; |
58 | 58 | } |
59 | 59 | |
@@ -61,13 +61,13 @@ discard block |
||
61 | 61 | array_unshift( |
62 | 62 | $aLinks, |
63 | 63 | // "<a href='" . esc_url( "edit.php?post_type={$this->oProp->sPostType}" ) . "'>" |
64 | - '<a ' . $this->getAttributes( |
|
64 | + '<a '.$this->getAttributes( |
|
65 | 65 | array( |
66 | 66 | 'href' => esc_url( "edit.php?post_type={$this->oProp->sPostType}" ), |
67 | 67 | // 3.5.7+ Added for acceptance testing |
68 | 68 | 'class' => 'apf-plugin-title-action-link apf-admin-page', |
69 | 69 | ) |
70 | - ) . '>' |
|
70 | + ).'>' |
|
71 | 71 | . $_sLinkLabel |
72 | 72 | . "</a>" |
73 | 73 | ); |
@@ -83,9 +83,9 @@ discard block |
||
83 | 83 | public function _replyToSetFooterInfo() { |
84 | 84 | |
85 | 85 | if ( |
86 | - ! $this->isPostDefinitionPage( $this->oProp->sPostType ) |
|
87 | - && ! $this->isPostListingPage( $this->oProp->sPostType ) |
|
88 | - && ! $this->isCustomTaxonomyPage( $this->oProp->sPostType ) |
|
86 | + !$this->isPostDefinitionPage( $this->oProp->sPostType ) |
|
87 | + && !$this->isPostListingPage( $this->oProp->sPostType ) |
|
88 | + && !$this->isCustomTaxonomyPage( $this->oProp->sPostType ) |
|
89 | 89 | ) { |
90 | 90 | return; |
91 | 91 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * @remark e.g. `http://.../wp-admin/post.php?post=180&action=edit` -> `http://.../wp-admin/post.php?post=180&action=edit&post_type=[...]` |
104 | 104 | * @callback filter get_edit_post_link |
105 | 105 | */ |
106 | - public function _replyToAddPostTypeQueryInEditPostLink( $sURL, $iPostID=null, $sContext=null ) { |
|
106 | + public function _replyToAddPostTypeQueryInEditPostLink( $sURL, $iPostID = null, $sContext = null ) { |
|
107 | 107 | return add_query_arg( |
108 | 108 | array( |
109 | 109 | 'post' => $iPostID, |