You can’t clone a Bitbucket repo using GithHub Desktop directly. Instead you would have to:
- Clone the Bitbucket repo locally via command line.
- Add the cloned repository to your GitHub Desktop app.
| <?php | |
| /** | |
| * Exclude categories from prev/next post links. | |
| * | |
| * $exclude (array) - category slugs to retrieve IDs from | |
| * $excluded (array) - category IDs to be excluded | |
| */ | |
| $exclude = array(); | |
| $excluded = array(); |
| <?php | |
| /** | |
| * Removes file version queries from script/stylesheet calls. | |
| * http://wordpress.stackexchange.com/a/96325/23011 | |
| * | |
| * Enhanced to keep query of google font stylesheets: | |
| * Removes “?ver=3.5.1” from http://domain.tld/wp-content/themes/theme/stlye.css?ver=3.5.1 | |
| * Leaves http://fonts.googleapis.com/css?family=MyFont untouched. | |
| */ | |
| add_filter( 'script_loader_src', 'gp130419_remove_script_version', 15, 1 ); |
| $colours: | |
| "red" #FF0000, | |
| "blue" #001EFF, | |
| "green" #00FF00, | |
| "yellow" #F6FF00; | |
| @each $i in $colours{ | |
| .#{nth($i, 1)}-background { | |
| background: nth($i, 2); | |
| } |
| <?php | |
| /** | |
| * Plugin Name: WP Rocket | Disable Cache Preloading | |
| * Description: Prevents WP Rocket’s preload bot from visiting your site. | |
| * Author: WP Rocket Support Team | |
| * Author URI: http://wp-rocket.me/ | |
| * Plugin URI: https://gist.github.com/glueckpress/a6c1f7a22a92e8e8bb10 | |
| * License: GNU General Public License v3 or later | |
| * License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
| */ |
| /*! = $rembase: 14px | |
| -------------------------------------------------------------- | |
| * hmtl { font-size: 87.5%; } | |
| * body { font-size: 14px; font-size: 1rem; line-height: 1; } | |
| * 4px 0.28571429rem | |
| * 8px 0.571428571rem | |
| * 12px 0.857142857rem | |
| * 13px 0.928571429rem | |
| * 14px 1rem | |
| * 16px 1.142857143rem |
| <?php | |
| /** | |
| * Plugin Name: No Comment | |
| * Description: A plugin to close, disable and remove comments from the WordPress admin UI. | |
| * Version: 0.1 | |
| * Author: Caspar Hübinger | |
| * Author URI: https://profiles.wordpress.org/glueckpress/ | |
| * License: GNU General Public License v2 or later | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| * |
You can’t clone a Bitbucket repo using GithHub Desktop directly. Instead you would have to:
| # Sample of .git/info/exclude | |
| # Documentation: https://git-scm.com/docs/gitignore | |
| # Exclude .gitignore file. | |
| # If an initial .gitignore file has been added to the repo, | |
| # you might have to delete it first and sync the change. | |
| # Then create a new one which will be excluded according to this rule. | |
| .gitignore | |
| # Exclude all of WordPress, but keep these directories synced: |
| /* | |
| * Assuming your post/page content happens in .entry-content and you structured it semantically using h3 elements, | |
| * these functions will create a clickable index list at the top of your content. | |
| * Modify hard-coded selectors as you see fit; I used .indexlist for the ul element, | |
| * .indexitem for each li item and h3 elements within .entry-content to create the list items from. | |
| */ | |
| $.fn.inlineScrolling = function(options) { | |
| return this.each(function(event) { | |
| <?php | |
| /** | |
| * Snippet for deleting the customer IP address from WooCommerce orders. | |
| * Important for Trusted Shops® certificates in Germany. | |
| */ | |
| add_action( 'woocommerce_checkout_update_order_meta', 'mp1401091554', 1 ); | |
| function mp1401091554( $order_id ) { | |
| update_post_meta( | |
| $order_id, | |
| '_customer_ip_address', |