This file contains 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
commit 4587312ae27de3c37ddfbe05bcf2ef448b9f0e7b | |
Author: Boone B Gorges <[email protected]> | |
Date: Wed Jan 4 12:02:21 2023 -0600 | |
PHP compat for dk-pdf. | |
diff --git a/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Barcode/Code128.php b/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Barcode/Code128.php | |
index 4e1e2122cd..f3fa8e46f3 100644 | |
--- a/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Barcode/Code128.php | |
+++ b/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Barcode/Code128.php |
This file contains 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 | |
add_filter( | |
'openlab_badges_badge_links', | |
function( $badge_links, $group_id, $context ) { | |
foreach ( $badge_links as &$link ) { | |
if ( false !== strpos( $link, '>Open<' ) ) { | |
$link = str_replace( 'href="somelink"', 'href="#"', $link ); | |
} |
This file contains 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 | |
remove_action( 'messages_message_sent', 'messages_notification_new_message', 10 ); | |
add_action( | |
'messages_message_sent', | |
function( $message ) { | |
$thread_messages = BP_Messages_Thread::get_messages( $message->thread_id ); | |
if ( 1 === count( $thread_messages ) && $message->id === $thread_messages[0]->id ) { | |
messages_notification_new_message( $message ); | |
} |
This file contains 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
$(document).ready(function(){ | |
var $day_field = $('#field_511_day'); | |
var $month_field = $('#field_511_month'); | |
var $year_field = $('#field_511_year'); | |
if ( ! $day_field.val().length && ! $month_field.val().length && ! $year_field.val().length ) { | |
var dateObj = new Date(); | |
var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; | |
var monthNumber = months[ dateObj.getMonth() ]; |
This file contains 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 | |
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); | |
require_once( buddypress()->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php' ); | |
bp_update_to_5_0(); |
This file contains 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 | |
/** | |
* This is not needed for BP Docs 2.1+. See https://github.com/boonebgorges/buddypress-docs/issues/592 | |
*/ | |
add_filter( 'bp_docs_pre_query_args', function( $args, BP_Docs_Query $query ) { | |
// For attachments, search separately and then append to WP's default search handling. | |
if ( bp_docs_enable_attachments() ) { | |
add_filter( 'posts_clauses', '_filter_query_attachment_filenames' ); |
This file contains 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 | |
/* | |
Plugin name: bbPress BP Notification Formatter | |
Description: A REST API endpoint for WP multisite installations that need to format bbPress-related BP notifications on secondary sites. | |
Version: 1.0 | |
*/ | |
/** | |
* Load the plugin. |
This file contains 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 | |
$site_id = 7177; | |
switch_to_blog( $site_id ); | |
$links = get_bookmarks( array( | |
'category_name' => 'Course Blogs', | |
) ); | |
$urls = wp_list_pluck( $links, 'link_url' ); |
This file contains 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 | |
$comment = get_comment( 12345 ); | |
$post_id = $comment->comment_post_ID(); | |
$post = get_post( $post_id ); // Let's say post_title = Foo | |
do_action( 'comment_goodies', $comment, $post ); | |
var_dump( $post ); |
This file contains 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
import React, { Component } from 'react'; | |
export default class LaTeX extends Component { | |
componentDidMount() { | |
this.updateTeX() | |
} | |
componentDidUpdate() { | |
this.updateTeX() | |
} |
NewerOlder