This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rsync -azv -P gravityforms 10uplabs.com:wordpress/cpac/wp-content/plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| parser: 'babel-eslint', | |
| parserOptions: { | |
| ecmaFeatures: { | |
| generators: true, | |
| experimentalObjectRestSpread: true | |
| }, | |
| sourceType: 'module', | |
| allowImportExportEverywhere: false | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo sprintf( esc_html__( '%s | %s', 'ms-research' ), '123434', '<script>alert(\'Sprintf\')</script>' ); | |
| echo esc_html__( sprintf( '%s | %s', '1234', '<script>alert(\'adsfasdfasdf\')</script>' ), 'ms-research' ); | |
| printf( esc_html__( 'Your city is %1$s, and your zip code is %2$s.', 'my-text-domain' ), 'Thing', '<script>alert(\'codex\')</script>' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ln -s ~/repositories/10up-Internal/simple-page-ordering/ /Applications/MAMP/htdocs/wp-content/plugins/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| listen 443 ssl; | |
| server_name {{DOMAINS_HERE}}; | |
| root {vvv_path_to_site}/public_html; | |
| error_log {vvv_path_to_site}/log/error.log; | |
| access_log {vvv_path_to_site}/log/access.log; | |
| set $upstream php56; | |
| include /etc/nginx/nginx-wp-common.conf; | |
| location ~ ^/wp-content/uploads/sites/9/(.*\.(js|css|png|jpg|jpeg|gif|ico|mp3|mov))$ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function test_class_not_applied_to_page_item() { | |
| $page_id1 = self::factory()->post->create( array( 'post_type' => 'page', 'post_title' => 'Home Page' ) ); | |
| $page_id2 = self::factory()->post->create( array( 'post_type' => 'page', 'post_title' => 'Test Page' ) ); | |
| update_option( 'page_on_front', $page_id1 ); | |
| wp_update_nav_menu_item( $this->menu_id, 0, array( | |
| 'menu-item-type' => 'post_type', | |
| 'menu-item-object' => 'page', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * | |
| * | |
| */ | |
| Tests_Component_FunctionInCamelCase extends WP_UnitTestCase { | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'is_active_sidebar', function( $is_active_sidebar, $index ) { | |
| global $wp_registered_widgets; | |
| $widgets = wp_get_sidebars_widgets(); | |
| $widget_area_contents = $widgets[ $index ]; | |
| $active_widget_count = count( $widget_area_contents ); | |
| foreach ( $widgets[ $index ] as $widget_instance ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| * Data provider | |
| * | |
| * Description | |
| * | |
| * @see {method name receiving data} | |
| * | |
| * @since x.x.x | |
| * |
NewerOlder