PluginProbe
User Access Manager / 2.3.2
User Access Manager v2.3.2
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/Controller/Backend/PostObjectController.php +5 -5 2.3.132.3.2 View file →
@@ -18,9 +18,9 @@
18 18
19 19 /**
20 20 * @throws UserGroupTypeException
21 21 */
22 - public function addPostColumn(string $columnName, int|string|null $id): void
22 + public function addPostColumn(string $columnName, int|string $id): void
23 23 {
24 24 if ($columnName === self::COLUMN_NAME) {
25 25 $post = $this->objectHandler->getPost($id);
26 26 echo $this->getGroupColumn($post->post_type, $post->ID);
@@ -68,9 +68,9 @@
68 68
69 69 /**
70 70 * @throws UserGroupTypeException
71 71 */
72 - public function addAttachment(int|string|null $postId): void
72 + public function addAttachment(int $postId): void
73 73 {
74 74 $post = $this->objectHandler->getPost($postId);
75 75 $postType = $post->post_type;
76 76 $postId = $post->ID;
@@ -99,9 +99,9 @@
99 99 * @throws UserGroupTypeException
100 100 */
101 101 public function saveAjaxAttachmentData(): void
102 102 {
103 - $attachmentId = (int) $this->getRequestParameter('id');
103 + $attachmentId = $this->getRequestParameter('id');
104 104 $userGroups = $this->getRequestParameter(self::DEFAULT_GROUPS_FORM_NAME);
105 105
106 106 $this->saveObjectData(
107 107 ObjectHandler::GENERAL_POST_OBJECT_TYPE,
@@ -109,9 +109,9 @@
109 109 $userGroups
110 110 );
111 111 }
112 112
113 - public function removePostData(int|string|null $postId): void
113 + public function removePostData(int|string $postId): void
114 114 {
115 115 $post = $this->objectHandler->getPost($postId);
116 116 $this->removeObjectData($post->post_type, $postId);
117 117 }
@@ -118,9 +118,9 @@
118 118
119 119 /**
120 120 * @throws UserGroupTypeException
121 121 */
122 - public function showMediaFile(array $formFields, ?WP_Post $post = null): array
122 + public function showMediaFile(array $formFields, WP_Post $post = null): array
123 123 {
124 124 if ($this->getRequestParameter('action') !== 'edit') {
125 125 $attachmentId = $this->getRequestParameter('attachment_id');
126 126