@@ 184-193 (lines=10) @@ | ||
181 | * |
|
182 | * @since 2.5.0 |
|
183 | */ |
|
184 | public static function to_test_general_rules_content() { |
|
185 | $test_rules = JPBETA__PLUGIN_DIR . '/docs/testing/testing-tips.md'; |
|
186 | if ( ! file_exists( $test_rules ) ) { |
|
187 | return; |
|
188 | } |
|
189 | WP_Filesystem(); |
|
190 | global $wp_filesystem; |
|
191 | $content = $wp_filesystem->get_contents( $test_rules ); |
|
192 | return self::render_markdown( $content ); |
|
193 | } |
|
194 | ||
195 | /** Return testing instructions for release candidate branch */ |
|
196 | public static function to_test_file_content() { |
|
@@ 196-205 (lines=10) @@ | ||
193 | } |
|
194 | ||
195 | /** Return testing instructions for release candidate branch */ |
|
196 | public static function to_test_file_content() { |
|
197 | $test_file = WP_PLUGIN_DIR . '/' . Jetpack_Beta::get_plugin_slug() . '/to-test.md'; |
|
198 | if ( ! file_exists( $test_file ) ) { |
|
199 | return; |
|
200 | } |
|
201 | WP_Filesystem(); |
|
202 | global $wp_filesystem; |
|
203 | $content = $wp_filesystem->get_contents( $test_file ); |
|
204 | return self::render_markdown( $content ); |
|
205 | } |
|
206 | ||
207 | /** |
|
208 | * Get PR information for what we want to test |