File tree 6 files changed +3
-119
lines changed 6 files changed +3
-119
lines changed Original file line number Diff line number Diff line change @@ -179,47 +179,6 @@ protected function upgrade_link() {
179
179
);
180
180
}
181
181
182
- /**
183
- * @since 2.0.0
184
- * @return string
185
- */
186
- protected function download_labs_link () {
187
- return sprintf (
188
- '<a href="%s" class="download-modal labs">%s</a> ' ,
189
- Prompt_Enum_Urls::DOWNLOAD_PREMIUM ,
190
- __ ( 'Labs ' , 'Postmatic ' )
191
- );
192
- }
193
-
194
- /**
195
- * @since 2.0.0
196
- * @return string
197
- */
198
- protected function download_premium_link () {
199
- return sprintf (
200
- '<a href="%s" class="install_link download-modal premium">%s</a> ' ,
201
- Prompt_Enum_Urls::DOWNLOAD_PREMIUM ,
202
- __ ( 'Install ' , 'Postmatic ' )
203
- );
204
- }
205
-
206
- /**
207
- * @since 2.0.0
208
- * @return string
209
- */
210
- protected function contextual_download_link () {
211
-
212
- if ( $ this ->is_premium_active () ) {
213
- return '' ;
214
- }
215
-
216
- if ( $ this ->options ->is_api_transport () ) {
217
- return $ this ->download_premium_link ();
218
- }
219
-
220
- return $ this ->download_labs_link ();
221
- }
222
-
223
182
/**
224
183
* @since 2.0.0
225
184
* @return bool
Original file line number Diff line number Diff line change @@ -42,23 +42,6 @@ public static function action_wp_ajax_prompt_is_connected() {
42
42
wp_send_json_success ( $ is_connected );
43
43
}
44
44
45
- /**
46
- * Dismiss a notice.
47
- * @since 2.0.0
48
- */
49
- public static function action_wp_ajax_prompt_dismiss_notice () {
50
-
51
- if ( empty ( $ _GET ['class ' ] ) or ! class_exists ( $ _GET ['class ' ] ) ) {
52
- wp_send_json_error ();
53
- }
54
-
55
- $ notice = new $ _GET ['class ' ];
56
-
57
- $ notice ->dismiss ();
58
-
59
- wp_send_json_success ();
60
- }
61
-
62
45
/**
63
46
* @param $post_id
64
47
* @return array|bool
@@ -79,4 +62,4 @@ protected static function featured_image_src( $post_id ) {
79
62
return array ( $ featured_image ['url ' ], $ featured_image ['width ' ], $ featured_image ['height ' ] );
80
63
}
81
64
82
- }
65
+ }
Original file line number Diff line number Diff line change @@ -152,7 +152,6 @@ protected static function add_hooks() {
152
152
add_action ( 'wp_ajax_prompt_comment_unsubscribe ' , array ( 'Prompt_Ajax_Handling ' , 'action_wp_ajax_prompt_comment_unsubscribe ' ) );
153
153
add_action ( 'wp_ajax_nopriv_prompt_comment_unsubscribe ' , array ( 'Prompt_Ajax_Handling ' , 'action_wp_ajax_prompt_comment_unsubscribe ' ) );
154
154
add_action ( 'wp_ajax_prompt_is_connected ' , array ( 'Prompt_Ajax_Handling ' , 'action_wp_ajax_prompt_is_connected ' ) );
155
- add_action ( 'wp_ajax_prompt_dismiss_notice ' , array ( 'Prompt_Ajax_Handling ' , 'action_wp_ajax_prompt_dismiss_notice ' ) );
156
155
157
156
add_action ( 'delete_user ' , array ( 'Prompt_User_Handling ' , 'delete_subscriptions ' ) );
158
157
add_action ( 'edit_user_profile ' , array ( 'Prompt_User_Handling ' , 'render_profile_options ' ) );
Original file line number Diff line number Diff line change @@ -965,21 +965,6 @@ a.button.download:hover, a.button.install:hover {
965
965
padding-top : 200px !important ;
966
966
}
967
967
968
- # dismiss-download-modal {
969
- top : 7px ;
970
- position : relative;
971
- color : gray;
972
- margin : 0 auto;
973
- width : 200px ;
974
- text-align : center;
975
- font-size : 10px ;
976
- display : block;
977
- }
978
-
979
- # dismiss-download-modal : hover {
980
- cursor : pointer;
981
- }
982
-
983
968
div # core-options-promo , # core-options-promo-paid {
984
969
text-align : center;
985
970
background : white;
@@ -1324,4 +1309,4 @@ body .wrap h2.nav-tab-wrapper {
1324
1309
animation : repliable-tab-show 2s ; /* IE 10+, Fx 29+ */
1325
1310
visibility : visible;
1326
1311
opacity : 1 ;
1327
- }
1312
+ }
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ services:
30
30
- ./auth.json:/tmp/auth.json
31
31
32
32
phpunit :
33
- image : wordpress:php7.4
33
+ image : wordpress:php7.3
34
34
entrypoint : vendor/bin/phpunit
35
35
command : --version
36
36
environment :
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ var prompt_options_page_env;
67
67
68
68
$ ( 'form' ) . submit ( disable_next_submit ) ;
69
69
70
- init_download_prompt ( ) ;
71
70
init_helpscout_beacon ( ) ;
72
71
73
72
} ) ;
@@ -119,47 +118,6 @@ var prompt_options_page_env;
119
118
}
120
119
}
121
120
122
- function init_download_prompt ( ) {
123
-
124
- if ( $ ( '#download-modal' ) . length === 0 ) {
125
- return ;
126
- }
127
-
128
- $ ( '#prompt-tabs' ) . find ( 'a.download-modal' ) . click ( function ( e ) {
129
- e . preventDefault ( ) ;
130
- show ( ) ;
131
- } ) ;
132
-
133
- if ( ! prompt_options_page_env . skip_download_intro ) {
134
- show ( ) ;
135
- }
136
-
137
- function show ( ) {
138
-
139
- tb_show ( prompt_options_page_env . download_title , '#TB_inline?inlineId=download-modal' ) ;
140
- setTimeout ( function ( ) { $ ( window ) . trigger ( 'resize' ) ; } , 1 ) ;
141
-
142
- var $download_prompt = $ ( '#download-premium-prompt, #download-labs-prompt' ) ;
143
-
144
- $download_prompt . find ( 'a.download' ) . click ( function ( ) {
145
- $download_prompt . hide ( ) ;
146
- $ ( '#install-labs-prompt, #install-premium-prompt' ) . show ( ) ;
147
- } ) ;
148
-
149
- $ ( '#dismiss-download-modal' ) . click ( function ( e ) {
150
-
151
- e . preventDefault ( ) ;
152
-
153
- $ . ajax ( {
154
- url : ajaxurl ,
155
- data : { action : 'prompt_dismiss_notice' , 'class' : 'Prompt_Admin_Download_Modal_Notice' } ,
156
- success : tb_remove
157
- } ) ;
158
- } ) ;
159
-
160
- }
161
- }
162
-
163
121
function init_helpscout_beacon ( ) {
164
122
HS . beacon . config ( {
165
123
modal : false ,
You can’t perform that action at this time.
0 commit comments