PluginProbe
User Access Manager / 2.3.4
User Access Manager v2.3.4
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 +3 -3 2.3.152.3.4 View file →
@@ -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,
@@ -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