Make WordPress Core

Ticket #33195: 33195.diff

File 33195.diff, 1.2 KB (added by kraftbj, 10 years ago)

1st pass

  • src/wp-admin/includes/class-wp-press-this.php

     
    13181318
    13191319                /** This action is documented in wp-admin/admin-header.php */
    13201320                do_action( 'admin_head' );
     1321
     1322                $web_app_meta = array(
     1323                        'apple-status-bar' => '<meta name="apple-mobile-web-app-status-bar-style" content="black">',
     1324                        'apple'            => '<meta name="apple-mobile-web-app-capable" content="yes">',
     1325                        'chrome_android'   => '<meta name="mobile-web-app-capable" content="yes">',
     1326                        );
     1327                $web_app_meta_output = '';
     1328                /**
     1329                 * Filter the default web app meta tags for Press This.
     1330                 *
     1331                 * Default keys are 'apple', 'chrome_android' to enable mobile view on the respective OSes and 'apple_status_bar' for the iOS status bar color associated with the app..
     1332                 *
     1333                 * @since 4.4.0
     1334                 *
     1335                 * @param array $web_app_meta Associative array of meta tags to enable mobile web apps.
     1336                 */
     1337                foreach ( apply_filters( 'press_this_app_meta', $web_app_meta ) as $meta ) {
     1338                        $web_app_meta_output .= $meta;
     1339                        $web_app_meta_output .= "\n";
     1340                }
     1341                echo $web_app_meta_output;
    13211342        ?>
    13221343</head>
    13231344<?php