Originally By @foldleft.bsky.social, see also Unfollow everyone on bsky.app.
Go to https://twitter.com/YOUR_USER_NAME/following
Open the Developer Console. (COMMAND+ALT+I on Mac)
Paste this into the Developer Console and run it| DROP TABLE IF EXISTS `rwg_career_totals`; | |
| CREATE TABLE `rwg_career_totals` ( | |
| `id` bigint(20) UNSIGNED NOT NULL, | |
| `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), | |
| `trips` int(10) UNSIGNED NOT NULL, | |
| `moving_time` int(11) UNSIGNED NOT NULL, | |
| `elevation_gain` decimal(22,12) UNSIGNED NOT NULL, | |
| `distance` decimal(22,12) UNSIGNED NOT NULL | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| /** | |
| * Remove Jetpack's sitemap feature so MSM sitemaps can take control. | |
| * Unless we are trying to access the news sitemap, in which case we use JP. | |
| */ | |
| add_action( 'init', function() { | |
| if ( ! class_exists( 'Jetpack_Sitemap_Manager' ) ) { | |
| return; | |
| } | |
| $raw_uri = isset( $_SERVER['REQUEST_URI'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : ''; | |
| if ( false === strpos( $raw_uri, '/news-sitemap.xml' ) && false === strpos( $raw_uri, '/news-sitemap.xsl' ) ) { |
| <?php | |
| function vip_customize_msm_sitemap_entry( $url ) { | |
| if ( $url instanceof SimpleXMLElement ) { | |
| // Add images to the sitemap entry. | |
| $post_id = get_the_ID(); | |
| $thumbnail_id = get_post_thumbnail_id( $post_id ); | |
| if ( $thumbnail_id ) { |
This is a fork of the code written by Adafruit and published at: https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Macropad_Hotkeys/code.py
Full Tutorial here: https://learn.adafruit.com/macropad-hotkeys
This fork adds support for Consumer Keys, such as play/pause and volumn buttons. This is done by adding a fourth boolen parameter to the macro array to determine if the command is a consumer key.
| Index: trunk/fergcorp_wp-plugin-data.php | |
| =================================================================== | |
| --- trunk/fergcorp_wp-plugin-data.php (revision 1878124) | |
| +++ trunk/fergcorp_wp-plugin-data.php (working copy) | |
| @@ -26,6 +26,9 @@ | |
| Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| */ | |
| +if ( ! defined( 'ABSPATH' ) ) { | |
| + exit; // Exit if accessed directly |
| Index: trunk/plugin.php | |
| =================================================================== | |
| --- trunk/plugin.php (revision 1791008) | |
| +++ trunk/plugin.php (working copy) | |
| @@ -13,8 +13,9 @@ | |
| */ | |
| register_activation_hook( __FILE__, 'genesis_tabs_activation_check' ); | |
| + | |
| /** |
| Index: trunk/Index: trunk/plugin.php | |
| =================================================================== | |
| --- trunk/plugin.php (revision 1791008) | |
| +++ trunk/plugin.php (working copy) | |
| @@ -144,7 +144,7 @@ | |
| echo '<div id="cat-' . $cat . '" '; post_class( 'ui-tabs-hide' ); echo '>'; | |
| - if ( ! empty( $instance['show_image'] ) ) : | |
| + if ( ( ! empty( $instance['show_image'] ) ) && ( function_exists( 'genesis_get_image' ) ) ) : |
| Index: trunk/plugin.php | |
| =================================================================== | |
| --- trunk/plugin.php (revision 1791008) | |
| +++ trunk/plugin.php (working copy) | |
| @@ -144,7 +144,7 @@ | |
| echo '<div id="cat-' . $cat . '" '; post_class( 'ui-tabs-hide' ); echo '>'; | |
| - if ( ! empty( $instance['show_image'] ) ) : | |
| + if ( ( ! empty( $instance['show_image'] ) ) && ( function_exists( 'genesis_get_image' ) ) ) : |
| @@ -523,8 +524,13 @@ | |
| private function get_local_version() { | |
| if ( $this->is_theme() ) { | |
| $theme_data = wp_get_theme(); | |
| - | |
| - return $theme_data->Version; | |
| + if( $theme_data->parent() ){ | |
| + $parent_theme_data = wp_get_theme( $theme_data->Template ); | |
| + return $parent_theme_data->Version; | |
| + } |