@@ -41,11 +41,11 @@ discard block |
||
41 | 41 | * @since 1.5.0 |
42 | 42 | */ |
43 | 43 | private function _constants() { |
44 | - define( 'WP2D_EXT_WPORG', esc_url( 'https://wordpress.org/plugins/wp-to-diaspora' ) ); |
|
45 | - define( 'WP2D_EXT_I18N', esc_url( 'https://poeditor.com/join/project?hash=c085b3654a5e04c69ec942e0f136716a' ) ); |
|
46 | - define( 'WP2D_EXT_GH', esc_url( 'https://github.com/DiasPHPora/wp-to-diaspora' ) ); |
|
47 | - define( 'WP2D_EXT_DONATE', esc_url( 'https://github.com/DiasPHPora/wp-to-diaspora#donate' ) ); |
|
48 | - define( 'WP2D_EXT_GH_ISSUES', esc_url( 'https://github.com/DiasPHPora/wp-to-diaspora/issues' ) ); |
|
44 | + define( 'WP2D_EXT_WPORG', esc_url( 'https://wordpress.org/plugins/wp-to-diaspora' ) ); |
|
45 | + define( 'WP2D_EXT_I18N', esc_url( 'https://poeditor.com/join/project?hash=c085b3654a5e04c69ec942e0f136716a' ) ); |
|
46 | + define( 'WP2D_EXT_GH', esc_url( 'https://github.com/DiasPHPora/wp-to-diaspora' ) ); |
|
47 | + define( 'WP2D_EXT_DONATE', esc_url( 'https://github.com/DiasPHPora/wp-to-diaspora#donate' ) ); |
|
48 | + define( 'WP2D_EXT_GH_ISSUES', esc_url( 'https://github.com/DiasPHPora/wp-to-diaspora/issues' ) ); |
|
49 | 49 | define( 'WP2D_EXT_GH_ISSUES_NEW', esc_url( 'https://github.com/DiasPHPora/wp-to-diaspora/issues/new' ) ); |
50 | 50 | } |
51 | 51 | |
@@ -89,10 +89,10 @@ discard block |
||
89 | 89 | get_current_screen()->set_help_sidebar( |
90 | 90 | '<p><strong>' . esc_html__( 'WP to diaspora*', 'wp-to-diaspora' ) . '</strong></p> |
91 | 91 | <ul> |
92 | - <li><a href="' . WP2D_EXT_GH . '" target="_blank">GitHub</a> |
|
93 | - <li><a href="' . WP2D_EXT_WPORG . '" target="_blank">WordPress.org</a> |
|
94 | - <li><a href="' . WP2D_EXT_I18N . '" target="_blank">' . esc_html__( 'Help with translations', 'wp-to-diaspora' ) . '</a> |
|
95 | - <li><a href="' . WP2D_EXT_DONATE . '" target="_blank">' . esc_html__( 'Make a donation', 'wp-to-diaspora' ) . '</a> |
|
92 | + <li><a href="' . WP2D_EXT_GH . '" target="_blank">GitHub</a> |
|
93 | + <li><a href="' . WP2D_EXT_WPORG . '" target="_blank">WordPress.org</a> |
|
94 | + <li><a href="' . WP2D_EXT_I18N . '" target="_blank">' . esc_html__( 'Help with translations', 'wp-to-diaspora' ) . '</a> |
|
95 | + <li><a href="' . WP2D_EXT_DONATE . '" target="_blank">' . esc_html__( 'Make a donation', 'wp-to-diaspora' ) . '</a> |
|
96 | 96 | </ul>' |
97 | 97 | ); |
98 | 98 | } |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | <ul> |
152 | 152 | <li><strong>' . esc_html__( 'Global tags', 'wp-to-diaspora' ) . '</strong>: ' . esc_html__( 'Tags that apply to all posts.', 'wp-to-diaspora' ) . ' |
153 | 153 | <li><strong>' . esc_html__( 'Custom tags', 'wp-to-diaspora' ) . '</strong>: ' . esc_html__( 'Tags that apply to individual posts (can be set on each post).', 'wp-to-diaspora' ) . ' |
154 | - <li><strong>' . esc_html__( 'Post tags', 'wp-to-diaspora' ) . '</strong>: ' . esc_html__( 'Default WordPress Tags of individual posts.', 'wp-to-diaspora' ) . ' |
|
154 | + <li><strong>' . esc_html__( 'Post tags', 'wp-to-diaspora' ) . '</strong>: ' . esc_html__( 'Default WordPress Tags of individual posts.', 'wp-to-diaspora' ) . ' |
|
155 | 155 | </ul> |
156 | 156 | <li><strong>' . esc_html__( 'Global tags', 'wp-to-diaspora' ) . '</strong>: ' . |
157 | 157 | esc_html__( 'A list of tags that gets added to every post.', 'wp-to-diaspora' ) . ' |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | |
167 | 167 | // Explain the importance of SSL connections to the pod and the CA certificate bundle. |
168 | 168 | $defined_functions = get_defined_functions(); |
169 | - $ssl_can_install = ( ! array_diff( array( 'fopen', 'fwrite', 'fclose', 'file_get_contents', 'file_put_contents' ), $defined_functions['internal'] ) ); |
|
169 | + $ssl_can_install = ( ! array_diff( array( 'fopen', 'fwrite', 'fclose', 'file_get_contents', 'file_put_contents' ), $defined_functions[ 'internal' ] ) ); |
|
170 | 170 | $ssl_cert_is_installed = ( file_exists( WP2D_DIR . '/cacert.pem' ) ); |
171 | 171 | |
172 | 172 | $ssl_install_output = ''; |
@@ -251,10 +251,10 @@ discard block |
||
251 | 251 | 'content' => '<p><strong>' . esc_html__( 'So you feel like contributing to the WP to diaspora* plugin? Great!', 'wp-to-diaspora' ) . '</strong></p> |
252 | 252 | <p>' . esc_html__( 'There are many different ways that you can help out with this plugin:', 'wp-to-diaspora' ) . '</p> |
253 | 253 | <ul> |
254 | - <li><a href="' . WP2D_EXT_GH_ISSUES_NEW . '" target="_blank">' . esc_html__( 'Report a bug', 'wp-to-diaspora' ) . '</a> |
|
255 | - <li><a href="' . WP2D_EXT_GH_ISSUES_NEW . '" target="_blank">' . esc_html__( 'Suggest a new feature', 'wp-to-diaspora' ) . '</a> |
|
256 | - <li><a href="' . WP2D_EXT_I18N . '" target="_blank">' . esc_html__( 'Help with translations', 'wp-to-diaspora' ) . '</a> |
|
257 | - <li><a href="' . WP2D_EXT_DONATE . '" target="_blank">' . esc_html__( 'Make a donation', 'wp-to-diaspora' ) . '</a> |
|
254 | + <li><a href="' . WP2D_EXT_GH_ISSUES_NEW . '" target="_blank">' . esc_html__( 'Report a bug', 'wp-to-diaspora' ) . '</a> |
|
255 | + <li><a href="' . WP2D_EXT_GH_ISSUES_NEW . '" target="_blank">' . esc_html__( 'Suggest a new feature', 'wp-to-diaspora' ) . '</a> |
|
256 | + <li><a href="' . WP2D_EXT_I18N . '" target="_blank">' . esc_html__( 'Help with translations', 'wp-to-diaspora' ) . '</a> |
|
257 | + <li><a href="' . WP2D_EXT_DONATE . '" target="_blank">' . esc_html__( 'Make a donation', 'wp-to-diaspora' ) . '</a> |
|
258 | 258 | </ul>', |
259 | 259 | ) ); |
260 | 260 | } |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | public static function get_help_tab_quick_link( $error ) { |
285 | 285 | $help_tab = ''; |
286 | 286 | if ( is_wp_error( $error ) && ( $error_data = $error->get_error_data() ) && array_key_exists( 'help_tab', $error_data ) ) { |
287 | - $help_tab = $error_data['help_tab']; |
|
287 | + $help_tab = $error_data[ 'help_tab' ]; |
|
288 | 288 | } elseif ( is_string( $error ) ) { |
289 | 289 | $help_tab = $error; |
290 | 290 | } |