Making WordPress.org

Ticket #6654: 6654.diff

File 6654.diff, 4.0 KB (added by viralsampat, 2 years ago)

Here, I have added my patch.

  • pub/wporg-photos/functions.php

     
    190190 *     @type string $site    Optional. Site title when not on home page.
    191191 * }
    192192 * @return array Filtered title parts.
     193 * @global WP_Query $wp_query Query object.
    193194 */
    194195function document_title( $title ) {
    195196        global $wp_query;
  • pub/wporg-plugins/functions.php

     
    254254 *     @type string $site    Optional. Site title when not on home page.
    255255 * }
    256256 * @return array Filtered title parts.
     257 * @global WP_Query $wp_query Query object.
    257258 */
    258259function document_title( $title ) {
    259260        global $wp_query;
  • pub/wporg-plugins/template-parts/plugin-single.php

     
    55 * @link https://codex.wordpress.org/Template_Hierarchy
    66 *
    77 * @package WordPressdotorg\Plugin_Directory\Theme
     8 * @global WP_Post $post Global post object.
     9 * @global $section
     10 * @global $section_slug
     11 * @global $section_content
    812 */
    913
    1014namespace WordPressdotorg\Plugin_Directory\Theme;
  • pub/wporg-plugins/template-parts/section-advanced.php

     
    55 * @link https://codex.wordpress.org/Template_Hierarchy
    66 *
    77 * @package WordPressdotorg\Plugin_Directory\Theme
     8 * @global WP_Post $post Global post object.
    89 */
    910
    1011namespace WordPressdotorg\Plugin_Directory\Theme;
  • pub/wporg-plugins/template-parts/section-blocks.php

     
    55 * @link https://codex.wordpress.org/Template_Hierarchy
    66 *
    77 * @package WordPressdotorg\Plugin_Directory\Theme
     8 * @global $section
     9 * @global $section_slug
     10 * @global $section_content
    811 */
    912
    1013global $section, $section_slug, $section_content;
  • pub/wporg-plugins/template-parts/section.php

     
    55 * @link https://codex.wordpress.org/Template_Hierarchy
    66 *
    77 * @package WordPressdotorg\Plugin_Directory\Theme
     8 * @global $section
     9 * @global $section_slug
     10 * @global $section_content
    811 */
    912
    1013global $section, $section_slug, $section_content;
  • pub/wporg-support/functions.php

     
    272272}
    273273add_filter( 'excerpt_length', 'wporg_support_excerpt_length' );
    274274
     275/**
     276 * @param string $title
     277 */
    275278function wporg_support_bbp_raw_title( $title ) {
    276279        if ( get_query_var( 'paged' ) && ! is_404() ) {
    277280                $title .= sprintf( ' - page %s', get_query_var( 'paged' ) );
     
    285288 * Add bbPress titles to the document title.
    286289 *
    287290 * bbPress doesn't support `title-tag` theme support, instead relying upon `wp_title` filters instead.
     291 * @param string $title
    288292 */
    289293function wporg_support_pre_get_document_title( $title ) {
    290294        // See wp_get_document_title()
     
    649653
    650654/**
    651655 * Change "Stick (to front)" link text to "Stick (to all forums)".
     656 * @param string $links
    652657 */
    653658function wporg_support_change_super_sticky_text( $links ) {
    654659        if ( isset( $links['stick'] ) ) {